W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > October to December 2000

RFC2518 LOCK Response Code

From: Hall, Shaun <Shaun.Hall@gbr.xerox.com>
Date: Thu, 23 Nov 2000 12:03:35 -0000
Message-ID: <B99BE740B488D311B4AA00805FBB776750A6FA@gbrwgcms03.wgc.gbr.xerox.com>
To: "'W3C WebDAV Mailing List'" <w3c-dist-auth@w3.org>
An issue regarding a LOCK response code in RFC2518. A quick search in the
archives didn't show anything about this.

In section 8.10.4, it states "If the lock cannot be granted to all
resources, a 409 (Conflict) status code MUST be returned with a response
entity body containing a multi-status XML element...".

1) The 409 status code is not listed in section 8.10.7 (LOCK status codes).
2) The example in section 8.10.10 (Multi-resource LOCK request which fails)
returns a 207 (Multi-status) response code, not a 409.

The 207 response is normal for WebDAV methods that need to provide
information about multiple-resources.

I'm inclined to think the 207 is the correct response in such a failure
case, which at first implies the 409 is wrong.

However, I think the only case where a 409 is applicable is if one it trying
to "create" a Lock Null Resource (LNR) (i.e. the null-resource does not
exist) and where the ancestors of the LNR do not exist. I think this would
be consistent with other methods as well (e.g. PUT, COPY, MOVE).

Comments/clarification/etc please.


Shaun Hall
Xerox Europe
Received on Thursday, 23 November 2000 07:25:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:22 UTC