LOCK and versioned resources

From: Tim Ellison/OTT/OTI (Tim_Ellison@oti.com)
Date: Fri, Jun 02 2000

  • Next message: Michael Skowronski: "Re: LOCK and versioned resources"

    To: ietf-dav-versioning@w3.org
    Message-ID: <OFC148A8D5.431DDAA6-ON852568F2.006C66BF@ott.oti.com>
    From: "Tim Ellison/OTT/OTI" <Tim_Ellison@oti.com>
    Date: Fri, 2 Jun 2000 15:52:26 -0400
    Subject: LOCK and versioned resources
    
    The intention of a LOCK is to ensure that (1) the resource 
    content/properties and (2) request-URI/target-sector are protected by the 
    lock token owner.
    
    So if we have a versioned collection (/foo/) and versioned data container 
    (/foo/bar), the effect of taking out a lock as follows:
    
    LOCK /foo/bar
    Target-Selector: tested
    Workspace: http://whatever/mywksp
    
    means that the target of the request should be protected in both ways 
    described above.
    
    The implications are that:
    (a) the default target for /foo/ in /mywksp cannot be changed (using 
    SET-TARGET),
    (b) the binding /foo/ and /foo/bar cannot be changed (using MOVE/DELETE),
    and (c) the label "tested" cannot be moved/removed from the revision it is 
    presently on (using LABEL).
    
    I surprised myself with point (c) -- but I think this is what we want.
    
    [Note that if the revision labeled "tested" is the default target for that 
    resource in /mywksp, and if I hadn't provided the Target-Selector:, then 
    point (c) would not apply (i.e., the label could be (re)moved)]
    
    Comments?
    Tim