userhimanshuverma opened a new issue, #15706:
URL: https://github.com/apache/pinot/issues/15706

   **Description:**  
   When accessing the Apache Pinot Swagger UI through an Apache Knox gateway, 
the UI redirects to the base URL (e.g., `/help`) instead of preserving the Knox 
gateway path (e.g., '/gateway/pinot/swagger/help'). This breaks the Swagger UI 
functionality when Pinot is proxied via Knox, as the redirection bypasses the 
Knox routing and results in a 404 or incorrect endpoint resolution.
   
   **Expected Behavior:**  
   The Swagger UI should retain and respect the full Knox path during 
redirection to ensure seamless access through the Knox gateway.
   
   **Steps to Reproduce:**
   1. Deploy Pinot behind a Knox gateway with appropriate service and rewrite 
configuration.
   2. Access the Swagger UI via Knox, e.g., 
`https://<knox-host>/gateway/pinot/swagger/help`
   3. Observe that the UI redirects to `/swagger/help` instead of maintaining 
the `/gateway/pinot/` prefix.
   
   **Impact:**  
   Users accessing Pinot through Knox cannot reliably use the Swagger UI, 
affecting ease of API exploration and testing in secure environments.
   
   


-- 
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.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