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.
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, overridingisEligibleForEtag(...)andgenerateETagHeaderValue(...). This worked fine with spring 5.x, but now is broken due to changes in 0783f07.Thank you.