Issue
- Sensitive system information may be seen in HTTP 400 - Bad Response status
Environment
- DXP 7.0 DXP 7.1 DXP 7.2
Resolution
The HyperText Transfer Protocol (HTTP) 400 Bad Request
response status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
To resolve:
- Attempt to fix the 400 status error by investigating the ideas mentioned (above)
-
Hide the 400 status code page
-
Redirect the 400 error to a custom error page
Here is a sample resource on how this may be achieved, see section: "Tomcat 9 has improved the error handling..."
https://stackoverflow.com/questions/52814582/tomcat-is-not-redirecting-to-400-bad-request-custom-error-page/55702749#55702749
Additional Information