-
Notifications
You must be signed in to change notification settings - Fork 990
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
[UNDERTOW-1762] Error page for custom exception-type is not is not displayed in jsp development mode #917
Conversation
…splayed in jsp development mode
This causes a failing TCK test: https://github.com/eclipse-ee4j/jakartaee-tck/blob/8.0.2/src/com/sun/ts/tests/servlet/spec/errorpage1/URLClient.java#L101 The problem is when a custom exception extending ServletException is wrapped in ServletException and that custom exception is used in mapping. Maybe the mapping check should be performed for each level of unwrap? |
Ah, yes, made an adjustment to fix that. |
rootCause = ((ServletException) rootCause).getRootCause(); | ||
} | ||
if (rootCause != null) { | ||
if (rootCause != null && location == null) { | ||
for (Class c = rootCause.getClass(); c != null && location == null; c = c.getSuperclass()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to check for location equals null any longer because of the change in the previous line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aogburn I'll take the freedom to update the PR myself because I'm working on releasing and tagging Undertow with this fix. Thanks for your PR!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aogburn never mind, my bad, this code is actually correct and does not need to be updated
https://issues.redhat.com/browse/UNDERTOW-1762
2.0.x PR: #944