Project: Tomcat
Bug 47537 Empty response when forward to login page fails
Reported: 2009-07-15 10:06:41 | Status: resolved fixed

When tomcat receives a POST request on a session that has timedout, it will forward to the form based login page (form-login-page). If this forward fails for some reason (an error in the login page for instance), tomcat will return an empty HTTP response, without any error code. The tomcat log says "Unexpected error forwarding to login page" and contains the detailed stacktrace, but i would expect the error to show up in the browser as well (at least a 500 status)

Files changed in fix:
java/org/apache/catalina/authenticator/FormAuthenticator.java