You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for conditional PUT in Web MVC (using If-Unmodified-Since header) [SPR-13863] #18436
I have been converting a Jersey/JAX-RS application to Spring Web MVC, and discovered that while JAX-RS supports conditional PUT (using the "If-Unmodified-Since" header and the 412 "Precondition Failed" response) through Request.evaluatePreconditions, Spring Web MVC does not.
Looking through the spring-web codebase, the only reference to "If-Unmodified-Since" that I could find is in HttpEntityMethodProcessor. And that code only applies to GET requests. Additionally, there's WebRequest.checkNotModified (and seems to parallel the JAX-RS Request.evaluatePreconditions method), but only checks the "If-Modified-Since" header and also works only for GET and HEAD requests.
For my project I will be implementing conditional PUT manually. However, it feels like conditional PUT (and DELETE) requests should be baked into the Spring MVC framework.
Activity