ChidiebereNjoku opened a new pull request, #40445: URL: https://github.com/apache/superset/pull/40445
### Summary This PR fixes Issue #33304, where the built-in Swagger UI documentation asset endpoints and schema mapping paths fail to resolve correctly when an enterprise deployment utilizes reverse-proxy sub-path rules or custom URL prefix routing via `SUPERSET_APP_ROOT`. ### Proposed Changes - Modified `SupersetAppInitializer.configure_fab` inside `superset/initialization/__init__.py`. - Added a defensive configuration lookup that checks for an active `APPLICATION_ROOT` context or a fallback `SUPERSET_APP_ROOT` environment string. - Dynamically iterates over registered blueprints post-FAB initialization to isolate the internal `openapi` route descriptor and dynamically prepends the app root suffix path. This guarantees Swagger spec calls look for `/prefix/api/v1/_openapi` instead of throwing 404 errors at the global root. ### Tests - Validated routing prefix concatenation mechanics against internal web initialization contexts. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
