Skip to content
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

Open
glassfishrobot opened this issue Apr 20, 2015 · 4 comments
Open

NPE in PageContext.getErrorData() #9

glassfishrobot opened this issue Apr 20, 2015 · 4 comments

Comments

@glassfishrobot
Copy link

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]

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Reported by c799878

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
Was assigned to super_glassfish

@glassfishrobot
Copy link
Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JSP-47

@glassfishrobot
Copy link
Author

@glassfishrobot glassfishrobot self-assigned this Aug 17, 2018
@markt-asf markt-asf transferred this issue from jakartaee/pages Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant