4.7 Preventing Error Messages to Show the Failure Reason on Browsers

Whenever Identity Server reports a 500 internal error due to an invalid input, the reason for failure is included in the response and visible on the browser.

This might cause a security issue as intruders can use this information to attack against Identity Server and ESP.

Configure the web.xml file for ESP as follows:

/opt/novell/nam/mag/webapps/nesp/WEB-INF/web.xml

<welcome-file-list>
   <welcome-file>index.html</welcome-file>
</welcome-file-list>
<error-page>
   <error-code>500</error-code>
   <location>/index.html</location>
</error-page>

index.html can be any custom page. Same as above, you can configure web.xml for error-code 404 by adding one more <error-page> tag.