Skip to content

WebFlux handles requests with an illegal Host header inconsistently [SPR-16778] #21318

@spring-projects-issues

Description

@spring-projects-issues

Andy Wilkinson opened SPR-16778 and commented

The various request adapters in WebFlux do not all handle a request with an illegal Host header in the same way. ReactorHttpHandlerAdapter catches a URISyntaxException and maps it to a 400 response. UndertowHttpHandlerAdapter and ServletHttpHandlerAdapter do not catch URISyntaxException which results in a 500 response.


Affects: 5.0.5

Reference URL: spring-projects/spring-boot#12987

Issue Links:

Referenced from: commits b0aa08a, 8d157cb

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions