-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Don't convert WebApplicationException in REST Client when produced by a custom mapper #42290
Conversation
@FroMage WDYT? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
My only objection would be the original security mistake of JAX-RS which is that client and server share the same exception type, and so it's too easy for client calls to leak client call details to server users. Things like status code, reason, headers, bodies. That's why our clients don't throw I can't think a security reason to refuse this PR, myself. |
Yeah, the use in the reported issue is legit and does things properly |
@FroMage mind reviewing this? Thanks |
… a custom mapper The idea is that if a user has opted to create an exception, we should always honor it - even if it's a WebApplicationException Fixes: quarkusio#42275
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.
LGTM
🙏🏼 |
Status for workflow
|
The idea is that if a user has opted to create an exception, we should always honor it - even if it's a WebApplicationException