Details
- 
    Improvement 
- 
    Resolution: Unresolved
- 
    Minor 
- 
    None
- 
    14.4.6
- 
    None
- 
        Unknown
- 
        
Description
If a client sends a bad request in the form a malformed URL it would make more sense for it to receive a 400 status code rather than a 500.
At the moment this type of malformed URLs could also generate clutter in the logs in certain scenarios.
Steps to reproduce:
Make the following curl request:
 
curl https://www.xwiki.org/xwiki/bin/login/XWiki/XWikiLogin?xredirect=%2Fxwiki%2Fbin%2Fview%2FMain%2FWebHome\" 
Expected behavior:
Receive a 400 status code
Actual result:
Receive a status code of 500