From 9437e4243ad6ec4929c1577ae82be792a2f21184 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 4 Oct 2025 21:12:52 +0200 Subject: [PATCH] Use canonical path for static files directory (#1698) On mac the temp system folder is a symlink which jetty does not allow by default due to security reasons. This caused the webui files to not get served on mac. --- .../suwayomi/tachidesk/server/util/WebInterfaceManager.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 11b2a745..25a379cb 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/server/util/WebInterfaceManager.kt @@ -161,7 +161,8 @@ object WebInterfaceManager { config.staticFiles.add { staticFiles -> if (ServerSubpath.isDefined()) staticFiles.hostedPath = ServerSubpath.normalized() - staticFiles.directory = applicationDirs.webUIServe + // Use canonical path to avoid Jetty alias issues + staticFiles.directory = File(applicationDirs.webUIServe).canonicalPath staticFiles.location = Location.EXTERNAL }