-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE in PageContext.getErrorData() #9
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
javax.servlet.jsp.PageContext#getErrorData() throws a NullPointerException if a JSP page is accessed but no javax.servlet.error.status_code attribute is available. This can occur when, say, a login page is sometimes triggered by an error (eg 401 unauthorized) and sometimes accessed directly (when there is no error).
The bug has been fixed in Tomcat for 5 years.
https://bz.apache.org/bugzilla/show_bug.cgi?id=49196
https://bz.apache.org/bugzilla/attachment.cgi?id=25534&action=diff
It would be nice to fix it here as well as I suspect this is the source that Jetty uses.
Affected Versions
[current]
The text was updated successfully, but these errors were encountered: