W3C home > Mailing lists > Public > ietf-dav-versioning@w3.org > July to September 2001

Re: Label behaviour...

From: Jim Amsden <jamsden@us.ibm.com>
Date: Tue, 10 Jul 2001 11:04:07 -0400
To: ietf-dav-versioning@w3.org
Message-ID: <OF85969E89.882A8799-ON85256A85.004DE9EF@raleigh.ibm.com>
Your are correct on the distinction between adding and setting a label. 
Its there to avoid inadvertant reuse of a label. See the precondition for 
DAV:must-be-new-label. This indicates that for DAV:add, the label MUST NOT 
currently select a version. The postconditions for add and set are the 
same.

I don't know what you mean by "the labels that are in use". Do you mean 
the intersection of all labels on all resources? If so, why would you need 
this? To see if a label is already used? This might be useful information, 
but just because a label is used in one version history doesn't prevent it 
from being used in another. You can find out if a label is used by using 
DAV:add. It will fail if a version in that version history already has 
that label. There's really no need to get the labels first.






Peter Raymond <Peter.Raymond@merant.com>
Sent by: ietf-dav-versioning-request@w3.org
07/10/2001 06:00 AM

 
        To:     ietf-dav-versioning@w3.org
        cc: 
        Subject:        Label behaviour...

 

Hi, 
I have a couple of questions about Labels. 
1)  What's the difference between DAV:add and DAV:set of a label? 
     Section 8 of the spec does not spell this out.  My best guess is that 
     DAV:add will fail with a DAV:must-be-new-label if the label is 
already 
     used by any version of the resource, but DAV:set will remove any 
existing 
     use of that label and then set the label on the specified version, 
but I don't 
     see this documented in the spec. 
 
2) How does a client get a list of labels to present the user with a 
choice? 
    The only way I can see is to request the DAV:label-name-set property 
of every 
    version resource.  Wouldn't it be useful to have a report which listed 
the labels 
    that are in use? 
Regards, 
-- 
Peter Raymond - MERANT 
Technical Architect (ADM) 
Tel: +44 (0)1727 813362 
Fax: +44 (0)1727 869804 
mailto:Peter.Raymond@merant.com 
WWW: http://www.merant.com 
Received on Tuesday, 10 July 2001 11:04:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 13:57:42 GMT