You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "zeroflag (via GitHub)" <gi...@apache.org> on 2023/06/21 09:53:43 UTC

[GitHub] [knox] zeroflag opened a new pull request, #766: KNOX-2928 - For malformed url should return 400 bad request instead of 500

zeroflag opened a new pull request, #766:
URL: https://github.com/apache/knox/pull/766

   ## What changes were proposed in this pull request?
   
   Using a malformed URL generates http 500 (MalformedURLException) instead of http 400.
   
   ## How was this patch tested?
   
   ```
   curl -k -u admin:admin-password https://localhost:8443/gateway/knoxsso/api/v1/websso?originalUrl=https://localhost:5003gateway/homepage/home/
   ```
   ```
   <html>
   <head>
   <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
   <title>Error 400 Bad Request</title>
   </head>
   <body><h2>HTTP ERROR 400 Bad Request</h2>
   <table>
   <tr><th>URI:</th><td>/gateway/knoxsso/api/v1/websso</td></tr>
   <tr><th>STATUS:</th><td>400</td></tr>
   <tr><th>MESSAGE:</th><td>Bad Request</td></tr>
   <tr><th>SERVLET:</th><td>knoxsso-knox-gateway-servlet</td></tr>
   </table>
   ```
   
   


-- 
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: dev-unsubscribe@knox.apache.org

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


[GitHub] [knox] zeroflag merged pull request #766: KNOX-2928 - For malformed url should return 400 bad request instead of 500

Posted by "zeroflag (via GitHub)" <gi...@apache.org>.
zeroflag merged PR #766:
URL: https://github.com/apache/knox/pull/766


-- 
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: dev-unsubscribe@knox.apache.org

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