[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Update resource - GET required to preceed the PUT?




Davis_Cornelia@xxxxxxx wrote:


The subject line really says it all. To be a compliant AtomPub client, when editing a resource must the client do a GET before doing a PUT?

No.

The way I understand it, use of etags or modify dates as a part of the exchange is not required (resulting in potential overwrite problems).

Yes.

Yet if a server did require that, say, eTags be used then PUT requests lacking the eTag could result in an error code (not sure which) which could be interpreted to mean, “do a GET and use the eTag to retry your PUT”.

Correct.

Of course the interesting issue here is which status code would be right (403? 409? generic 400?), and whether it's necessary to standardize it.

BR, Julian