W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > January to March 2001

Re: unlock question

From: Greg Stein <gstein@lyra.org>
Date: Thu, 1 Mar 2001 14:49:09 -0800
To: Dan Brotsky <dbrotsky@Adobe.COM>
Cc: w3c-dist-auth@w3.org
Message-ID: <20010301144909.F2297@lyra.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:43:55 GMT