<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc toc="yes"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<?rfc-ext parse-xml-in-artwork="yes"?>
<?rfc-ext allow-markup-in-artwork="yes"?>
<rfc xmlns:x='http://purl.org/net/xml2rfc/ext' xmlns:ed="http://greenbytes.de/2002/rfcedit" ipr="full3667" updates="2518" docName="draft-ietf-webdav-bind-09" category="std" ed:entered-by="julian.reschke@greenbytes.de">
  <front>
    <title abbrev="Binding Extensions to WebDAV">Binding Extensions to Web Distributed Authoring and Versioning (WebDAV)</title>
    <author initials="G." surname="Clemm" fullname="Geoffrey Clemm">
      <organization>IBM</organization>
      <address>
        <postal>
          <street>20 Maguire Road</street>
          <city>Lexington</city>
          <region>MA</region>
          <code>02421</code>
        </postal>
        <email>geoffrey.clemm@us.ibm.com</email>
      </address>
    </author>
    <author initials="J." surname="Crawford" fullname="Jason Crawford">
      <organization>IBM Research</organization>
      <address>
        <postal>
          <street>P.O. Box 704</street>
          <city>Yorktown Heights</city>
          <region>NY</region>
          <code>10598</code>
        </postal>
        <email>ccjason@us.ibm.com</email>
      </address>
    </author>
  	<author initials="J. F." surname="Reschke" fullname="Julian F. Reschke">
  		<organization abbrev="greenbytes">greenbytes GmbH</organization>
        <address>
        	<postal>
          	<street>Salzmannstrasse 152</street>
            <city>Muenster</city><region>NW</region><code>48159</code>
           	<country>Germany</country>
         	</postal>
  		  <email>julian.reschke@greenbytes.de</email>	
  		</address>
  	</author>
    <author initials="J." surname="Whitehead" fullname="Jim Whitehead">
      <organization abbrev="U.C. Santa Cruz">UC Santa Cruz, Dept. of Computer Science</organization>
      <address>
        <postal>
          <street>1156 High Street</street>
          <city>Santa Cruz</city>
          <region>CA</region>
          <code>95064</code>
        </postal>
        <email>ejw@cse.ucsc.edu</email>
      </address>
    </author>

    <date month="December" year="2004" day="9"/>
	
    <abstract>
      <t>
        This specification defines bindings, and the BIND method for creating
        multiple bindings to the same resource.  Creating a new binding to a
        resource causes at least one new URI to be mapped to that resource.  Servers
        are required to insure the integrity of any bindings that they
        allow to be created.
      </t>
    </abstract>
    

    <note title="Editorial Note (To be removed by RFC Editor before publication)">
      <t>
        Please send comments to the 
        Distributed Authoring and Versioning (WebDAV) working group at <eref target="mailto:w3c-dist-auth@w3.org"/>, which may be joined by sending a message with subject 
        "subscribe" to <eref target="mailto:w3c-dist-auth-request@w3.org"/>.
        Discussions of the WEBDAV working group are archived at 
        <eref target="http://lists.w3.org/Archives/Public/w3c-dist-auth/"/>.
      </t>
      <t>
        <eref target="http://www.webdav.org/bind/draft-ietf-webdav-bind-issues.html"/>
        lists all registered issues since draft 02.         
      </t> 
    </note>
    
  </front>

	<middle>
  
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="edit" type="edit" status="open">
  <ed:item entered-by="julian.reschke@greenbytes.de" date="2004-05-30">
    Umbrella issue for editorial fixes/enhancements.
  </ed:item>
</ed:issue>








<section title="Introduction" anchor="introduction">
<t>
  This specification extends the WebDAV Distributed Authoring Protocol to enable
  clients to create new access paths to existing resources.  This capability is
  useful for several reasons:
</t>
<t>
  URIs of WebDAV-compliant resources are hierarchical and correspond to a hierarchy
  of collections in resource space.  The WebDAV Distributed Authoring Protocol
  makes it possible to organize these resources into hierarchies, placing them
  into groupings, known as collections, which are more easily browsed and
  manipulated than a single flat collection.  However, hierarchies require
  categorization decisions that locate resources at a single location in the
  hierarchy, a drawback when a resource has multiple valid categories.  For
  example, in a hierarchy of vehicle descriptions containing collections for
  cars and boats, a description of a combination car/boat vehicle could belong
  in either collection.  Ideally, the description should be accessible from both.
  Allowing clients to create new URIs that access the existing resource lets
  them put that resource into multiple collections.
</t>
<t>
  Hierarchies also make resource sharing more difficult, since resources that
  have utility across many collections are still forced into a single collection.
  For example, the mathematics department at one university might create a
  collection of information on fractals that contains bindings to some local
  resources, but also provides access to some resources at other universities.  For
  many reasons, it may be undesirable to make physical copies of the shared
  resources on the local server: to conserve disk space, to respect copyright 
  constraints, or to make any changes in the shared resources visible
  automatically.  Being able to create new access paths to existing resources in 
  other collections or even on other servers is useful for this sort of case.
</t>
<t>
  The BIND method defined here provides a mechanism for allowing clients to
  create alternative access paths to existing WebDAV resources.  HTTP 
  <xref target="RFC2616"/> and WebDAV 
  <xref target="RFC2518"/>
  methods are able to work because there are mappings between URIs and resources.  A
  method is addressed to a URI, and the server follows the mapping from that
  URI to a resource, applying the method to that resource.  Multiple URIs may be
  mapped to the same resource, but until now there has been no way for clients
  to create additional URIs mapped to existing resources. 
</t>
<t>
  BIND lets clients associate a new URI with an existing WebDAV resource, and
  this URI can then be used to submit requests to the resource.  Since URIs of
  WebDAV resources are hierarchical, and correspond to a hierarchy of
  collections in resource space, the BIND method also has the effect of adding
  the resource to a collection.  As new URIs are associated with the resource,
  it appears in additional collections.
</t>
<t>
  A BIND request does not create a new resource, but simply makes available a
  new URI for submitting requests to an existing resource.  The new URI is
  indistinguishable from any other URI when submitting a request to a resource.  Only 
  one round trip is needed to submit a request to the intended target.
  Servers are required to enforce the integrity of the relationships between
  the new URIs and the resources associated with them.  Consequently, it may be
  very costly for servers to support BIND requests that cross server boundaries.
</t>
<t>
  This specification is organized as follows.  <xref target="terminology"/> defines terminology
  used in the rest of the specification, while <xref target="overview.of.bindings"/> overviews bindings.
  <xref target="properties"/> defines the new properties needed to support multiple bindings to
  the same resource.  <xref target="METHOD_BIND"/> specifies the BIND method, used to create
  multiple bindings to the same resource.  <xref target="METHOD_UNBIND"/> specifies the UNBIND
  method, used to remove a binding to a resource.  <xref target="METHOD_REBIND"/> specifies the
  REBIND method, used to move a binding to another collection.  
</t>

<section title="Terminology" anchor="terminology">
<t>
  The terminology used here follows and extends that in the WebDAV Distributed
  Authoring Protocol specification <xref target="RFC2518"/>.
</t>
<t>
  The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD",
  "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be
  interpreted as described in <xref target="RFC2119"/>. 
</t>
<t>
  This document uses XML DTD fragments 
  (<xref target="XML"/>) as a purely notational convention.
  WebDAV request and response bodies cannot be validated due to the specific
  extensibility rules defined in section 23 of <xref target="RFC2518"/> and due to the fact
  that all XML elements defined by this specification use the XML namespace
  name "DAV:".  In particular:
  <list style="symbols">
    <t>Element names use the "DAV:" namespace.</t>
    <t>Element ordering is irrelevant.</t>
    <t>Extension elements/attributes (elements/attributes not already defined
    as valid child elements) may be added anywhere, except when explicitly
    stated otherwise.</t> 
  </list>
</t>
<t>
  URI Mapping<iref item="URI Mapping" primary="true"/>
  <list><t>
    A relation between an absolute URI and a resource.  For an absolute URI U
    and the resource it identifies R, the URI mapping can be thought of as
    (U =&gt; R).  Since a resource can represent items that are not network
    retrievable, as well as those that are, it is possible for a resource to
    have zero, one, or many URI mappings.  Mapping a resource to an "http"
    scheme URI makes it possible to submit HTTP protocol requests to the
    resource using the URI.
  </t></list>
</t>
<t>
  Path Segment<iref item="Path Segment" primary="true"/>
  <list><t>
    Informally, the characters found between slashes ("/") in a URI.
    Formally, as defined in section 3.3 of <xref target="draft-fielding-rfc2396bis"/>.
  </t></list>
</t>
<t>
  Binding<iref item="Binding" primary="true"/>
  <list><t>
    A relation between a single path segment (in a collection) and a resource.  A
    binding is part of the state of a collection.  If two different
    collections contain a binding between the same path segment and the same
    resource, these are two distinct bindings.  So for a collection C, a path
    segment S, and a resource R, the binding can be thought of as C:(S -&gt; R).
    Bindings create URI mappings, and hence allow requests to be sent to a
    single resource from multiple locations in a URI namespace.  For example,
    given a collection C (accessible through the URI 
    http://www.example.com/CollX), a path segment S (equal to "foo.html"), and 
    a resource R, then creating the binding C: (S -&gt; R) makes it possible to
    use the URI http://www.example.com/CollX/foo.html to access R.
  </t></list>
</t>
<t>
  Collection<iref item="Collection" primary="true"/>
  <list><t>
    A resource that contains, as part of its state, a set of bindings that 
    identify internal member resources.
  </t></list>
</t>
<t>
  Internal Member URI<iref item="Internal Member URI" primary="true"/>
  <list><t>
    The URI that identifies an internal member of a collection, and that
    consists of the URI for the collection, followed by a slash character
    ('/'), followed by the path segment of the binding for that internal member.
  </t></list>
</t>
</section>

<section title="Rationale for Distinguishing Bindings from URI Mappings" anchor="rationale.for.distinguishing.bindings.from.uri.mappings">
<t>
  In <xref target="RFC2518"/>, the state of a collection is defined as containing a list of
  internal member URIs.  If there are multiple mappings to a collection, then
  the state of the collection is different when you refer to it via a different
  URI.  This is undesirable, since ideally a collection's membership should
  remain the same, independent of which URI was used to reference it.
</t>
<t>
  The notion of binding is introduced to separate the final segment of a URI
  from its parent collection's contribution.  This done, a collection can be
  defined as containing a set of bindings, thus permitting new mappings to a
  collection without modifying its membership.  The authors of this
  specification anticipate and recommend that future revisions of <xref target="RFC2518"/>
  will update the definition of the state of a collection to correspond to the
  definition in this document.
</t>
</section>

<section title="Method Preconditions and Postconditions" anchor="method.preconditions.and.postconditions">
<t>
  A "precondition" of a method describes the state on the server that must be
  true for that method to be performed.  A "postcondition" of a method
  describes the state on the server that must be true after that method has
  completed.  If a method precondition or postcondition for a request is not
  satisfied, the response status of the request MUST be either 403 (Forbidden)
  if the request should not be repeated because it will always fail, or 409
  (Conflict) if it is expected that the user might be able to resolve the
  conflict and resubmit the request.
</t>

<t>
  In order to allow better client handling of 403 and 409 responses, a
  distinct XML element type is associated with each method precondition and
  postcondition of a request.  When a particular precondition is not satisfied
  or a particular postcondition cannot be achieved, the appropriate XML element
  MUST be returned as the child of a top-level DAV:error element in the
  response body, unless otherwise negotiated by the request.  In a 207
  Multi-Status response, the DAV:error element would appear in the
  appropriate DAV:responsedescription element.
</t>
</section>
</section>

<section title="Overview of Bindings" anchor="overview.of.bindings">
<t>
  Bindings are part of the state of a collection.  They define the internal
  members of the collection, and the names of those internal members.
</t>
<t>
  Bindings are added and removed by a variety of existing HTTP methods.  A
  method that creates a new resource, such as PUT, COPY, and MKCOL, adds a
  binding.  A method that deletes a resource, such as DELETE, removes a
  binding.  A method that moves a resource (e.g. MOVE) both adds a binding
  (in the destination collection) and removes a binding (in the source
  collection).  The BIND method introduced here provides a mechanism for
  adding a second binding to an existing resource.  There is no difference
  between an initial binding added by PUT, COPY, or MKCOL, and additional
  bindings added with BIND.
</t>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="2_allow_destroy" type="change" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
  The language here would preclude the future
definition of a DESTROY method which had the semantics of removing the state
of a resource from a server, irregardless of any containment relationships
that may hold it. Such a method could be quite useful for records management
functionality, in order to implement a records disposition policy that
specified deletion at a certain time. My recommended tweak to the language
of section 2 is minor: add the following sentence to the end of the
paragraph:
<br/>
"It is permissible, however, for future method definitions (e.g., a DESTROY
method) to have semantics that remove all bindings and/or immediately
reclaim system resources."
  </ed:item>
  <ed:resolution datetime="2004-11-30">
    Agreed to add statement about methods that explicitly have that semantics.
  </ed:resolution>
</ed:issue>
<t>
  It would be very undesirable if one binding could be destroyed as a side
  effect of operating on the resource through a different binding.  In
  particular, the removal of one binding to a resource (e.g. with a DELETE or
  a MOVE) MUST NOT disrupt another binding to that resource, e.g. by turning
  that binding into a dangling path segment.  The server MUST NOT reclaim
  system resources after removing one binding, while other bindings to the
  resource remain.  In other words, the server MUST maintain the integrity of
  a binding.  <ed:replace ed:resolves="2_allow_destroy" datetime="2004-11-30"><ed:ins>It is permissible, however, for future method definitions (e.g., a 
DESTROY method) to have semantics that explicitly remove all bindings 
and/or immediately reclaim system resources.
  </ed:ins></ed:replace>
</t>

<section title="Bindings to Collections" anchor="bindings.to.collections">
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="2.1_separate_loop_discussion" type="edit" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
    I think it would be more clear to separate out the discussion
    of loops and bindings, and make it a separate section (say, 2.2) This issue
    comes up frequently enough that it would be good to make it easy to find
    this issue in the TOC. Also, a mention of the Already Reported status code
    would be good to have here, since it also mentions 506.
  </ed:item>
  <ed:resolution datetime="2004-11-30">
    Agreed to move 1st paragraph into separate subsection.
  </ed:resolution>
</ed:issue>
<ed:replace ed:resolves="2.1_separate_loop_discussion" datetime="2004-11-30"><ed:del>
<t>
  Bindings to collections can result in loops, which servers MUST detect when
  processing "Depth: infinity" requests.  It is sometimes possible to complete
  an operation in spite of the presence of a loop.  However, the 506 (Loop
  Detected) status code is defined in <xref target="additional.status.codes"/> for use in contexts where an
  operation is terminated because a loop was encountered.
</t>
</ed:del></ed:replace>
<t>
  Creating a new binding to a collection makes each resource associated with
  a binding in that collection accessible via a new URI, and thus creates new
  URI mappings to those resources but no new bindings.
</t>
<t>
  For example, suppose a new binding CollY is created for collection C1 in the
  figure below.  It immediately becomes possible to access resource R1 using
  the URI /CollY/x.gif and to access resource R2 using the URI /CollY/y.jpg,
  but no new bindings for these child resources were created.  This is because
  bindings are part of the state of a collection, and associate a URI that
  is relative to that collection with its target resource.  No change to the
  bindings in Collection C1 is needed to make its children accessible using
  /CollY/x.gif and /CollY/y.jpg.
</t>
<figure><artwork>
+-------------------------+
| Root Collection         |
|  bindings:              |
|  CollX          CollY   |
+-------------------------+
    |            /          
    |           /
    |          /
+------------------+  
| Collection C1    |  
| bindings:        |
| x.gif     y.jpg  |  
+------------------+  
    |          \               
    |           \               
    |            \              
+-------------+   +-------------+
| Resource R1 |   | Resource R2 |
+-------------+   +-------------+
</artwork></figure>
<ed:replace ed:resolves="2.1_separate_loop_discussion" datetime="2004-11-30"><ed:ins>
<section title="Bind loops" anchor="bind.loops">
<t>
  Bindings to collections can result in loops, which servers MUST detect when
  processing "Depth: infinity" requests.  It is sometimes possible to complete
  an operation in spite of the presence of a loop.  For instance, a PROPFIND
  can still succeed if the server uses the new status code
  208 (Already Reported) defined in <xref target="status.208.already.reported"/>.
</t>
<t>  
  However, the 506 (Loop Detected) status code is defined in <xref target="status.506.loop.detected"/> for use in contexts where an
  operation is terminated because a loop was encountered.
</t>
</section>
</ed:ins></ed:replace>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="2.1.1_bind_loops_vs_locks" type="change" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0217.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-12-03">
    ...The other is the semantics of the lock operation in the presence
of loopback bindings. I think the handling of If headers is relatively
straightforward. The semantics of locking are not....
  </ed:item>
  <ed:resolution datetime="2004-12-09">
    After some discussion, the working group agreed that we don't want to define
    special semantics for depth:infinity locks, thus the standard lock
    sematics apply (see <a href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0271.html">http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0271.html</a>).
  </ed:resolution>
</ed:issue>
</section>

<section title="URI Mappings Created by a new Binding" anchor="uri.mappings.created.by.a.new.binding">
<t>
  Suppose a binding from "Binding-Name" to resource R is to be added to a
  collection, C.  Then if C-MAP is the set of URIs that were mapped to C
  before the BIND request, then for each URI "C-URI" in C-MAP, the URI
  "C-URI/Binding-Name" is mapped to resource R following the BIND request.
</t>
<figure><preamble>
  For example, if a binding from "foo.html" to R is added to a collection C,
  and if the following URIs are mapped to C:
</preamble><artwork>
http://www.example.com/A/1/
http://example.com/A/one/
</artwork></figure>
<figure><preamble>
  then the following new mappings to R are introduced:
</preamble><artwork>
http://www.example.com/A/1/foo.html
http://example.com/A/one/foo.html
</artwork></figure>
<t>
  Note that if R is a collection, additional URI mappings are created to the
  descendents of R.  Also, note that if a binding is made in collection C to C
  itself (or to a parent of C), an infinite number of mappings are introduced.
</t>
<figure><preamble>
  For example, if a binding from "myself" to C is then added to C, the
  following infinite number of additional mappings to C are introduced:
</preamble><artwork>
http://www.example.com/A/1/myself
http://www.example.com/A/1/myself/myself
   ...
</artwork></figure>
<figure><preamble>
  and the following infinite number of additional mappings to R are introduced:
</preamble><artwork>
http://www.example.com/A/1/myself/foo.html
http://www.example.com/A/1/myself/myself/foo.html
   ...
</artwork></figure>
</section> 
 
<section title="COPY and Bindings" anchor="copy.and.bindings">
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="2.3_copy_depth_infinity" type="change" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
This section doesn't clearly address the semantics of COPY
with Depth infinity. My recommendation is to add, after paragraph 3, text
like this:
<br/>
"As specified in [RFC2518], a COPY with Depth infinity causes the collection
resource to be duplicated, all of its bound children to be duplicated, and
their children's bound children, and so on, to the bottom of the containment
hierarchy. All of the segments of the bindings of the destination collection
are the same as for the destination collection. However, the destination
resource for all bindings in the destination collection are different from
those of the source collection, since all resources have been duplicated,
creating new resources with distinct DAV:resource-id properties."
  </ed:item>
  <ed:resolution datetime="2004-12-02">
    Example added.
  </ed:resolution>
</ed:issue>
<t>
  As defined in Section 8.8 of <xref target="RFC2518"/>, COPY causes the resource identified
  by the Request-URI to be duplicated, and makes the new resource accessible 
  using the URI specified in the Destination header.  Upon successful
  completion of a COPY, a new binding is created between the last path
  segment of the Destination header, and the destination resource.  The new
  binding is added to its parent collection, identified by the Destination
  header minus its final segment.
</t>
<figure><preamble>
  The following figure shows an example: Suppose that a COPY is issued to
  URI-3 for resource R (which is also mapped to URI-1 and URI-2), with the
  Destination header set to URI-X.  After successful completion of the COPY
  operation, resource R is duplicated to create resource R', and a new binding
  has been created which creates at least the URI mapping between URI-X and
  the new resource (although other URI mappings may also have been created).
</preamble><artwork>
URI-1   URI-2    URI-3                           URI-X
   |       |        |                              |
   |       |        |   &lt;---- URI Mappings ----&gt;   |
   |       |        |                              |
+---------------------+                 +------------------------+
|     Resource R      |                 |     Resource R'        |
+---------------------+                 +------------------------+
</artwork></figure>
<t>
  It might be thought that a COPY request with "Depth: 0" on a collection would
  duplicate its bindings, since bindings are part of the collection's state.
  This is not the case, however.  The definition of Depth in <xref target="RFC2518"/> makes it
  clear that a "Depth: 0" request does not apply to a collection's members.
  Consequently, a COPY with "Depth: 0" does not duplicate the bindings
  contained by the collection.
</t>
<t>
  If a COPY request causes an existing resource to be updated, the bindings to
  that resource MUST be unaffected by the COPY request.  Using the preceding
  example, suppose that a COPY request is issued to URI-X for resource R', with
  the Destination header set to URI-2.  The content and dead properties of
  resource R would be updated to be a copy of those of resource R', but the
  mappings from URI-1, URI-2, and URI-3 to resource R remain unaffected.
  If because of multiple bindings to a resource, more than one source resource
  updates a single destination resource, the order of the updates is server
  defined.
</t>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="2.3_copy_vs_loops" type="change" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
There should also be some text addressing COPY depth infinity and loops --
in some instances during a COPY with Depth infinity, the server really wants
to recreate the binding that causes the loop, rather than continuing to make
duplicate resources. This is somewhat addressed by the final paragraph in
Section 2.3, but not exactly.
  </ed:item>
  <ed:resolution datetime="2004-12-02">
    Can be closed after copy/depth:infinity example was added (see 
    <a href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0181.html">http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0181.html</a>).
  </ed:resolution>
</ed:issue>
<t>
  If a COPY request would cause a new resource to be created as a copy of an
  existing resource, and that COPY request has already created a copy of that
  existing resource, the COPY request instead creates another binding to the
  previous copy, instead of creating a new resource.
</t>

<ed:replace ed:resolves="2.3_copy_depth_infinity" datetime="2004-12-02"><ed:ins>
<section title="Example: COPY with 'Depth: infinity' in presence of bind loops">
<figure>
<preamble>
As an example of how COPY with Depth infinity would work in the presence of
bindings, consider the following collection:
</preamble>
<artwork>
+------------------+
| Root Collection  |
|  bindings:       |
|  CollX           |
+------------------+
    |
    |
+-------------------------------+
| Collection C1                 |&lt;-------+
| bindings:                     |        |
| x.gif      CollY              |        |
+-------------------------------+        |
    |            \        (creates loop) |
    |             \                      |
+-------------+   +------------------+   |
| Resource R1 |   | Collection C2    |   |
+-------------+   | bindings:        |   |
                  | y.gif     CollZ  |   |
                  +------------------+   |
                      |         |        |
                      |         +--------+
                      |
                  +-------------+
                  | Resource R2 | 
                  +-------------+
</artwork>
</figure>
<figure>
<preamble>
If a COPY with Depth inifinity is submitted to /CollX, with destination of
/CollA, the outcome of the copy operation is:
</preamble>
<artwork>
+------------------+
| Root Collection  |
|  bindings:       |
|  CollX     CollA |
+------------------+
   |           |
   |           +---------------------------+
   |                                       |
+-------------------+                      |
| Collection C1     |&lt;------------------+  |
| bindings:         |                   |  |
| x.gif      CollY  |                   |  |
+-------------------+                   |  |
   |            \        (creates loop) |  |
   |             \                      |  |
+-------------+   +-----------------+   |  |
| Resource R1 |   | Collection C2   |   |  |
+-------------+   | bindings:       |   |  |
                  | y.gif     CollZ |   |  |
                  +-----------------+   |  |
                      |         |       |  |
                      |         +-------+  |
                      |                    |
                  +-------------+          |
                  | Resource R2 |          |
                  +-------------+          |
                                           |
           +-------------------------------+
           |
+-------------------+
| Collection C3     |&lt;------------------+
| bindings:         |                   |
| x.gif      CollY  |                   |
+-------------------+                   |
   |            \        (creates loop) |
   |             \                      |
+-------------+   +-----------------+   |
| Resource R3 |   | Collection C4   |   |
+-------------+   | bindings:       |   |
                  | y.gif     CollZ |   |
                  +-----------------+   |
                      |         |       |
                      |         +-------+
                      |
                  +-------------+
                  | Resource R4 |
                  +-------------+
</artwork>
</figure>
</section>
</ed:ins></ed:replace>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="2.3_copy_example" type="change" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
It might make sense to create an example covering the situation described
in the final paragraph of Section 2.3. I'm not 100% sure I know what
scenario this paragraph addresses, other reading the spec. for the first
time would presumably have a tougher time.  </ed:item>
  <ed:resolution datetime="2004-12-02">
    Example added.
  </ed:resolution>
</ed:issue>
<ed:replace><ed:ins>
<section title="Example: COPY with 'Depth: infinity' with multiple bindings to a leaf resource">
<figure><preamble>
Given the following collection hierarchy:
</preamble><artwork>
+------------------+
| Root Collection  |
|  bindings:       |
|  CollX           |
+------------------+
   |            
   |  
   |                 
+----------------+ 
| Collection C1  | 
| bindings:      | 
| x.gif    y.gif | 
+----------------+
   |         |        
   |         |    
 +-------------+   
 | Resource R1 |    
 +-------------+
</artwork></figure>
<figure><preamble>
A COPY of /CollX with Depth infinity to /CollY results in the following
collection hierarchy:
</preamble><artwork>
+------------------+
| Root Collection  |
|  bindings:       |
|  CollX     CollY |
+------------------+
   |              \
   |               \
   |                \           
+----------------+  +-----------------+
| Collection C1  |  | Collection C2   |
| bindings:      |  | bindings:       |
| x.gif    y.gif |  | x.gif     y.gif |
+----------------+  +-----------------+
   |         |          |         |
   |         |          |         |
 +-------------+      +-------------+
 | Resource R1 |      | Resource R2 |
 +-------------+      +-------------+
</artwork></figure>
</section>
</ed:ins></ed:replace>
</section> 
 
<section title="DELETE and Bindings" anchor="delete.and.bindings">
<t>
  When there are multiple bindings to a resource, a DELETE applied to that
  resource MUST NOT remove any bindings to that resource other than the one
  identified by the Request-URI.  For example, suppose the collection
  identified by the URI "/a" has a binding named "x" to a resource R, and
  another collection identified by "/b" has a binding named "y" to the same
  resource R.  Then a DELETE applied to "/a/x" removes the binding named "x"
  from "/a" but MUST NOT remove the binding named "y" from "/b" (i.e. after the
  DELETE, "/y/b" continues to identify the resource R).  In particular,
  although Section 8.6.1 of <xref target="RFC2518"/> states that during DELETE processing,
  a server "MUST remove any URI for the resource identified by the
  Request-URI from collections which contain it as a member", a server that
  supports the binding protocol MUST NOT follow this requirement.
</t>
<t>
  When DELETE is applied to a collection, it MUST NOT modify the membership
  of any other collection that is not itself a member of the collection being
  deleted.  For example, if both "/a/.../x" and "/b/.../y" identify the same
  collection, C, then applying DELETE to "/a" <ed:replace ed:resolves="edit" datetime="2004-11-30"><ed:del>MUST NOT</ed:del><ed:ins>must not</ed:ins></ed:replace> delete an internal
  member from C or from any other collection that is a member of C, because
  that would modify the membership of "/b". 
</t>
<t>
  If a collection supports the UNBIND method (see <xref target="METHOD_UNBIND"/>), a DELETE of an
  internal member of a collection MAY be implemented as an UNBIND request.
  In this case, applying DELETE to a Request-URI has the effect of removing
  the binding identified by the final segment of the Request-URI from the
  collection identified by the Request-URI minus its final segment.  Although
  <xref target="RFC2518"/> allows a DELETE to be a non-atomic operation, when the DELETE
  operation is implemented as an UNBIND, the operation is atomic.  In
  particular, a DELETE on a hierarchy of resources is simply the removal of a
  binding to the collection identified by the Request-URI. 
</t>
</section>

<section title="MOVE and Bindings" anchor="move.and.bindings">
<t>
  When MOVE is applied to a resource, the other bindings to that resource
  MUST be unaffected, and if the resource being moved is a collection, the
  bindings to any members of that collection MUST be unaffected.  Also, if MOVE
  is used with Overwrite:T to delete an existing resource, the constraints
  specified for DELETE apply.
</t>
<t>
  If the destination collection of a MOVE request supports the REBIND method
  (see <xref target="METHOD_REBIND"/>), a MOVE of a resource into that collection MAY be implemented
  as a REBIND request.  Although <xref target="RFC2518"/> allows a MOVE to be a non-atomic
  operation, when the MOVE operation is implemented as a REBIND, the operation
  is atomic.  In particular, applying a MOVE to a Request-URI and a Destination
  URI has the effect of removing a binding to a resource (at the Request-URI),
  and creating a new binding to that resource (at the Destination URI).  
  Even when the
  Request-URI identifies a collection, the MOVE operation involves only
  removing one binding to that collection and adding another.
</t>
<t>
  As an example, suppose that a MOVE is issued to URI-3 for resource R below
  (which is also mapped to URI-1 and URI-2), with the Destination header set
  to URI-X.  After successful completion of the MOVE operation, a new binding
  has been created which creates the URI mapping between URI-X and resource R.  The 
  binding corresponding to the final segment of URI-3 has been removed,
  which also causes the URI mapping between URI-3 and R to be removed.  If
  resource R were a collection, old URI-3 based mappings to members of R
  would have been removed, and new URI-X based mappings to members of R would
  have been created.  
</t>
<figure><preamble>
&gt;&gt; Before Request:
</preamble><artwork>
 URI-1   URI-2    URI-3
   |       |        |                               
   |       |        |      &lt;---- URI Mappings
   |       |        |
+---------------------+                  
|     Resource R      |
+---------------------+                  
</artwork></figure>
<figure><preamble>
&gt;&gt; After Request:
</preamble><artwork>
 URI-1   URI-2    URI-X
   |       |        |                               
   |       |        |      &lt;---- URI Mappings
   |       |        |
+---------------------+                  
|     Resource R      |
+---------------------+                  
</artwork></figure>


</section>

<section title="Determining Whether Two Bindings Are to the Same Resource" anchor="determining.whether.two.bindings.are.to.the.same.resource">
<t>
  It is useful to have some way of determining whether two bindings are to the
  same resource.  Two resources might have identical contents and properties,
  but not be the same resource (e.g. an update to one resource does not affect
  the other resource).
</t>
<t>
  The REQUIRED DAV:resource-id property defined in <xref target="PROPERTY_resource-id"/> is a resource
  identifier, which MUST be unique across all resources for all time.  If the
  values of DAV:resource-id returned by PROPFIND requests through two bindings
  are identical character by character, the client can be assured that the two bindings are to the
  same resource.
</t>
<t>
  The DAV:resource-id property is created, and its value assigned, when the
  resource is created.  The value of DAV:resource-id MUST NOT be changed.
  Even after the resource is no longer accessible through any URI, that value
  MUST NOT be reassigned to another resource's DAV:resource-id property.
</t>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="2.6_resource-id_vs_versions" type="change" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
    There needs to be some discussion on the interactions of
    DAV:resource-id and versioning. As near as I can tell, the intent is that
    every revision will have a unique DAV:resource-id value.
  </ed:item>
  <ed:resolution datetime="2004-12-01">
    Mention in an example.
  </ed:resolution>
</ed:issue>
<t>
  Any method that creates a new resource MUST assign a new, unique value to
  its DAV:resource-id property.  <ed:replace ed:resolves="2.6_resource-id_vs_versions" datetime="2004-12-01"><ed:del>For example, a PUT or a COPY that creates a
  new resource must assign a new, unique value to the DAV:resource-id property
  of that new resource.</ed:del><ed:ins>  For example, a PUT applied to a null resource,
  COPY (when not overwriting an existing target) and 
  CHECKIN (see <xref target="RFC3253"/>, section 4.4) must assign a new, unique value to the DAV:resource-id property
  of the new resource they create.
  </ed:ins></ed:replace>
</t>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="2.6_when_do_ids_change" type="change" status="open" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
    Change "must not" to
    "MUST NOT" (and eliminate the "For example" at the start of the sentence --
    perhaps change to "Specifically,"
  </ed:item>
  <ed:item entered-by="julian.reschke@greenbytes.de" date="2004-11-30"> 
    Fix language, replace MOVE by REBIND (because MOVE may be implemented as COPY/DELETE).
    Unclear whether we need more changes.
  </ed:item >
</ed:issue>
<t>
  On the other hand, any method that affects an existing resource <ed:replace ed:resolves="2.6_when_do_ids_change" datetime="2004-11-30"><ed:del>MUST NOT</ed:del>
  <ed:ins>must not</ed:ins></ed:replace>
  change the value of its DAV:resource-id property.  <ed:replace ed:resolves="2.6_when_do_ids_change" datetime="2004-11-30"><ed:del>For example</ed:del>
  <ed:ins>Specifically</ed:ins></ed:replace>, a PUT or a
  COPY that updates an existing resource must not change the value of its
  DAV:resource-id property.  A <ed:replace ed:resolves="2.6_when_do_ids_change" datetime="2004-11-30"><ed:del>MOVE</ed:del><ed:ins>REBIND</ed:ins></ed:replace>, since it does not create a new resource,
  but only changes the location of an existing resource, must not change the
  value of the DAV:resource-id property.
</t>
</section>

<section title="Discovering the Bindings to a Resource" anchor="discovering.the.bindings.to.a.resource">
<t>
  An OPTIONAL DAV:parent-set property on a resource provides a list of the
  bindings that associate a collection and a URI segment with that resource.  If
  the DAV:parent-set property exists on a given resource, it MUST contain
  a complete list of all bindings to that resource that the client is
  authorized to see.  When deciding whether to support the DAV:parent-set
  property, server implementers / administrators should balance the benefits
  it provides against the cost of maintaining the property and the security
  risks enumerated in Sections <ed:replace ed:resolves="edit" datetime="2004-11-30"><ed:del>8.4 and 8.5</ed:del>
  <ed:ins><xref target="private.locations.may.be.revealed" format="counter"/> and <xref target="parent-set.and.denial.of.service" format="counter"/></ed:ins></ed:replace>.
</t>
</section>

</section>
  
<section title="Properties" anchor="properties">
<t>
  The bind feature introduces the following properties for a resource.
</t>
<t>
  A DAV:allprop PROPFIND request SHOULD NOT return any of the properties
  defined by this document.  This allows a binding server to perform
  efficiently when a naive client, which does not understand the cost of
  asking a server to compute all possible live properties, issues a DAV:allprop
  PROPFIND request.
</t>

<section title="DAV:resource-id Property" anchor="PROPERTY_resource-id">
<iref item="DAV:resource-id property" primary="true"/>
<iref item="Properties" subitem="DAV:resource-id" primary="true"/>
<t>
  The DAV:resource-id property is a REQUIRED property that enables clients to
  determine whether two bindings are to the same resource.  The value of
  DAV:resource-id is a URI, and may use any registered URI scheme that
  guarantees the uniqueness of the value across all resources for all time
  (e.g. the opaquelocktoken: scheme defined in <xref target="RFC2518"/>).
</t>
<figure><artwork>
&lt;!ELEMENT resource-id (href)&gt;
</artwork></figure>
</section>

<section title="DAV:parent-set Property" anchor="PROPERTY_parent-set">
<iref item="DAV:parent-set property" primary="true"/>
<iref item="Properties" subitem="DAV:parent-set" primary="true"/>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="3.2_example" type="change" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
 I think it would be helpful to have an example of this
 property. I'd be happy to help develop such an example.
  </ed:item>
  <ed:resolution datetime="2004-11-30">
    Example added, including diagram.
  </ed:resolution>
</ed:issue>
<t>
  The DAV:parent-set property is an OPTIONAL property that enables clients to
  discover what collections contain a binding to this resource (i.e. what
  collections have that resource as an internal member).  It contains an of
  href/segment pair for each collection that has a binding to the resource.
  The href identifies the collection, and the segment identifies the binding
  name of that resource in that collection.
</t>
<t>
  A given collection MUST appear only once in the DAV:parent-set for any given
  binding, even if there are multiple URI mappings to that collection.<ed:replace ed:resolves="3.2_example" datetime="2004-11-30"><ed:del>  For
  example, if collection C1 is mapped to both /CollX and /CollY, and C1
  contains a binding named "x.gif" to a resource R1, then either
  [/CollX, x.gif] or [/CollY, x.gif] can appear in the DAV:parent-set of R1,
  but not both.  But if C1 also had a binding named "y.gif" to R1, then there
  would be two entries for C1 in the DAV:binding-set of R1 (i.e. <ed:replace ed:resolves="edit" datetime="2004-11-30"><ed:del>either </ed:del></ed:replace>both
  [/CollX, x.gif] and [/CollX, y.gif] or<ed:replace ed:resolves="edit" datetime="2004-11-30"><ed:ins>,</ed:ins></ed:replace> alternatively, both [/CollY, x.gif]
  and [/CollY, y.gif]).</ed:del></ed:replace>
</t>
<figure><artwork>
&lt;!ELEMENT parent-set (parent)*&gt;
&lt;!ELEMENT parent (href, segment)&gt;
&lt;!ELEMENT segment (#PCDATA)&gt;
&lt;!-- PCDATA value: segment, as defined in section 3.3 of
     <xref target="draft-fielding-rfc2396bis"/> --&gt;

</artwork></figure>

<ed:replace ed:resolves="3.2_example" datetime="2004-11-30"><ed:ins>
<section title="Example for DAV:parent-set property">
<t>
  For example, if collection C1 is mapped to both /CollX and /CollY, and C1
  contains a binding named "x.gif" to a resource R1, then either
  [/CollX, x.gif] or [/CollY, x.gif] can appear in the DAV:parent-set of R1,
  but not both.  But if C1 also had a binding named "y.gif" to R1, then there
  would be two entries for C1 in the DAV:binding-set of R1 (i.e. <ed:replace ed:resolves="edit" datetime="2004-11-30"><ed:del>either </ed:del></ed:replace>both
  [/CollX, x.gif] and [/CollX, y.gif] or<ed:replace ed:resolves="edit" datetime="2004-11-30"><ed:ins>,</ed:ins></ed:replace> alternatively, both [/CollY, x.gif]
  and [/CollY, y.gif]).
</t>
<figure><artwork>
+-------------------------+
| Root Collection         |
|  bindings:              |
|  CollX          CollY   |
+-------------------------+
    |            /          
    |           /
    |          /
+-----------------+  
| Collection C1   |  
| bindings:       |
| x.gif    y.gif  |  
+-----------------+  
     |      |               
     |      |               
     |      |              
 +--------------+ 
 | Resource  R1 |
 +--------------+
</artwork>
</figure>
<t>
  In this case, one possible value for DAV:parent-set property on
  "/CollX/x.gif" would be: 
</t>
<figure><artwork>
  &lt;parent-set xmlns="DAV:">
    &lt;parent>
      &lt;href>/CollX&lt;/href>
      &lt;segment>x.gif&lt;/segment>
    &lt;/parent>
    &lt;parent>
      &lt;href>/CollX&lt;/href>
      &lt;segment>y.gif&lt;/segment>
    &lt;/parent>
  &lt;/parent-set>
</artwork></figure>
</section>
</ed:ins></ed:replace>

</section>
</section>

<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="atomicity" type="change" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-29">
    The intent of the BIND method is for its behavior to be atomic.
    However, this is never actually stated explicitly in the specification.
    Seems like it should be.
  </ed:item>
  <ed:resolution datetime="2004-11-30">
    Agreed. Steal text from RFC3253 (applies to all method definitions).
  </ed:resolution>
</ed:issue>

<section title="BIND Method" anchor="METHOD_BIND">
<iref item="BIND method" primary="true"/>
<iref item="Methods" subitem="BIND" primary="true"/>
<t>
  The BIND method modifies the collection identified by the Request-URI, by
  adding a new binding from the segment specified in the BIND body to the
  resource identified in the BIND body.
</t>
<t>
  If a server cannot guarantee the integrity of the binding, the BIND request
  MUST fail.  Note that it is especially difficult to maintain the integrity of
  cross-server bindings.  Unless the server where the resource resides knows
  about all bindings on all servers to that resource, it may unwittingly
  destroy the resource or make it inaccessible without notifying another
  server that manages a binding to the resource.  For example, if server A
  permits creation of a binding to a resource on server B, server A must
  notify server B about its binding and must have an agreement with B that B
  will not destroy the resource while A's binding exists.  Otherwise server B
  may receive a DELETE request that it thinks removes the last binding to the
  resource and destroy the resource while A's binding still exists.
  The precondition DAV:cross-server-binding is defined below
  for cases where servers fail cross-server BIND requests because they cannot
  guarantee the integrity of cross-server bindings.
</t>
<t>
  By default, if there already is a binding for the specified segment in the
  collection, the new binding replaces the existing binding.  This default
  binding replacement behavior can be overridden using the Overwrite header
  defined in Section 9.6 of <xref target="RFC2518"/>.
</t>
<t>
  <ed:replace ed:resolves="atomicity" datetime="2004-11-30"><ed:ins>
   If a BIND request fails, the server state preceding the request MUST be restored.
   </ed:ins></ed:replace>  This method is unsafe and idempotent (see <xref target="RFC2616"/>, section 9.1).
</t>

<t>
  Marshalling:
  <list>
    <t>The request MAY include an Overwrite header.</t>
    <t>The request body MUST be a DAV:bind XML element.
      <figure><artwork>
   &lt;!ELEMENT bind (segment, href)&gt;
      </artwork></figure>
    </t>
    <t> 
      If the request succeeds, the server MUST return 201 (Created) when a new
      binding was created and 200 (OK) when an existing binding was replaced.
    </t>
    <t>
      If a response body for a successful request is included, it MUST be a
      DAV:bind-response XML element.  Note that this document does not define
      any elements for the BIND response body, but the DAV:bind-response
      element is defined to ensure interoperability between future extensions
      that do define elements for the BIND response body.
      <figure><artwork>
   &lt;!ELEMENT bind-response ANY&gt;
      </artwork></figure>
    </t>
  </list>
</t>

<t>
  Preconditions:
  <list>
    <t>
      <iref item="Condition Names" subitem="DAV:bind-into-collection (pre)" primary="true"/>
      <iref item="DAV:bind-into-collection precondition" primary="true"/>
      (DAV:bind-into-collection): The Request-URI MUST identify a collection.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:bind-source-exists (pre)" primary="true"/>
      <iref item="DAV:bind-source-exists precondition" primary="true"/>
      (DAV:bind-source-exists): The DAV:href element MUST identify a resource.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:binding-allowed (pre)" primary="true"/>
      <iref item="DAV:binding-allowed precondition" primary="true"/>
      (DAV:binding-allowed): The resource identified by the DAV:href supports
      multiple bindings to it.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:cross-server-binding (pre)" primary="true"/>
      <iref item="DAV:cross-server-binding precondition" primary="true"/>
      (DAV:cross-server-binding): If the resource identified by the DAV:href
      element in the request body is on another server from the collection
      identified by the Request-URI, the server MUST support cross-server
      bindings.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:name-allowed (pre)" primary="true"/>
      <iref item="DAV:name-allowed precondition" primary="true"/>
      (DAV:name-allowed): The name specified by the DAV:segment is available
      for use as a new binding name.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:can-overwrite (pre)" primary="true"/>
      <iref item="DAV:can-overwrite precondition" primary="true"/>
      (DAV:can-overwrite): If the collection already contains a binding with
      the specified path segment, and if an Overwrite header is included, the
      value of the Overwrite header MUST be "T".
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:cycle-allowed (pre)" primary="true"/>
      <iref item="DAV:cycle-allowed precondition" primary="true"/>
      (DAV:cycle-allowed): If the DAV:href element identifies a collection,
      and if the Request-URI identifies a collection that is a member of that
      collection, the server MUST support cycles in the URI namespace.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:locked-update-allowed (pre)" primary="true"/>
      <iref item="DAV:locked-update-allowed precondition" primary="true"/>
      (DAV:locked-update-allowed): If the collection identified by the
      Request-URI is write-locked, then the appropriate token MUST be specified
      in an If request header.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:locked-overwrite-allowed (pre)" primary="true"/>
      <iref item="DAV:locked-overwrite-allowed precondition" primary="true"/>
      (DAV:locked-overwrite-allowed): If the collection already contains a
      binding with the specified path segment, and if that binding is protected
      by a write-lock, then the appropriate token MUST be specified in an If
      request header.
    </t>
  </list>
</t>
<t>
  Postconditions:
  <list>
    <t>
      <iref item="Condition Names" subitem="DAV:new-binding (post)" primary="true"/>
      <iref item="DAV:new-binding postcondition" primary="true"/>
      (DAV:new-binding): The collection MUST have a binding that maps the
      segment specified in the DAV:segment element in the request body, to the
      resource identified by the DAV:href element in the request body.
    </t>
  </list>
</t>

<section title="Example: BIND">
<figure><preamble>
&gt;&gt; Request:
</preamble><artwork>
BIND /CollY HTTP/1.1
Host: www.example.com
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:bind xmlns:D="DAV:"&gt;
   &lt;D:segment&gt;bar.html&lt;/D:segment&gt;
   &lt;D:href&gt;http://www.example.com/CollX/foo.html&lt;/D:href&gt;
&lt;/D:bind&gt;
</artwork></figure>
<figure><preamble>
&gt;&gt; Response:
</preamble><artwork>
HTTP/1.1 201 Created
</artwork></figure>
<t>
  The server added a new binding to the collection,
  "http://www.example.com/CollY", associating "bar.html" with the resource
  identified by the URI "http://www.example.com/CollX/foo.html".  Clients can
  now use the URI "http://www.example.com/CollY/bar.html"<ed:replace ed:resolves="edit" datetime="2004-11-30"><ed:del>,</ed:del></ed:replace> to submit requests 
  to that resource.
</t>
</section>
</section>
  
<section title="UNBIND Method" anchor="METHOD_UNBIND">
<iref item="UNBIND method" primary="true"/>
<iref item="Methods" subitem="UNBIND" primary="true"/>
<t>
  The UNBIND method modifies the collection identified by the Request-URI, by
  removing the binding identified by the segment specified in the UNBIND body.
</t>
<t>
  Once a resource is unreachable by any URI mapping, the server MAY reclaim
  system resources associated with that resource.  If UNBIND removes a binding
  to a resource, but there remain URI mappings to that resource, the server
  MUST NOT reclaim system resources associated with the resource.
</t>
<t>
  <ed:replace ed:resolves="atomicity" datetime="2004-11-30"><ed:ins>
   If an UNBIND request fails, the server state preceding the request MUST be restored.
   </ed:ins></ed:replace>  This method is unsafe and idempotent (see <xref target="RFC2616"/>, section 9.1).
</t>

<t>
  Marshalling:
  <list>
    <t>The request body MUST be a DAV:unbind XML element.
      <figure><artwork>
   &lt;!ELEMENT unbind (segment)&gt;
      </artwork></figure></t>
 
    <t>If the request succeeds, the server MUST return 200 (OK) when the
    binding was successfully deleted.</t>
    <t>If a response body for a successful request is included, it MUST be a
    DAV:unbind-response XML element.  Note that this document does not define
    any elements for the UNBIND response body, but the DAV:unbind-response
    element is defined to ensure interoperability between future extensions
    that do define elements for the UNBIND response body.
    <figure><artwork>
   &lt;!ELEMENT unbind-response ANY&gt;
    </artwork></figure></t>
  </list>
</t>
<t>
  Preconditions:
  <list>
    <t>
      <iref item="Condition Names" subitem="DAV:unbind-from-collection (pre)" primary="true"/>
      <iref item="DAV:unbind-from-collection precondition" primary="true"/>
      (DAV:unbind-from-collection): The Request-URI MUST identify a collection.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:unbind-source-exists (pre)" primary="true"/>
      <iref item="DAV:unbind-source-exists precondition" primary="true"/>
      (DAV:unbind-source-exists): The DAV:segment element MUST identify a
      binding in the collection identified by the Request-URI.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:locked-update-allowed (pre)" primary="true"/>
      <iref item="DAV:locked-update-allowed precondition" primary="true"/>
      (DAV:locked-update-allowed): If the collection identified by the
      Request-URI is write-locked, then the appropriate token MUST be specified
      in the request.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:protected-url-deletion-allowed (pre)" primary="true"/>
      <iref item="DAV:protected-url-deletion-allowed precondition" primary="true"/>
      (DAV:protected-url-deletion-allowed): If the binding identified by the
      segment is protected by a write-lock, then the appropriate token MUST be
      specified in the request.
    </t>
  </list>
</t>
<t>
  Postconditions:
  <list>
    <t>
      <iref item="Condition Names" subitem="DAV:binding-deleted (post)" primary="true"/>
      <iref item="DAV:binding-deleted postcondition" primary="true"/>
      (DAV:binding-deleted): The collection MUST NOT have a binding for the
      segment specified in the DAV:segment element in the request body.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:lock-deleted (post)" primary="true"/>
      <iref item="DAV:lock-deleted postcondition" primary="true"/>
      (DAV:lock-deleted): If the internal member URI of the binding specified
      by the Request-URI and the DAV:segment element in the 
      request body was protected by a write-lock at the time of the request, 
      that write-lock must have been deleted by the request.
    </t>
  </list>
</t>

<section title="Example: UNBIND">
<figure><preamble>
&gt;&gt; Request:
</preamble><artwork>
UNBIND /CollX HTTP/1.1
Host: www.example.com
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:unbind xmlns:D="DAV:"&gt;
   &lt;D:segment&gt;foo.html&lt;/D:segment&gt;
&lt;/D:unbind&gt;
</artwork></figure>
<figure><preamble>
&gt;&gt; Response:
</preamble><artwork>
HTTP/1.1 200 OK
</artwork></figure>
<t>
  The server removed the binding named "foo.html" from the collection,
  "http://www.example.com/CollX".  A request to the resource named
  "http://www.example.com/CollX/foo.html" will return a 404 (Not Found) response.
</t>
</section>
</section>
  
<section title="REBIND Method" anchor="METHOD_REBIND">
<iref item="REBIND method" primary="true"/>
<iref item="Methods" subitem="REBIND" primary="true"/>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="6_rebind_intro" type="edit" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0044.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-11-12">
    I'm reading through the BIND specification, and the description of the
    REBIND method's operands is a bit unclear to me. I'm assuming the intent is
    similar to BIND and UNBIND, each of which clearly state in the first
    sentence what role the Request-URI, segment, and href fields play. In my
    reading I just jumped right into the spec. at this method (typical reference
    reading pattern), and hence I didn't initially see the similarity with the
    BIND and UNBIND method operands.
  </ed:item>
  <ed:resolution datetime="2004-12-02">
    Agreed and fixed (fixed again after it was broken in -08).
  </ed:resolution>
</ed:issue>
<ed:issue xmlns='http://www.w3.org/1999/xhtml' name="6_rebind_premissions" type="edit" status="closed" href="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0218.html">
  <ed:item entered-by="ejw@cs.ucsc.edu" date="2004-12-03">
I agree with Lisa that the access control implications of REBIND should be made
explicit. 
<br/>
My suggestion is to add the following language to Section 6.
<br/>
Change:
<br/>
"It is effectively an atomic form of a MOVE request."
<br/>
To:
<br/>
"It is effectively an atomic form of a MOVE request, and MUST be treated as a
MOVE for the purpose of determining access permissions (see RFC 3744, Appendix B)."  </ed:item>
  <ed:resolution datetime="2004-12-03">
    Make that statement, but avoid the unnecessary normative reference to RFC3744.
  </ed:resolution>
</ed:issue>
<t>
  The REBIND method removes a binding to a resource from <ed:replace ed:resolves="6_rebind_intro" datetime="2004-12-02"><ed:del>the collection 
  identified by the Request-URI</ed:del><ed:ins>a collection</ed:ins></ed:replace>, and adds a binding to that resource into <ed:replace ed:resolves="6_rebind_intro" datetime="2004-12-02"><ed:del>another collection</ed:del>
  <ed:ins>the collection identified by the Request-URI</ed:ins></ed:replace>.  The
  request body specifies the binding to be <ed:replace ed:resolves="6_rebind_intro" datetime="2004-12-02"><ed:del>removed</ed:del><ed:ins>added</ed:ins></ed:replace> (segment) and the <ed:replace ed:resolves="6_rebind_intro" datetime="2004-12-02"><ed:del>new binding to be created</ed:del>
  <ed:ins>old binding to be removed</ed:ins></ed:replace>
  (href).  It is effectively an atomic form of a MOVE request<ed:replace ed:resolves="6_rebind_premissions" datetime="2004-12-03"><ed:ins>,
and MUST be treated the same way as MOVE for the purpose of determining access permissions</ed:ins></ed:replace>.
</t>
<t>
  <ed:replace ed:resolves="atomicity" datetime="2004-11-30"><ed:ins>
   If a REBIND request fails, the server state preceding the request MUST be restored.
   </ed:ins></ed:replace>  This method is unsafe and idempotent (see <xref target="RFC2616"/>, section 9.1).
</t>

<t>
  Marshalling:
  <list>
    <t>The request MAY include an Overwrite header.</t>
    <t>The request body MUST be a DAV:rebind XML element.
      <figure><artwork>
   &lt;!ELEMENT rebind (segment, href)&gt;
      </artwork></figure></t>
    <t>If the request succeeds, the server MUST return 201 (Created) when a
    new binding was created and 200 (OK) when an existing binding was replaced.</t>
    <t>If a response body for a successful request is included, it MUST be a
      DAV:rebind-response XML element.  Note that this document does not define
      any elements for the REBIND response body, but the DAV:rebind-response
      element is defined to ensure interoperability between future extensions
      that do define elements for the REBIND response body.
      <figure><artwork>
   &lt;!ELEMENT rebind-response ANY&gt;
      </artwork></figure></t>
  </list> 
</t>
<t>
  Preconditions:
  <list>
    <t>
      <iref item="Condition Names" subitem="DAV:rebind-from-collection (pre)" primary="true"/>
      <iref item="DAV:rebind-from-collection precondition" primary="true"/>
      (DAV:rebind-into-collection): The Request-URI MUST identify a
      collection.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:rebind-source-exists (pre)" primary="true"/>
      <iref item="DAV:rebind-source-exists precondition" primary="true"/>
      (DAV:rebind-source-exists): The DAV:href element MUST identify a
      resource.
    </t>

    <t>
      <iref item="Condition Names" subitem="DAV:cross-server-binding (pre)" primary="true"/>
      <iref item="DAV:cross-server-binding precondition" primary="true"/>
      (DAV:cross-server-binding): If the resource identified by the DAV:href
      element in the request body is on another server from the collection
      identified by the Request-URI, the server MUST support cross-server bindings.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:name-allowed (pre)" primary="true"/>
      <iref item="DAV:name-allowed precondition" primary="true"/>
      (DAV:name-allowed): The name specified by the DAV:segment is available
      for use as a new binding name.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:can-overwrite (pre)" primary="true"/>
      <iref item="DAV:can-overwrite precondition" primary="true"/>
      (DAV:can-overwrite): If the collection already contains a binding with
      the specified path segment, and if an Overwrite header is included, the
      value of the Overwrite header MUST be "T".
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:cycle-allowed (pre)" primary="true"/>
      <iref item="DAV:cycle-allowed precondition" primary="true"/>
      (DAV:cycle-allowed): If the DAV:href element identifies a collection,
      and if the Request-URI identifies a collection that is a member of that
      collection, the server MUST support cycles in the URI namespace.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:locked-update-allowed (pre)" primary="true"/>
      <iref item="DAV:locked-update-allowed precondition" primary="true"/>
      (DAV:locked-update-allowed): If the collection identified by the
      Request-URI is write-locked, then the appropriate token MUST be specified
      in the request.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:protected-url-modification-allowed (pre)" primary="true"/>
      <iref item="DAV:protected-url-modification-allowed precondition" primary="true"/>
      (DAV:protected-url-modification-allowed): If the collection identified
      by the Request-URI already contains a binding with the specified path
      segment, and if that binding is protected by a write-lock, then the
      appropriate token MUST be specified in the request.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:locked-source-collection-update-allowed (pre)" primary="true"/>
      <iref item="DAV:locked-source-collection-update-allowed precondition" primary="true"/>
      (DAV:locked-source-collection-update-allowed): If the collection
      identified by the parent collection prefix of the DAV:href  URI is
      write-locked, then the appropriate token MUST be specified in the request.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:protected-source-url-deletion-allowed (pre)" primary="true"/>
      <iref item="DAV:protected-source-url-deletion-allowed precondition" primary="true"/>
      (DAV:protected-source-url-deletion-allowed): If the DAV:href URI is
      protected by a write lock, then the appropriate token MUST be specified
      in the request.
    </t>
  </list>
</t>
<t>
  Postconditions:
  <list>
    <t>
      <iref item="Condition Names" subitem="DAV:new-binding (post)" primary="true"/>
      <iref item="DAV:new-binding postcondition" primary="true"/>
      (DAV:new-binding): The collection MUST have a binding that maps the
      segment specified in the DAV:segment element in the request body, to the
      resource that was identified by the DAV:href element in the request body.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:binding-deleted (post)" primary="true"/>
      <iref item="DAV:binding-deleted postcondition" primary="true"/>
      (DAV:binding-deleted): The URL specified in the DAV:href element in the
      request body MUST NOT be mapped to a resource.
    </t>
    <t>
      <iref item="Condition Names" subitem="DAV:lock-deleted (post)" primary="true"/>
      <iref item="DAV:lock-deleted postcondition" primary="true"/>
      (DAV:lock-deleted): If the URL specified in the DAV:href element in the 
      request body was protected by a write-lock at the time of the request, 
      that write-lock must have been deleted by the request.
    </t>

  </list>
</t>

<section title="Example: REBIND">
<figure><preamble>
&gt;&gt; Request:
</preamble><artwork>
REBIND /CollX HTTP/1.1
Host: www.example.com
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:rebind xmlns:D="DAV:"&gt;
   &lt;D:segment&gt;foo.html&lt;/D:segment&gt;
   &lt;D:href&gt;http://www.example.com/CollY/bar.html&lt;/D:href&gt;
&lt;/D:rebind&gt;
</artwork></figure>
<figure><preamble>
&gt;&gt; Response:
</preamble><artwork>
HTTP/1.1 200 OK
</artwork></figure>
<t>
  The server added a new binding to the collection, "http://www.example.com/CollX",
  associating "foo.html" with the resource identified by the URI
  "http://www.example.com/CollY/bar.html", and removes the binding named
  "bar.html" from the collection identified by the URI "http://www.example.com/CollY".  Clients
  can now use the URI "http://www.example.com/CollX/foo.html" to submit
  requests to that resource, and requests on the URI
  "http://www.example.com/CollY/bar.html" will fail with a 404 (Not Found) response.
</t>

</section>
</section>

<section title="Additional Status Codes" anchor="additional.status.codes">

<section title="208 Already Reported" anchor="status.208.already.reported">
<iref item="Status Codes" subitem="208 Already Reported" primary="true"/>
<iref item="208 Already Reported (status code)" primary="true"/>
<t>
  The 208 (Already Reported) status code can be used inside a DAV:propstat
  response element to avoid enumerating the internal members of multiple
  bindings to the same collection repeatedly.  For each binding to a 
  collection inside the request's scope, only one will
  be reported with a 200 status, while subsequent DAV:response elements for all
  other bindings will use the 208 status, and no DAV:response elements for
  their descendants are included.
</t>
<t>
  Note that the 208 status will only occur for "Depth: infinity" requests,
  and that it is of particular importance when the multiple collection
  bindings cause a bind loop as discussed in <xref target="uri.mappings.created.by.a.new.binding"/>.
</t>
<t>
  A client can request the DAV:resourceid property in a PROPFIND request to
  guarantee that they can accurately reconstruct the binding structure of a
  collection with multiple bindings to a single resource.
</t>
<t>
  For backward compatibility with clients not aware of the 208 status code appearing
  in multistatus response bodies, it SHOULD NOT be used unless the client
  has signalled support for this specification using the "DAV" request
  header (see <xref target="dav.request.header"/>).  Instead, a 506 status should be returned 
  when a binding loop is discovered.
  This allows the server to return the 506 as the top level return status, 
  if it discovers it before it started the response, or in the middle of a 
  multistatus, if it discovers it in the middle of streaming out a 
  multistatus response. 
</t>



<section title="Example: PROPFIND by bind-aware client">
<t>
  For example, consider a PROPFIND request on /Coll (bound to collection C),
  where the members of  /Coll are /Coll/Foo (bound to resource R) and /Coll/Bar
  (bound to collection C).
</t>
<figure><preamble>
&gt;&gt; Request:
</preamble>
<artwork>
PROPFIND /Coll/ HTTP/1.1
Host: www.example.com
Depth: infinity
DAV: bind
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propfind xmlns:D="DAV:"&gt;
  &lt;D:prop&gt;
   &lt;D:displayname/&gt;
   &lt;D:resource-id/&gt;
  &lt;/D:prop&gt;
&lt;/D:propfind&gt;
</artwork>
</figure> 
<figure><preamble>
&gt;&gt; Response:
</preamble>
<artwork>
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://www.example.com/Coll/&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;
        &lt;D:displayname&gt;Loop Demo&lt;/D:displayname&gt;
        &lt;D:resource-id&gt;
          &lt;D:href
&gt;opaquelocktoken:f81d4fae-7dec-11d0-a765-00a0c91e6bf8&lt;/D:href&gt;
        &lt;/D:resource-id&gt;
      &lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://www.example.com/Coll/Foo&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;
        &lt;D:displayname&gt;Bird Inventory&lt;/D:displayname&gt;
        &lt;D:resource-id&gt;
          &lt;D:href
&gt;opaquelocktoken:f81d4fae-7dec-11d0-a765-00a0c91e6bf9&lt;/D:href&gt;
        &lt;/D:resource-id&gt;
      &lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
  &lt;D:response&gt;
    &lt;D:href&gt;http://www.example.com/Coll/Bar&lt;/D:href&gt;
    &lt;D:propstat&gt;
      &lt;D:prop&gt;
        &lt;D:displayname&gt;Loop Demo&lt;/D:displayname&gt;
        &lt;D:resource-id&gt;
          &lt;D:href
&gt;opaquelocktoken:f81d4fae-7dec-11d0-a765-00a0c91e6bf8&lt;/D:href&gt;
        &lt;/D:resource-id&gt;
      &lt;/D:prop&gt;
      &lt;D:status&gt;HTTP/1.1 208 Already Reported&lt;/D:status&gt;
    &lt;/D:propstat&gt;
  &lt;/D:response&gt;
&lt;/D:multistatus&gt;
</artwork>

</figure> 
</section>



<section title="Example: PROPFIND by non-bind-aware client">
<t>
  In this example, the client isn't aware of the 208 status code introduced
  by this specification.  As the "Depth: infinity" PROPFIND request would cause
  a loop condition, the whole request is rejected with a 506 status. 
</t>
<figure><preamble>
&gt;&gt; Request:
</preamble>
<artwork>
PROPFIND /Coll/ HTTP/1.1
Host: www.example.com
Depth: infinity
Content-Type: text/xml; charset="utf-8"
Content-Length: xxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:propfind xmlns:D="DAV:"&gt;
   &lt;D:prop&gt; &lt;D:displayname/&gt; &lt;/D:prop&gt;
&lt;/D:propfind&gt;
</artwork>
</figure> 
<figure><preamble>
&gt;&gt; Response:
</preamble><artwork>
HTTP/1.1 506 Loop Detected
</artwork></figure> 
</section>


</section>

<section title="506 Loop Detected" anchor="status.506.loop.detected">
<iref item="Status Codes" subitem="506 Loop Detected" primary="true"/>
<iref item="506 Loop Detected (status code)" primary="true"/>
<t>
  The 506 (Loop Detected) status code indicates that the server terminated an
  operation because it encountered an infinite loop while processing a request
  with "Depth: infinity".   This status indicates that the entire operation
  failed.  
</t>
</section>
</section>


<section title="Capability discovery">
  
<section title="OPTIONS method">
<t>
  <iref item="DAV header" subitem="compliance class 'bind'" primary="true"/>
  If the server supports bindings, it MUST return the compliance class name "bind"
  as a field in the "DAV" response header (see <xref target="RFC2518"/>, section
  9.1) from an OPTIONS request on any resource implemented by that
  server.  A value of "bind" in the "DAV" header MUST indicate that the server
  supports all MUST level requirements and REQUIRED features specified in this
  document.
</t>  
</section>

<section title="'DAV' request header" anchor="dav.request.header">
<section title="Generic syntax">
<t>
  This specification introduces the 'DAV' request header that allows clients
  to signal compliance to specific WebDAV features.  It has the same syntax
  as the response header defined in <xref target="RFC2518"/>, section
  9.1, but MAY be used with any method.
</t>
<t>
  Note that clients MUST NOT submit a specific compliance class name in the
  request header unless the specification defining this compliance class
  specifically defines its semantics for clients.
</t>
<t>
  Note that if a server chooses to vary the result of a request based on
  values in the "DAV" header, the response either MUST NOT be cacheable or
  the server MUST mark the response accordingly using the "Vary" header
  (see <xref target="RFC2616"/>, section 14.44).
</t>
</section>
<section title="Client compliance class 'bind'">
<t>
  Clients SHOULD signal support for all MUST level requirements and REQUIRED
  features by submitting a "DAV" request header containing the compliance class
  name "bind".  In particular, the client MUST understand the 208 status
  code defined in <xref target="status.208.already.reported"/>.
</t>
</section>
</section>
  
</section>


<section title="Security Considerations" anchor="security.considerations">
<t>
  This section is provided to make WebDAV implementors aware of the security
  implications of this protocol.
</t>
<t>
  All of the security considerations of HTTP/1.1 and the WebDAV Distributed
  Authoring Protocol specification also apply to this protocol specification.
  In addition, bindings introduce several new security concerns and increase
  the risk of some existing threats.  These issues are detailed below.
</t>

<section title="Privacy Concerns" anchor="privacy.concerns">
<t>
  In a context where cross-server bindings are supported, creating bindings on
  a trusted server may make it possible for a hostile agent to induce users to
  send private information to a target on a different server.
</t>
</section>

<section title="Bind Loops" anchor="bind.loops.privacy.concerns">
<t>
  Although bind loops were already possible in HTTP 1.1, the introduction
  of the BIND method creates a new avenue for clients to create loops
  accidentally or maliciously.  If the binding and its target are on the same
  server, the server may be able to detect BIND requests that would create
  loops.  Servers are required to detect loops that are caused by bindings to
  collections during the processing of any requests with "Depth: infinity".
</t>
</section>

<section title="Bindings, and Denial of Service" anchor="bindings.and.denial.of.service">
<t>
  Denial of service attacks were already possible by posting URIs that were
  intended for limited use at heavily used Web sites.  The introduction of
  BIND creates a new avenue for similar denial of service attacks.  If
  cross-server bindings are supported, clients can now create bindings at 
  heavily used sites to target locations that were not designed for heavy usage.
</t>
</section>

<section title="Private Locations May Be Revealed" anchor="private.locations.may.be.revealed">
<t>
  If the DAV:parent-set property is maintained on a resource, the owners of
  the bindings risk revealing private locations.  The directory structures
  where bindings are located are available to anyone who has access to the
  DAV:parent-set property on the resource.  Moving a binding may reveal its
  new location to anyone with access to DAV:parent-set on its resource.
</t>
</section>

<section title="DAV:parent-set and Denial of Service" anchor="parent-set.and.denial.of.service">
<t>
  If the server maintains the DAV:parent-set property in response to bindings
  created in other administrative domains, it is exposed to hostile attempts to
  make it devote resources to adding bindings to the list.
</t>
</section>
</section>

<section title="Internationalization Considerations" anchor="internationalization.considerations">
<t>
  All internationalization considerations mentioned in <xref target="RFC2518"/> also apply to
  this document.
</t>
</section>

<section title="IANA Considerations" anchor="iana.considerations">
<t>
  All IANA considerations mentioned in <xref target="RFC2518"/> also apply to this document.
</t>
</section>

<section title="Acknowledgements" anchor="acknowledgments">
<t>
  This document is the collaborative product of the authors and Tyson Chihaya,
  Jim Davis, Chuck Fay and Judith Slein.  This draft has benefited from thoughtful
  discussion by Jim Amsden, Peter Carlson, Steve Carter, Ken Coar, Ellis Cohen,
  Dan Connolly, Bruce Cragun, Spencer Dawkins, Mark Day, Rajiv Dulepet, David
  Durand, Lisa Dusseault, Stefan Eissing, Roy Fielding, Yaron Goland, Joe Hildebrand, Fred Hitt, Alex Hopmann, James Hunt,
  Marcus Jager, Chris Kaler, Manoj Kasichainula, Rohit Khare, Brian Korver, Daniel LaLiberte, 
  Steve Martin, Larry Masinter, Jeff McAffer, Surendra Koduru Reddy, Max Rible,
  Sam Ruby, Bradley Sergeant, Nick Shelness, John Stracke, John Tigue, John
  Turner, Kevin Wiggen, and other members of the WebDAV working group.
</t>
</section>

  </middle>

  <back>
  
  
<references title="Normative References">

<reference anchor="RFC2119">
  <front>
    <title abbrev="RFC Key Words">Key words for use in RFCs to Indicate Requirement Levels</title>
    <author initials="S." surname="Bradner" fullname="Scott Bradner">
    <organization>Harvard University</organization>
    <address>
      <email>sob@harvard.edu</email>
    </address></author>
    <date month="March" year="1997"/>
  </front>
  <seriesInfo name="BCP" value="14"/>
  <seriesInfo name="RFC" value="2119"/>
</reference>


<reference anchor="draft-fielding-rfc2396bis">
  <front>
    <title abbrev="URI Generic Syntax">Uniform Resource Identifier (URI): Generic Syntax</title>
    <author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
      <organization abbrev="W3C/MIT">World Wide Web Consortium</organization>
      <address>
        <email>timbl@w3.org</email>
      </address>
    </author>
    <author initials="R." surname="Fielding" fullname="Roy T. Fielding">
      <organization abbrev="Day Software">Day Software</organization>
      <address>
        <email>fielding@gbiv.com</email>
      </address>
    </author>
    <author initials="L." surname="Masinter" fullname="Larry Masinter">
      <organization abbrev="Adobe">Adobe Systems Incorporated</organization>
      <address>
        <email>LMM@acm.org</email>
      </address>
    </author>
    <date month="September" year="2004"/>
  </front>
  <seriesInfo name="ID" value="draft-fielding-rfc2396bis-07"/>
</reference>


<reference anchor="RFC2518">
  <front>
    <title>HTTP Extensions for Distributed Authoring -- WEBDAV</title>
    <author initials="Y." surname="Goland" fullname="Y. Goland">
      <organization>Microsoft Corporation</organization>
      <address><email>yarong@microsoft.com</email></address>
    </author>
    <author initials="E." surname="Whitehead" fullname="E. J. Whitehead, Jr.">
      <organization abbrev="UC Irvine">Dept. Of Information and Computer Science, University of California, Irvine</organization>
    	<address><email>ejw@ics.uci.edu</email></address>
    </author>
    <author initials="A." surname="Faizi" fullname="A. Faizi">
      <organization abbrev="Netscape">Netscape</organization>
      <address><email>asad@netscape.com</email></address>
    </author>
    <author initials="S.R." surname="Carter" fullname="S. R. Carter">
      <organization abbrev="Novell">Novell</organization>
      <address><email>srcarter@novell.com</email></address>
    </author>
    <author initials="D." surname="Jensen" fullname="D. Jensen">
      <organization abbrev="Novell">Novell</organization>
      <address><email>dcjensen@novell.com</email></address>
    </author>
    <date month="February" year="1999"/>
  </front>
  <seriesInfo name="RFC" value="2518"/>
</reference>

<reference anchor="RFC2616">
  <front>
    <title>Hypertext Transfer Protocol -- HTTP/1.1</title>
    <author initials="R." surname="Fielding" fullname="R. Fielding">
      <organization>University of California, Irvine</organization>
      <address><email>fielding@ics.uci.edu</email></address>
    </author>
    <author initials="J." surname="Gettys" fullname="J. Gettys">
      <organization>W3C</organization>
      <address><email>jg@w3.org</email></address>
    </author>
    <author initials="J." surname="Mogul" fullname="J. Mogul">
      <organization>Compaq Computer Corporation</organization>
      <address><email>mogul@wrl.dec.com</email></address>
    </author>
    <author initials="H." surname="Frystyk" fullname="H. Frystyk">
      <organization>MIT Laboratory for Computer Science</organization>
      <address><email>frystyk@w3.org</email></address>
    </author>
    <author initials="L." surname="Masinter" fullname="L. Masinter">
      <organization>Xerox Corporation</organization>
      <address><email>masinter@parc.xerox.com</email></address>
    </author>
    <author initials="P." surname="Leach" fullname="P. Leach">
      <organization>Microsoft Corporation</organization>
      <address><email>paulle@microsoft.com</email></address>
    </author>
    <author initials="T." surname="Berners-Lee" fullname="T. Berners-Lee">
      <organization>W3C</organization>
      <address><email>timbl@w3.org</email></address>
    </author>
    <date month="June" year="1999"/>
  </front>
  <seriesInfo name="RFC" value="2616"/>
</reference>

<reference anchor="XML" target="http://www.w3.org/TR/2004/REC-xml-20040204">
  <front>
    <title>Extensible Markup Language (XML) 1.0 (Third Edition)</title>
    <author initials="T." surname="Bray" fullname="Tim Bray">
      <organization>Textuality and Netscape</organization>
      <address>
        <email>tbray@textuality.com</email>
      </address>
    </author>
    <author initials="J." surname="Paoli" fullname="Jean Paoli">
      <organization>Microsoft</organization>
      <address>
        <email>jeanpa@microsoft.com</email>
      </address>
    </author>
    <author initials="C.M." surname="Sperberg-McQueen" fullname="C. M. Sperberg-McQueen">
      <organization>University of Illinois at Chicago and Text Encoding Initiative</organization>
      <address>
        <email>cmsmcq@uic.edu</email>
      </address>
    </author>
    <author initials="E." surname="Maler" fullname="Eve Maler">
      <organization>Sun Microsystems</organization>
      <address>
        <email>eve.maler@east.sun.com</email>
      </address>
    </author>
    <author initials="F." surname="Yergeau" fullname="Francois Yergeau">
      <organization/>
      <address>
        <email>francois@yergeau.com</email>
      </address>
    </author>
    <date day="4" month="February" year="2004"/>
  </front>
  <seriesInfo name="W3C" value="REC-xml-20040204"/>
</reference>
</references>

<references title="Informative References">
<ed:replace ed:resolves="2.6_resource-id_vs_versions" datetime="2004-12-01"><ed:ins>
<reference anchor="RFC3253">
  <front>
    <title>Versioning Extensions to WebDAV (Web Distributed Authoring and Versioning)</title>
    <author initials="G." surname="Clemm" fullname="G. Clemm">
      <organization>Rational Software</organization>
      <address><email>geoffrey.clemm@rational.com</email></address>
    </author>
    <author initials="J." surname="Amsden" fullname="J. Amsden">
      <organization>IBM</organization>
      <address><email>jamsden@us.ibm.com</email></address>
    </author>
    <author initials="T." surname="Ellison" fullname="T. Ellison">
      <organization>IBM</organization>
      <address><email>tim_ellison@uk.ibm.com</email></address>
    </author>
    <author initials="C." surname="Kaler" fullname="C. Kaler">
      <organization>Microsoft</organization>
      <address><email>ckaler@microsoft.com</email></address>
    </author>
    <author initials="J." surname="Whitehead" fullname="J. Whitehead">
      <organization>UC Santa Cruz, Dept. of Computer Science</organization>
      <address><email>ejw@cse.ucsc.edu</email></address>
    </author>
    <date month="March" year="2002"/>
    </front>
  <seriesInfo name="RFC" value="3253"/>
</reference>
</ed:ins></ed:replace>

</references>


<section title="Change Log (to be removed by RFC Editor before publication)">

<section title="Since draft-ietf-webdav-bind-02">
  <t>
    Add and resolve issues "2.3_COPY_SHARED_BINDINGS" and "2.3_MULTIPLE_COPY".
    Add issue "5.1_LOOP_STATUS" and proposed resolution, but keep it open.
    Add issues "ED_references" and "4_507_status".  Started work on index.
    Rename document to "Binding Extensions to Web Distributed Authoring and
    Versioning (WebDAV)".  Rename "References" to "Normative References".
    Close issue "ED_references".  Close issue "4_507_status".
  </t>
</section>

<section title="Since draft-ietf-webdav-bind-03">
  <t>
    Add and close issues "9.2_redirect_loops", "ED_authors" and "ED_updates".
    Add section about capability
    discovery (DAV header).  Close issues "5.1_LOOP_STATUS".
    Add and resolve new issue "5.1_506_STATUS_STREAMING".
    Update XML spec reference.
    Add issue "locking" and resolve as invalid.
  </t>
</section>

<section title="Since draft-ietf-webdav-bind-04">
  <t>
    Add and close issues "6_precondition_binding_allowed" and
    "6_lock_behaviour".  Add mailing list and issues list pointers
    to front.
  </t>
</section>

<section title="Since draft-ietf-webdav-bind-05">
  <t>
    Editorial fixes.
    Add and resolve issues "1.3_error_negotiation", "2.5_language" and "7.1.1_add_resource_id".
    Add historical issue "4_LOCK_BEHAVIOR" and it's resolution for better tracking.
  </t>
</section>

<section title="Since draft-ietf-webdav-bind-06">
  <t>
    Rewrite Editorial Note. Open and resolve issues "2.6_identical",
    "specify_safeness_and_idempotence" and "ED_rfc2026_ref".
  </t>
</section>


<section title="Since draft-ietf-webdav-bind-07">
  <t>
    Add more index items (no change tracking).
    Add and resolve issues "2.3_copy_to_same", "bind_properties", "bind_vs_ACL",
    "6_rebind_intro" and "rfc2396bis" (actually an action item).
    Fix XML DTD fragment in section 3.3.  Make spelling of "Request-URI"
    consistent.
  </t>
</section>

<ed:replace ed:resolves="edit" datetime="2004-12-09"><ed:ins>
<section title="Since draft-ietf-webdav-bind-08">
  <t>
    Resolved editorial issues raised by Jim Whitehead in <eref target="http://lists.w3.org/Archives/Public/w3c-dist-auth/2004OctDec/0129.html"/>.
    Add and resolve issues "atomicity", "2_allow_destroy", "2.1_separate_loop_discussion", "2.1.1_bind_loops_vs_locks",
    "2.3_copy_depth_infinity", "2.3_copy_example", "2.3_copy_vs_loops", "2.6_resource-id_vs_versions",
    "3.2_example" and "6_rebind_premissions".
    Add issue "2.6_when_do_ids_change".
    Re-open and resolve "6_rebind_intro".
  </t>
</section>
</ed:ins></ed:replace>

</section>


  </back>
</rfc>