Precondition failed for PUT methods on ResponseEntity return types [SPR-15780] #20335
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Danny Hamrick opened SPR-15780 and commented
We have an app that has recently been converted from Spring Boot 1.3.8 to 1.5.2. We are managing the ETag and LastModified headers. Our code worked fine with 1.3.8 but now causes a 412 Precondition Failed return code. We traced the return code to ServletWebRequest.validateIfUnmodifiedSince(). It is checking the flag after we set the new value. The functional change is from #18168. I'm not sure how we are suppoed to manage these headers now.
We put together an example of what we are doing. Hopefully you can advise us on the proper way to proceed.
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: