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

Re: Puzzle: DELETE of a locked collection

From: <jamsden@us.ibm.com>
Date: Thu, 13 Apr 2000 09:51:30 -0400
To: w3c-dist-auth@w3c.org
Message-ID: <852568C0.004C2030.00@d54mta03.raleigh.ibm.com>

I guess it depends on what it means to delete a collection with a depth
infinity lock. You could specify a tagged list in the If header containing
a token for A and B. Then when deleting B, you'll get a match on the lock
tokin in the tagged If header. So the question is, will you also have to
provide tagged lock tokens for all the files in B in order to match on
them, or is the match implicit because the match occurred on the same lock
token on the parent collection. I don't know the answer. DAV4J would
probably fail unless you had all the locktokens for all the items  to be
deleted in tagged If headers. That's because 1) you can't mix tagged and
non-tagged lists in the same If header and 2) if a tag is specified, it
must match.

|        |          Greg Stein        |
|        |          <gstein@lyra.org> |
|        |          Sent by:          |
|        |          w3c-dist-auth-requ|
|        |          est@w3.org        |
|        |                            |
|        |                            |
|        |          04/13/2000 07:51  |
|        |          AM                |
|        |                            |
  |                                                                       |
  |       To:     w3c-dist-auth@w3.org                                    |
  |       cc:                                                             |
  |       Subject:     Puzzle: DELETE of a locked collection              |

Consider the following directory structure:

  Collection         [locked with token A, depth=0]
    SubCollection    [locked with token B, depth=infinity]
      File2          [these inherit token B]

Now, how do you delete SubCollection?

Note that you must provide token A to remove SubCollection from
Collection. Also, you must provide token B for SubCollection *and*

What's the IF: header look like?

(presume that you cannot delineate all the (recursive) members of
 SubCollection and insert them *all* into the IF: header)

I can't see a way to do it. Normally, no-tag-lists are used for specifying
locks for a hierarchy. But you must use a tagged-list to specify token A.



Greg Stein, http://www.lyra.org/
Received on Thursday, 13 April 2000 10:01:09 UTC

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