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

RE: Behavior of PUT on unlocked resource with invalid IF header . ..

From: Clemm, Geoff <gclemm@rational.com>
Date: Fri, 17 Aug 2001 09:21:44 -0400
Message-ID: <3906C56A7BD1F54593344C05BD1374B103F48C38@SUS-MA1IT01>
To: w3c-dist-auth@w3c.org
   From: Rashmi Singh [mailto:rashmi@persistent.co.in]

   Do we agree on
   rejecting the PUT submitted with invalid lock token on an unlocked
   resource.  Just to make things explicit, the same applies to COPY and
   MOVE also.

Assuming it is sumitted in a non-negated no-tagged list,
or in a non-negated tagged list that specifies the unlocked
resource, then yes (by the definition of the If header, not
by any special locking semantics).

   i) COPY - What if COPY is submitted with an invalid locktoken for
   unlocked destination?

Invalid, for same reason as above.

   ii) MOVE - What if MOVE is submitted with an invalid locktoken for
   either an unlocked source or an unlocked destination?

You have to be specific about what you mean by "submitted", i.e.
what exactly are you planning on sending in the If header?
Assuming you meant the simplest thing, i.e. a non-negated no-tagged
list, then yes, the locktoken must match both the source and
the destination of the MOVE.  What 2518 leaves open and ambiguous
is whether it must also match both the source collection and
the destination collection.  I would argue, yes, because both
of those collections are being modified by the MOVE.

   Should we return 412 (Precondition failed) in the above case?

Yes.

Cheers,
Geoff
Received on Friday, 17 August 2001 09:19:58 GMT

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