userhimanshuverma opened a new pull request, #15707:
URL: https://github.com/apache/pinot/pull/15707

   **Description:**  
   This PR addresses issues with the Swagger UI when served behind reverse 
proxies such as Apache Knox. Previously, the Swagger UI hardcoded the base path 
to `/swagger.json` and relative links like `'help'`, causing redirection to 
incorrect paths and breaking functionality in proxied environments.
   
   **Changes Made:**
   - Replaced absolute paths (`/swagger.json`) with relative paths 
(`./swagger.json`) in all `index.html` files across modules:
     - `pinot-common`
     - `pinot-controller`
     - `pinot-server`
     - `pinot-integration-tests`
   - Updated the Swagger link in the Pinot Controller UI's navigation 
(`Layout.tsx`) to use a relative path (`./help`) to ensure compatibility with 
Knox path rewriting.
   
   **Impact:**  
   This change ensures that Swagger UI functions correctly when accessed 
through reverse proxies that alter the base URL (e.g., `/gateway/pinot/`), 
resolving redirect and resource loading issues.
   
   **Testing:**  
   Verified that Swagger UI loads and works as expected when accessed via Knox 
gateway with the appropriate service/rewrite configuration.
   
   <img width="1512" alt="image" 
src="https://github.com/user-attachments/assets/35a2279c-8366-4626-8bb1-7be76be546be";
 />
   


-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to