From fb41ad38f6b2fb5dd643bbc26a92594376789b25 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 1 Nov 2025 19:30:54 +0100 Subject: [PATCH] Ensure webui static resources folder exists before serving it (#1756) When the webUI got opened before the setup was completed, the missing folder caused an exception and broke the javalin server. In that case, even after the webui setup completed, the server just returned the index.html for every path --- .../suwayomi/tachidesk/server/util/WebInterfaceManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt b/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt index 08688ef5..ba6ab153 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt @@ -160,6 +160,8 @@ object WebInterfaceManager { return } + File(applicationDirs.webUIServe).mkdirs() + config.staticFiles.add { staticFiles -> if (ServerSubpath.isDefined()) staticFiles.hostedPath = ServerSubpath.normalized() // Use canonical path to avoid Jetty alias issues