(6)
Tue May 13 2008 21:12 Lost Update Nanny State:
In the web service I'm working on, we're considering rejecting PUT and PATCH requests unless they're accompanied by a valid
If-Unmodified-Since or If-None-Match. Basically forcing clients to consider the lost update problem and work with us to avoid it. If you're trying to PUT a new resource, you need to send If-None-Match: * to avoid stepping on someone else who just created that resource.
Is this legal? Seems okay to me, but I'm not sure what response code to send. 412 ("Precondition Failed") is the obvious choice, but the precondition that failed is that the client didn't specify a precondition, and that's weird. I see that the Astoria team is thinking about the same things (search for "validation during side-effecting operations").
Posted by Aristotle Pagaltzis at Wed May 14 2008 01:31
Posted by Stefan Tilkov at Wed May 14 2008 01:59
Posted by Subbu Allamaraju at Wed May 14 2008 10:28
Posted by David Terrell at Wed May 14 2008 10:54
Posted by Leonard at Wed May 14 2008 15:05
Posted by Aristotle Pagaltzis at Wed May 14 2008 23:27