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
Make sure that ErrorMessage is always interpreted as json in Response #405
Conversation
d2a7094
to
ee1a641
Compare
Integration to show that without explicit MediaType, Options requests can make server fails with 500
ee1a641
to
1f57603
Compare
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
Does WebApplicationExceptionMapper rest-utils/core/src/main/java/io/confluent/rest/exceptions/WebApplicationExceptionMapper.java Line 69 in 86e5365
|
We don't need it here as it's already set in |
As title said, this makes sure that we explicitly specify application/json media type for ErrorMessage, otherwise, with Options request, it can return 500