RE: LOCK request body?

Greg Stein writes:
> Section 8.10.1 states that a LOCK request "SHOULD" have a request body.
> However, it does not state what the server should use as a default if the
> client does not supply a body.
>
> What should a server do? Create a lock of its own choosing?

Uhhhhhhh...

> The text does state "unless this is a refresh request", but the parsing of
> the sentence is not entirely clear. I believe the intent is probably that
> it MUST have a body for asserting a lock, and that it MUST NOT have a body
> for refreshing a lock.

This makes sense to me.

> On a slightly different topic: why is a refresh done using locktokens
> gathered from the If: header, rather than the more obvious Lock-Token:
> header?

I can't recall our original rationale.  We might have been thinking that,
since the lock had to exist for the request to be honored, this effectively
made the locks existence a precondition, and preconditions are expressed
using the If header.

- Jim

Received on Tuesday, 23 November 1999 22:31:35 UTC