Skip to content

Content negotiation for exception handling fails with WebFlux #32878

Closed
@bclozel

Description

@bclozel

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.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions