Skip to content

Content negotiation for exception handling fails with WebFlux #32878

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
bclozel opened this issue May 23, 2024 · 0 comments
Closed

Content negotiation for exception handling fails with WebFlux #32878

bclozel opened this issue May 23, 2024 · 0 comments
Assignees
Labels
in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug
Milestone

Comments

@bclozel
Copy link
Member

bclozel commented May 23, 2024

We have found a bug while running the Spring Boot test suite against the latest Spring Framework milestone.

The new content negotiation for error handling feature added in #31936 fails in WebFlux when HTTP clients send invalid media types in the "Accept" header. Instead of falling back on "*/*" as it should, the error handling selection fails on parsing the requested media types and a NotAcceptableStatusException is thrown.

@bclozel bclozel added in: web Issues in web modules (web, webmvc, webflux, websocket) type: bug A general bug labels May 23, 2024
@bclozel bclozel added this to the 6.2.0-M4 milestone May 23, 2024
@bclozel bclozel self-assigned this May 23, 2024
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: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant