Skip to content

Elaborate on ShallowEtagHeaderFilter limitations #30517

@larsonmp

Description

@larsonmp

Affects: 6.0.8
Problem: ServletWebRequest::validateIfMatch(String eTag) compares etag of post-commit state with etag in request, which necessarily is pre-commit state, and sets response status to 412 if they don't match (which is the normal use case for PUTs). For PUTs, validation should occur prior to performing the method, and then need not occur after.

Additional details: I have a filter that extends ShallowEtagHeaderFilter, overriding isEligibleForEtag(...) and generateETagHeaderValue(...). This worked fine with spring 5.x, but now is broken due to changes in 0783f07.

Thank you.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: documentationA documentation task

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions