Skip to content

Jackson Decoder ignores method parameter information when resolving media types for custom ObjectMapper registration #29307

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

Closed
odrotbohm opened this issue Oct 12, 2022 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: regression A bug that is also a regression
Milestone

Comments

@odrotbohm
Copy link
Member

odrotbohm commented Oct 12, 2022

This seems to be caused by the accidental removal of AbstractJackson2Decoder. getDecodableMimeTypes(ResolvableType targetType) so that the default implementation declared in the interface kicks in which doesn't consult any custom ObjectMapper registrations by type.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 12, 2022
@rstoyanchev rstoyanchev self-assigned this Oct 12, 2022
@rstoyanchev rstoyanchev added type: regression A bug that is also a regression in: web Issues in web modules (web, webmvc, webflux, websocket) and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 12, 2022
@rstoyanchev rstoyanchev added this to the 6.0.0-RC1 milestone Oct 12, 2022
@rstoyanchev rstoyanchev changed the title DecoderHttpMessageReader.getReadableMediaTypes(…) does not return media types of custom ObjectMapper registrations anymore Jackson Decoder ignores method parameter information when resolving media types for custom ObjectMapper registration Oct 12, 2022
odrotbohm added a commit to spring-projects/spring-hateoas that referenced this issue Oct 12, 2022
Temporarily disable HypermediaWebClientConfigurerTest due to spring-projects/spring-framework#29307.
@rstoyanchev rstoyanchev modified the milestones: 6.0.0-RC1, 6.0.0-RC2 Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: regression A bug that is also a regression
Projects
None yet
Development

No branches or pull requests

3 participants