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

Fix #5939 unwrap ServletException #5958

Merged
merged 2 commits into from
Feb 9, 2021

Conversation

gregw
Copy link
Contributor

@gregw gregw commented Feb 8, 2021

Fix #5939 unwrap ServletException

Signed-off-by: Greg Wilkins [email protected]

Fix #5939 unwrap ServletException

Signed-off-by: Greg Wilkins <[email protected]>
reverted default to false

Signed-off-by: Greg Wilkins <[email protected]>
@gregw
Copy link
Contributor Author

gregw commented Feb 8, 2021

@olamy I reverted the default

@gregw gregw requested review from olamy and janbartel February 8, 2021 21:39
@gregw
Copy link
Contributor Author

gregw commented Feb 9, 2021

I currently have this as a boolean on the error handler. It is not really a HttpCompliance issue. Perhaps we should create a JettyCompliance or ServletCompliance class? But I'm thinking having the boolean is OK for a start and if we add a compliance, then it can just set the boolean

Copy link
Contributor

@janbartel janbartel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@olamy
Copy link
Member

olamy commented Feb 9, 2021

would be good to have some ini files with this.

@gregw
Copy link
Contributor Author

gregw commented Feb 9, 2021

@olamy can't do an ini file because it is a per context configuration. Ultimately if we create another compliance instance, then we can have ini files to set the server-wide default, but will do as part of a different PR.

@gregw gregw merged commit 3321ae7 into jetty-10.0.x Feb 9, 2021
@gregw
Copy link
Contributor Author

gregw commented Feb 9, 2021

@olamy merged to 11. Yell if you need help updating context.xml file for TCK to set this.

@gregw gregw deleted the jetty-10.0.x-5939-unwrap-servlet-exception branch February 9, 2021 09:11
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

Successfully merging this pull request may close these issues.

Use unwrapped exception as exception type for error handling
3 participants