Re: unlock question

On Thu, Mar 01, 2001 at 02:13:43PM -0500, Dan Brotsky wrote:
> >On Thu, Mar 01, 2001 at 04:14:35PM +0100, Pill, Juergen wrote:
> >>
> >>  What should a Webdav enabled server return in case of the unlock method and
> >>  a provided lock token, which does not exist (for this resource)?
> >>  Assuming the resource is already locked, would it be OK to return a 204 (no
> >>  content) or would be an error message better (which one)?
> >
> >mod_dav returns 400 (Bad Request) whether the resource has other locks on it
> >or not. The client should have submitted an UNLOCK with a proper lock token.
> >
> >Cheers,
> >-g
> 
> Greg,
> 
> Why not 412?  I thought servers were always supposed to return 412 to 
> requests that provided invalid state preconditions?

The Lock-Token: header is not a precondition. It is an input parameter to
the UNLOCK method.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Received on Thursday, 1 March 2001 17:52:36 UTC