From 20c113ef7117627b1f68bb4b30c553a295ed7b22 Mon Sep 17 00:00:00 2001 From: actiontech-zihan Date: Sat, 9 May 2026 06:12:38 +0000 Subject: [PATCH] fix: skip ODC query path in static file middleware to prevent fallback interception (#815) The static file middleware was intercepting /odc_query/* requests and serving the DMS index.html instead of letting the proxy middleware forward them to the ODC backend. Added SqlWorkbenchService.GetRootUri() to the static middleware skipper, matching the existing pattern for CloudBeaver. --- internal/apiserver/service/router.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/apiserver/service/router.go b/internal/apiserver/service/router.go index 825f1d880..c3eaeb588 100644 --- a/internal/apiserver/service/router.go +++ b/internal/apiserver/service/router.go @@ -436,6 +436,9 @@ func (s *APIServer) installMiddleware() error { if strings.HasPrefix(c.Request().URL.Path, s.SqlWorkbenchController.CloudbeaverService.CloudbeaverUsecase.GetRootUri()) { return true } + if strings.HasPrefix(c.Request().URL.Path, s.SqlWorkbenchController.SqlWorkbenchService.GetRootUri()) { + return true + } if strings.HasPrefix(c.Request().URL.Path, "/provision/v") || strings.HasPrefix(c.Request().URL.Path, "/sqle/v") { return true