fix: skip ODC query path in static file middleware (#815)#616
fix: skip ODC query path in static file middleware (#815)#616LordofAvernus wants to merge 1 commit into
Conversation
PR Reviewer Guide 🔍(Review updated until commit 20c113e)
|
PR Code Suggestions ✨Latest suggestions up to 20c113e
Previous suggestionsSuggestions up to commit 51861dc
|
…k 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.
|
Persistent review updated to latest commit 20c113e |
User description
Skip ODC query path in static file middleware to prevent fallback interception, ensuring Provision TDSQL data source sync works correctly through the DMS proxy layer.
Related Issue: https://github.com/actiontech/dms-ee/issues/815
Description
新增对
SqlWorkbenchService.GetRootUri()判断修正静态文件中间件拦截 ODC 查询路径问题
确保代理层正确转发请求
Diagram Walkthrough
File Walkthrough
router.go
在静态中间件中添加 ODC 查询跳过逻辑internal/apiserver/service/router.go
SqlWorkbenchService.GetRootUri()