Skip to content

HttpEntityMethodProcessor should not throw IllegalArgumentExceptions for invalid If-None-Match headers [SPR-14559] #19127

Closed
@spring-projects-issues

Description

@spring-projects-issues

Brian Clozel opened SPR-14559 and commented

When an HTTP client sends a request with invalid validators in headers, like If-None-Match:bar instead of If-None-Match:"bar", the HttpHeaders class is trying to parse the values and throws an InvalidArgumentException if they aren't valid.

In that case, ServletWebRequest and HttpEntityMethodProcessor should behave the same way and not try to further process the validators and just serve the resource as if it wasn't a conditional request.


Affects: 4.3.2, 5.0 M1

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

Referenced from: commits d8fc13f, 798d866

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