-
Notifications
You must be signed in to change notification settings - Fork 112
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
isErrorPage() check fails in Tomcat when thrown exception has null message #5528
Comments
BalusC
changed the title
isErrorPage() check fails in Tomcat when thrown exception has no message
isErrorPage() check fails in Tomcat when thrown exception has null message
Nov 14, 2024
Confirmed, also opened a ticket for Tomcat |
I can submit a PR if you want |
Tomcat will fix this in
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
omnifaces/omnifaces#865
Unsure about other servers.
Solution: check exception itself as well.
Spec: https://jakarta.ee/specifications/faces/4.0/jakarta-faces-4.0#a404
However neither Servlet nor Faces spec is sufficiently specific as to how exactly to detect that. The current impl only checks for the error message, which is in case of exceptions (status=500) the raw exception message. However, if the exception message itself is null, e.g.
throw new RuntimeException()
instead ofthrow new RuntimeException("peek-a-boo")
, this check fails.The text was updated successfully, but these errors were encountered: