Just curious - why would the server want to lock a resource?
Subbu
On Jul 3, 2009, at 7:01 PM, Jan Algermissen wrote:
>
>
> Hi,
>
> suppose a situation where clients know that creating a lock on some
> resource
>
> http://www.example.com/docs/1234
>
> is done by PUTing to
>
> http://www.example.com/properties/1234?lock
>
> I see two ways how to address the situation that the lock can alreay
> exist and that the
> request should then fail:
>
> a) PUT /properties/1234?lock
> If-None-Match: *
>
> 304 Precondition Failed
>
> b) PUT /properties/1234?lock
>
> 409 Conflict
>
> The former bears the question what the server should do when the
> client does not make
> the request condtional (-> 409??) and regading the latter I am not
> sure if the semantics
> are correct.
>
> Can anybody provide a clue?
>
> Jan
>
>
>