<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="../rfc2629.xslt"?><?rfc rfcedstyle="yes" ?><?rfc toc="yes"?><?rfc tocdepth="4"?><!-- default = 3 --><?rfc symrefs="yes"?><?rfc sortrefs="yes"?><?rfc compact="yes"?><?rfc subcompact="no"?><!--<?rfc strict="yes"?> --><!--<?rfc comments="yes"?> --><!--<?rfc inline="yes"?> --><rfc category="std" ipr="pre5378Trust200902" docName="draft-daboo-webdav-sync-04" obsoletes="" submissionType="IETF" xml:lang="en" updates="">
  <front>
    <title abbrev="WebDAV Sync">Collection Synchronization for WebDAV</title>
    <author initials="C." surname="Daboo" fullname="Cyrus Daboo">
    <organization abbrev="Apple, Inc.">Apple Inc.</organization>
    <address>
      <postal>
        <street>1 Infinite Loop</street>
        <city>Cupertino</city>
        <region>CA</region>
        <code>95014</code>
        <country>USA</country>
      </postal>
      <email>cyrus@daboo.name</email>
      <uri>http://www.apple.com/</uri>
    </address>
    </author>
    <author initials="A." surname="Quillaud" fullname="Arnaud Quillaud">
    <organization abbrev="Oracle">Oracle Corporation</organization>
    <address>
      <postal>
        <street>180, Avenue de l'Europe</street>
        <city>Saint Ismier cedex</city>
        <region/>
        <code>38334</code>
        <country>France</country>
      </postal>
      <email>arnaud.quillaud@oracle.com</email>
      <uri>http://www.oracle.com/</uri>
    </address>
    </author>
    <date year="2010" month="October" day="5"/>
    <area>
      Applications
    </area>
    <abstract>
      <t>
        This specification defines an extension to WebDAV that allows efficient synchronization of the contents of a WebDAV collection.
      </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>
    </note>
  </front>
  <middle>
    <section title="Introduction" toc="default">
      <t>
        WebDAV <xref target="RFC4918" format="default" pageno="false"/> defines the concept of 'collections' which are hierarchical groupings of WebDAV resources on an
        HTTP <xref target="RFC2616" format="default" pageno="false"/> server. Collections can be of arbitrary size and depth (i.e., collections within collections).
        WebDAV clients that cache resource content need a way to synchronize that data with the server (i.e., detect what has changed
        and update their cache). This can currently be done using a WebDAV PROPFIND request on a collection to list all members of a
        collection along with their DAV:getetag property values, which allows the client to determine which resources were changed, added
        or deleted. However, this does not scale well to large collections as the XML response to the PROPFIND request will grow with the
        collection size.
      </t>
      <t>
        This specification defines a new WebDAV report that results in the server returning to the client only information about those
        resources which have changed, are new or were deleted since a previous execution of the report on the collection.
      </t>
      <t>
        Additionally, a new property is added to collection resources that is used to convey a "synchronization token" that is guaranteed
        to change when resources within the collection have changed.
      </t>
    </section>
    <section title="Conventions Used in This Document" toc="default">
      <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" format="default" pageno="false"/>.
      </t>
      <t>
        This document uses XML DTD fragments (<xref target="W3C.REC-xml-20081126" format="default" pageno="false"/>, Section 3.2) as a purely notational convention.  WebDAV request and response bodies cannot be validated by a DTD due to the specific extensibility rules defined in Section 17 of [RFC4918] and due to the fact that all XML elements defined by this specification use the XML namespace name "DAV:".  In particular:
        <list style="numbers">
            <t>element names use the "DAV:" namespace,</t>
            <t>element ordering is irrelevant unless explicitly stated,</t>
            <t>extension elements (elements not already defined as valid child elements) may be added anywhere, except when explicitly stated otherwise,</t>
            <t>extension attributes (attributes not already defined as valid for this element) may be added anywhere, except when explicitly stated otherwise.</t>
        </list>
      </t>
      <t>
        When an XML element type in the "DAV:" namespace is referenced in this document outside of the context of an XML fragment, the string "DAV:" will be prefixed to the element type.
      </t>
      <t>
        This document inherits, and sometimes extends, DTD productions from Section 14 of <xref target="RFC4918" format="default" pageno="false"/>.
      </t>
    </section>
    <section title="WebDAV Synchronization" anchor="sync-collection" toc="default">
      <section title="Overview" toc="default">
        <t>
          One way to synchronize data between two entities is to use some form of synchronization token. The token defines
          the state of the data being synchronized at a particular point in time. It can then be used to determine what has
          changed since one point in time and another.
        </t>
        <t>
          This specification defines a new WebDAV report that is used to enable client-server collection synchronization based on such a token.
        </t>
        <t>
          In order to synchronize the contents of a collection between a server and client, the server provides the client with a synchronization
          token each time the synchronization report is executed. That token represents the state of the data being synchronized at that point in time.
          The client can then present that same token back to the server at some later time and the server will return only those items that are new,
          have changed or were deleted since that token was generated. The server also returns a new token representing the new state at the time the report was run.
        </t>
        <t>
          Typically, the first time a client connects to the server it will need to be informed of the entire state
          of the collection (i.e., a full list of all resources that are currently contained in the collection).
          That is done by the client sending an empty token value to the server. This indicates to the server that a full listing is required.
        </t>
        <t>
          As an alternative, the client might choose to do its first synchronization using some other mechanism on the collection (e.g. some other
          form of batch resource information retrieval such as PROPFIND, SEARCH <xref target="RFC5323" format="default" pageno="false"/>, or specialized REPORTs such as those defined in
          CalDAV <xref target="RFC4791" format="default" pageno="false"/> and CardDAV <xref target="I-D.ietf-vcarddav-carddav" format="default" pageno="false"/>) and ask for the DAV:sync-token property to be returned.
          This property (defined in <xref target="sync_property" format="default" pageno="false"/>) contains the same token that can
          be used later on to issue a DAV:sync-collection report.
        </t>
        <t>
          In some cases a server might only wish to maintain a limited amount of history about changes to a collection. In that situation
          it will return an error to the client when the client presents a token that is "out of date". At that point the client has to fall
          back to synchronizing the entire collection by re-running the report request using an empty token value.
        </t>
      </section>
      <section title="DAV:sync-collection Report" toc="default">
        <t>
          If the DAV:sync-collection report is implemented by a WebDAV server, then the server MUST list the report in the "DAV:supported-report-set"
          property on any collection supporting synchronization.
        </t>
        <t>
          To implement the behavior for this report a server needs to keep track of changes to any member resources in a collection (as defined in Section 3 of <xref target="RFC4918" format="default" pageno="false"/>).
          This includes noting the addition of new resources, changes to existing resources and removal of resources.
          The server will track each change and provide a synchronization "token" to the client that describes the state of the server
          at a specific point in time. This "token" is returned as part of the response to the "sync-collection" report. Clients include
          the last token they got from the server in the next "sync-collection" report that they execute and the server provides the changes
          from the previous state, represented by the token, to the current state, represented by the new token returned.
        </t>
        <t>
          The synchronization token itself is an "opaque" string - i.e., the actual string data has no specific meaning or syntax.
          For example, a simple implementation of such a token could be a numeric counter that counts each change as it occurs and relates that change
          to the specific object that changed.
        </t>
        <t>
          Marshalling:
          <list>
            <t>
              The request URI MUST identify a collection. The request body MUST be a DAV:sync-collection XML element (see
              <xref target="sync_collection_element" format="default" pageno="false"/>), which MUST contain one DAV:sync-token XML element, and one DAV:prop XML element, and MAY contain a DAV:limit XML element.
            </t>
            <t>
                The request MUST include a Depth header with a value of "1" or "infinity".
            </t>
            <t>
              The response body for a successful request MUST be a DAV:multistatus XML element, which MUST contain one DAV:sync-token
              element in addition to one DAV:response element for each resource that was created,
              has changed or been deleted since the last synchronization operation as specified by the DAV:sync-token provided in the request.
              A given resource MUST appear only once in the response.
            </t>
            <t>
              The content of each DAV:response element differs depending on how the resource was altered:
              <list>
                <t>
                  For resources that have changed (i.e., are new or have been modified) the DAV:response MUST contain at least one
                  DAV:propstat element and MUST NOT contain any DAV:status element.
                </t>
                <t>
                  For resources that have been removed, the DAV:response MUST contain one DAV:status with a value set to '404 Not Found'
                  and MUST NOT contain any DAV:propstat element.
                </t>
                <t>
                  For child collection resources that are unable to support the DAV:sync-collection report, the DAV:response MUST contain one DAV:status with a value set to '405 Method Not Allowed' and MUST NOT contain any DAV:propstat element.
                </t>
              </list>
            </t>
            <t>
                The conditions under which each type of change can occur is further described in <xref target="change-types" format="default" pageno="false"/>.
            </t>
          </list>
        </t>
        <t>
          Preconditions:
          <list>
            <t>
              (DAV:valid-sync-token): The DAV:sync-token element value MUST map to a valid token previously returned by the server. A token
              may become invalid as the result of being "out of date" (out of the range of change history maintained by the server), or for
              other reasons (e.g. collection deleted, then recreated, access control changes, etc...).
            </t>
          </list>
        </t>
        <t>
          Postconditions:
          <list>
            <t>
				(DAV:number-of-matches-within-limits): The number of changes reported in the response must fall within the client specified limit. This condition might be triggered if a client requests a limit on the number of responses (as per <xref target="limits" format="default" pageno="false"/>) but the server is unable to truncate the result set at or below that limit. 
            </t>
          </list>
        </t>
      </section>
      <section title="Depth behavior" anchor="depth" toc="default">
          <t>
              The DAV:sync-collection report supports both Depth:1 and Depth:infinity request headers.
              <list style="symbols">
              	<t>When the client specifies Depth:1, only additions, changes or removals of immediate children of the collection specified as the request URI are reported.</t>
              	<t>When the client specifies Depth:infinity, additions, changes or removals of any child resource of the collection specified as the request URI are reported, provided child collections themselves also support the DAV:sync-collection report.</t>
              	<t>DAV:sync-token values returned by the server are not specific to the value of the Depth header used in the request. As such clients MAY use a DAV:sync-token value from a request with one Depth value for a similar request with a different Depth value, however the utility of this is limited.</t>
              </list>
          </t>
          <t>
          	Note that when a server supports Depth:infinity reports, it might not be possible to synchronize some child collections within the collection targeted by the report. In such cases the server is REQUIRED to return a DAV:response with status '405 Method Not Allowed' to inform the client that alternative methods have to be used to synchronize the contents of those collections. The 405 response MUST be sent once, when the collection is first reported to the client.
          </t>
      </section>
      <section title="Types of Changes Reported on Initial Synchronization" toc="default">
          <t>
              When the DAV:sync-collection request contains an empty DAV:sync-token element, the server MUST return
              all members of the collection (taking account of Depth header requirements as per <xref target="depth" format="default" pageno="false"/>, and optional truncation of results set as per <xref target="limit" format="default" pageno="false"/>) and it MUST NOT return any removed resources. All types of resource (collection or non-collection) MUST be reported.
          </t>
      </section>
      <section title="Types of Changes Reported on Subsequent Synchronizations" anchor="change-types" toc="default">
          <t>
              When the DAV:sync-collection request contains a valid value for the DAV:sync-token element, two types
              of resource state changes can be returned (changed or removed).
              This section defines what triggers each of these to be returned. It also clarifies the case where a resource
              may have undergone multiple changes between two synchronization report requests. In all cases, the Depth header requirements as per <xref target="depth" format="default" pageno="false"/>, and optional truncation of results set as per <xref target="limit" format="default" pageno="false"/>, are taken into account by the server.
          </t>
          <section title="Changed Resource" toc="default">
              <t>
                A resource MUST be reported as changed if it has been mapped as an member of the target collection since the request sync-token was generated.
                This includes resources that have been mapped as the result of a COPY, MOVE or <xref target="RFC5842" format="default" pageno="false">BIND</xref> request. All types of resource (collection or non-collection) MUST be reported.
              </t>
              <t>
                In the case where a mapping between a resource and the target collection was removed,
                then a new mapping with the same URI created, the new resource MUST be reported as changed
                while the old resource MUST NOT be reported as removed.
                For example, if a resource was deleted, then recreated using the same URI, it should be reported as a changed resource only.
              </t>
              <t>
                  A resource MUST be reported as changed if its entity tag value
                  (defined in Section 3.11 of <xref target="RFC2616" format="default" pageno="false"/>) has changed since the request sync-token
                  was  generated.
              </t>
              <t>
                  A resource MAY be reported as changed if the user issuing the request was granted access
                  to this resource, due to access control changes.
              </t>
              <t>
                  Collection resources MUST be returned as changed if they have an entity tag associated with them and that entity tag changes. There is no guarantee that changes to members of a collection will result in a change in any entity tag of that collection, so clients cannot rely on a series of Depth:1 reports at multiple levels to track all changes within a collection. Instead Depth:infinity has to be used.
              </t>
          </section>
          <section title="Removed Resource" toc="default">
              <t>
                  A resource MUST be reported as removed if its mapping under the target collection has been removed
                  since the request sync-token was generated, and it has not been re-mapped since it was removed.  This
                  includes resources that have been unmapped as the result of a MOVE or <xref target="RFC5842" format="default" pageno="false">UNBIND</xref> operation.
                  This also includes collection resources that have been removed, including ones that themselves do not support the DAV:sync-collection report.
              </t>
              <t>
                  If a resource was created (and possibly modified), then removed between two synchronization report requests,
                  it MUST be reported as removed. This ensures that a client that creates a resource is informed of the removal of the resource, if the removal occurs before the client has had a chance to request a synchronization report.
              </t>
              <t>
                  A resource MAY be reported as removed if the user issuing the request no longer has access to this resource,
                  due to access control changes.
              </t>
              <t>
              	For a Depth:infinity report where a collection is removed, the server MUST NOT report the removal of any resources that are members of the removed collection. Clients MUST assume that if a collection is reported as being removed, then all internal members of that collection have also been removed.
              </t>
          </section>
      </section>
      <section title="Truncation of Results" anchor="limit" toc="default">
          <t>
              A server MAY limit the number of resources in a response, for example, to limit the amount of work expended in processing a request, or as the result of an explicit limit set by the client. If the result set is truncated, the response MUST use status code 207, return a DAV:multistatus response body, and indicate a status of 507 (Insufficient Storage) for the request URI. That DAV:response element SHOULD include a DAV:error element with the DAV:number-of-matches-within-limits precondition, as defined in <xref target="RFC3744" format="default" pageno="false"/> (Section 9.2). DAV:response elements for all the changes being reported are also included.
          </t>
          <t>
              When truncation occurs, the DAV:sync-token value returned in the response MUST represent the correct state for the partial set of changes returned. That allows the client to use the returned DAV:sync-token to fetch the next set of changes. In this way the client can effectively "page" through the entire set of changes in a consistent manner.
          </t>
          <t>
              Clients MUST handle the 507 status on the request-URI in the response to the report.
          </t>
          <t>
              For example, consider a server that records changes using a monotonically increasing integer to represent a "revision number" and uses that quantity as the DAV:sync-token value. Assume the last DAV:sync-token used by the client was "10", and since then 15 additional changes have occurred. If the client executes a DAV:sync-collection request with a DAV:sync-token of "10", without a limit the server would return 15 DAV:response elements and a DAV:sync-token with value "25". But if the server choose to limit responses to at most 10 changes, then it would return only 10 DAV:response elements and a DAV:sync-token with value "20", together with an addition DAV:response element for the request-URI with a status code of 507. Subsequently, the client can re-issue the request with the DAV:sync-token value returned from the server and fetch the remaining 5 changes.
          </t>
      </section>
      <section title="Limiting Results" anchor="limits" toc="default">
          <t>
              A client can limit the number of results returned by the server through use of the DAV:limit element (<xref target="RFC5323" format="default" pageno="false"/>, Section 5.17) in the request body. This is useful when clients have limited space or bandwidth for the results. If a server is unable to truncate the result at or below the requested number, then it MUST fail the request with a DAV:number-of-matches-within-limits post-condition error. When the results can be correctly limited by the server, the server MUST follow the rules above for indicating a result set truncation to the client.
          </t>
      </section>                  
      <section title="Example: Initial DAV:sync-collection Report" toc="default">
        <t>
          In this example, the client is making its first synchronization request to the server, so the DAV:sync-token element in
          the request is empty. It also asks for the DAV:getetag property and for a proprietary property.
          The server responds with the items currently in the targeted collection. The current synchronization token is also returned.
        </t>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Request &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

REPORT /home/cyrusdaboo/ HTTP/1.1
Host: webdav.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:sync-collection xmlns:D="DAV:"&gt;
  &lt;D:sync-token/&gt;
  &lt;D:prop xmlns:R="urn:ns.example.com:boxschema"&gt;
    &lt;D:getetag/&gt;
    &lt;R:bigbox/&gt;
  &lt;/D:prop&gt;
&lt;/D:sync-collection&gt;

          </artwork>
        </figure>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Response &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&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://webdav.example.com/home/cyrusdaboo/test.doc&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00001-abcd1"&lt;/D:getetag&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"&gt;
        &lt;R:BoxType&gt;Box type A&lt;/R:BoxType&gt;
      &lt;/R:bigbox&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://webdav.example.com/home/cyrusdaboo/vcard.vcf&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00002-abcd1"&lt;/D:getetag&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"/&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 404 Not Found&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;/D:response&gt;
  &lt;D:response&gt;
  &lt;D:href
&gt;http://webdav.example.com/home/cyrusdaboo/calendar.ics&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00003-abcd1"&lt;/D:getetag&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"/&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 404 Not Found&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;/D:response&gt;
  &lt;D:sync-token&gt;1234&lt;/D:sync-token&gt;
&lt;/D:multistatus&gt;

          </artwork>
        </figure>
      </section>
      <section title="Example: DAV:sync-collection Report with Token" toc="default">
        <t>
          In this example, the client is making a synchronization request to the server and is using the DAV:sync-token element returned
          from the last report it ran on this collection. The server responds, listing the items that have been added, changed or removed. The
          (new) current synchronization token is also returned.
        </t>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Request &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

REPORT /home/cyrusdaboo/ HTTP/1.1
Host: webdav.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:sync-collection xmlns:D="DAV:"&gt;
  &lt;D:sync-token&gt;1234&lt;/D:sync-token&gt;
  &lt;D:prop xmlns:R="urn:ns.example.com:boxschema"&gt;
    &lt;D:getetag/&gt;
    &lt;R:bigbox/&gt;
  &lt;/D:prop&gt;
&lt;/D:sync-collection&gt;

          </artwork>
        </figure>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Response &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&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://webdav.example.com/home/cyrusdaboo/file.xml&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00004-abcd1"&lt;/D:getetag&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"/&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 404 Not Found&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;/D:response&gt;
  &lt;D:response&gt;
  &lt;D:href
&gt;http://webdav.example.com/home/cyrusdaboo/vcard.vcf&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00002-abcd2"&lt;/D:getetag&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"/&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 404 Not Found&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;/D:response&gt;
  &lt;D:response&gt;
  &lt;D:href
&gt;http://webdav.example.com/home/cyrusdaboo/test.doc&lt;/D:href&gt;
  &lt;D:status&gt;HTTP/1.1 404 Not Found&lt;/D:status&gt;
  &lt;/D:response&gt;
  &lt;D:sync-token&gt;1238&lt;/D:sync-token&gt;
&lt;/D:multistatus&gt;

          </artwork>
        </figure>
      </section>
      <section title="Example: Initial DAV:sync-collection Report with Truncation" toc="default">
        <t>
          In this example, the client is making its first synchronization request to the server, so the DAV:sync-token element in
          the request is empty. It also asks for the DAV:getetag property.
          The server responds with the items currently in the targeted collection, but truncated at two items. The synchronization token for the truncated result set is returned.
        </t>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Request &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

REPORT /home/cyrusdaboo/ HTTP/1.1
Host: webdav.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:sync-collection xmlns:D="DAV:"&gt;
  &lt;D:sync-token/&gt;
  &lt;D:prop&gt;
    &lt;D:getetag/&gt;
  &lt;/D:prop&gt;
&lt;/D:sync-collection&gt;

          </artwork>
        </figure>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Response &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&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://webdav.example.com/home/cyrusdaboo/test.doc&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00001-abcd1"&lt;/D:getetag&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://webdav.example.com/home/cyrusdaboo/vcard.vcf&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00002-abcd1"&lt;/D:getetag&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://webdav.example.com/home/cyrusdaboo/&lt;/D:href&gt;
    &lt;D:status&gt;HTTP/1.1 507 Insufficient Storage&lt;/D:status&gt;
    &lt;D:error&gt;&lt;D:number-of-matches-within-limits/&gt;&lt;/D:error&gt;
  &lt;/D:response&gt;
  &lt;D:sync-token&gt;1233&lt;/D:sync-token&gt;
&lt;/D:multistatus&gt;

          </artwork>
        </figure>
      </section>
      <section title="Example: Initial DAV:sync-collection Report with Limit" toc="default">
        <t>
          In this example, the client is making its first synchronization request to the server, so the DAV:sync-token element in
          the request is empty. It requests a limit of 1 for the responses returned by the server. It also asks for the DAV:getetag property.
          The server responds with the items currently in the targeted collection, but truncated at one item. The synchronization token for the truncated result set is returned.
        </t>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Request &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

REPORT /home/cyrusdaboo/ HTTP/1.1
Host: webdav.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:sync-collection xmlns:D="DAV:"&gt;
  &lt;D:sync-token/&gt;
  &lt;D:limit&gt;
    &lt;D:nresults&gt;1&lt;/D:nresults&gt;
  &lt;/D:limit&gt;
  &lt;D:prop&gt;
    &lt;D:getetag/&gt;
  &lt;/D:prop&gt;
&lt;/D:sync-collection&gt;

          </artwork>
        </figure>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Response &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&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://webdav.example.com/home/cyrusdaboo/test.doc&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00001-abcd1"&lt;/D:getetag&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://webdav.example.com/home/cyrusdaboo/&lt;/D:href&gt;
    &lt;D:status&gt;HTTP/1.1 507 Insufficient Storage&lt;/D:status&gt;
    &lt;D:error&gt;&lt;D:number-of-matches-within-limits/&gt;&lt;/D:error&gt;
  &lt;/D:response&gt;
  &lt;D:sync-token&gt;1232&lt;/D:sync-token&gt;
&lt;/D:multistatus&gt;

          </artwork>
        </figure>
      </section>
      <section title="Example: DAV:sync-collection Report with Unsupported Limit" toc="default">
        <t>
          In this example, the client is making a synchronization request to the server with a valid DAV:sync-token element value. It requests a limit of 100 for the responses returned by the server. It also asks for the DAV:getetag property.
          The server is unable to limit the results to the maximum specified by the client, so it responds with a 507 status code and appropriate post-condition error code.
        </t>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Request &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

REPORT /home/cyrusdaboo/ HTTP/1.1
Host: webdav.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:sync-collection xmlns:D="DAV:"&gt;
  &lt;D:sync-token&gt;1232&lt;/D:sync-token&gt;
  &lt;D:limit&gt;
    &lt;D:nresults&gt;100&lt;/D:nresults&gt;
  &lt;/D:limit&gt;
  &lt;D:prop&gt;
    &lt;D:getetag/&gt;
  &lt;/D:prop&gt;
&lt;/D:sync-collection&gt;

          </artwork>
        </figure>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Response &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

HTTP/1.1 507 Insufficient Storage
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:error xmlns:D="DAV:"&gt;
  &lt;D:number-of-matches-within-limits/&gt;
&lt;/D:error&gt;

          </artwork>
        </figure>
      </section>
      <section title="Example: Depth:infinity initial DAV:sync-collection Report" toc="default">
        <t>
          In this example, the client is making its first synchronization request to the server, so the DAV:sync-token element in
          the request is empty, and it is using Depth:infinity. It also asks for the DAV:getetag property and for a proprietary property.
          The server responds with the items currently in the targeted collection. The current synchronization token is also returned. 
        </t>
        <t>
          The collection /home/cyrusdaboo/collection1/ exists and has one child resource which is also reported. The collection /home/cyrusdaboo/collection2/ exists but has no child resources. The collection /home/cyrusdaboo/shared/ is returned with a 405 status indicating that a collection exists but it is unable to report on changes within it in the scope of the current Depth:infinity report. Instead the client can try a DAV:sync-collection report directly on the collection URI. 
        </t>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Request &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

REPORT /home/cyrusdaboo/ HTTP/1.1
Host: webdav.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:sync-collection xmlns:D="DAV:"&gt;
  &lt;D:sync-token/&gt;
  &lt;D:prop xmlns:R="urn:ns.example.com:boxschema"&gt;
    &lt;D:getetag/&gt;
    &lt;R:bigbox/&gt;
  &lt;/D:prop&gt;
&lt;/D:sync-collection&gt;

          </artwork>
        </figure>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <preamble>
            &gt;&gt; Response &lt;&lt;
          </preamble>
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

&lt;?xml version="1.0" encoding="utf-8" ?&gt;
&lt;D:multistatus xmlns:D="DAV:"&gt;
  &lt;D:response&gt;
  &lt;D:href
&gt;/home/cyrusdaboo/collection1/&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00001-abcd1"&lt;/D:getetag&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"&gt;
        &lt;R:BoxType&gt;Box type A&lt;/R:BoxType&gt;
      &lt;/R:bigbox&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;/home/cyrusdaboo/collection1/test.doc&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00001-abcd1"&lt;/D:getetag&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"&gt;
        &lt;R:BoxType&gt;Box type A&lt;/R:BoxType&gt;
      &lt;/R:bigbox&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;/home/cyrusdaboo/collection2/&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00002-abcd1"&lt;/D:getetag&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"/&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 404 Not Found&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;/D:response&gt;
  &lt;D:response&gt;
  &lt;D:href
&gt;/home/cyrusdaboo/calendar.ics&lt;/D:href&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;D:getetag&gt;"00003-abcd1"&lt;/D:getetag&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 200 OK&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;D:propstat&gt;
    &lt;D:prop&gt;
      &lt;R:bigbox xmlns:R="urn:ns.example.com:boxschema"/&gt;
    &lt;/D:prop&gt;
    &lt;D:status&gt;HTTP/1.1 404 Not Found&lt;/D:status&gt;
  &lt;/D:propstat&gt;
  &lt;/D:response&gt;
  &lt;D:response&gt;
  &lt;D:href
&gt;/home/cyrusdaboo/shared/&lt;/D:href&gt;
  &lt;D:status&gt;HTTP/1.1 405 Method Not Allowed&lt;/D:status&gt;
  &lt;/D:response&gt;
  &lt;D:sync-token&gt;1234&lt;/D:sync-token&gt;
&lt;/D:multistatus&gt;

          </artwork>
        </figure>
      </section>
    </section>
    <section title="DAV:sync-token Property" anchor="sync_property" toc="default">
        <t>
            <list style="hanging">
                <t hangText="Name:">
                    sync-token
                </t>
                <t hangText="Namespace:">
                    DAV:
                </t>
                <t hangText="Purpose:">
                  Contains the value of the synchronization token as it would be returned by a DAV:sync-collection report.
                </t>
                <t hangText="Value:">
                    Any text.
                </t>
                <t hangText="Protected:">
                    MUST be protected because this value is created and controlled by the server.
                </t>
                <t hangText="COPY/MOVE behavior:">
                    This property value is dependent on the final state of the destination resource, not the value of the property on the source resource.
                </t>
                <t hangText="Description:">
                    The DAV:sync-token property MUST be defined on all resources that support the DAV:sync-collection report.
                    It contains the value of the synchronization token as it would be returned by a DAV:sync-collection report on that resource at the same point in time.
                    It SHOULD NOT be returned by a PROPFIND DAV:allprop request (as defined in Section 14.2 of <xref target="RFC4918" format="default" pageno="false"/>).
                </t>
                <t hangText="Definition:">
                    <figure height="" suppress-title="false" width="" alt="" title="" align="left">
                        <artwork align="left" height="" name="" width="" type="" alt="" xml:space="preserve">

&lt;!ELEMENT sync-token #PCDATA&gt;

                        </artwork>
                    </figure>
                </t>
            </list>
        </t>
    </section>
    <section title="XML Element Definitions" toc="default">
      <section title="DAV:sync-collection XML Element" anchor="sync_collection_element" toc="default">
        <t>
          <list style="hanging">
            <t hangText="Name:">
              sync-collection
            </t>
            <t hangText="Namespace:">
              DAV:
            </t>
            <t hangText="Purpose:">
              WebDAV report used to synchronize data between client and server.
            </t>
            <t hangText="Description:">
              See <xref target="sync-collection" format="default" pageno="false"/>.
            </t>
          </list>
        </t>
        <figure height="" suppress-title="false" width="" alt="" title="" align="left">
          <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

&lt;!ELEMENT sync-collection (sync-token, DAV:limit?, DAV:prop)&gt;

&lt;!-- DAV:limit defined in RFC 5323, Section 5.17 --&gt;
&lt;!-- DAV:prop defined in RFC 4918, Section 14.18 --&gt;

          </artwork>
        </figure>
      </section>
      <section title="DAV:sync-token XML Element" anchor="sync_token_element" toc="default">
          <t>
            <list style="hanging">
              <t hangText="Name:">
                sync-token
              </t>
              <t hangText="Namespace:">
                DAV:
              </t>
              <t hangText="Purpose:">
                The synchronization token provided by the server and returned by the client.
              </t>
              <t hangText="Description:">
                See <xref target="sync-collection" format="default" pageno="false"/>.
              </t>
            </list>
          </t>
          <figure height="" suppress-title="false" width="" alt="" title="" align="left">
            <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

&lt;!ELEMENT sync-token CDATA&gt;

            </artwork>
          </figure>
      </section>
      <section title="DAV:multistatus XML Element" anchor="multistatus_element" toc="default">
          <t>
            <list style="hanging">
              <t hangText="Name:">
                multistatus
              </t>
              <t hangText="Namespace:">
                DAV:
              </t>
              <t hangText="Purpose:">
                Extends the DAV:multistatus element to include synchronization details.
              </t>
              <t hangText="Description:">
                See <xref target="sync-collection" format="default" pageno="false"/>.
              </t>
            </list>
          </t>
          <figure height="" suppress-title="false" width="" alt="" title="" align="left">
            <artwork height="" name="" width="" type="" alt="" align="left" xml:space="preserve">

&lt;!ELEMENT multistatus (DAV:response*, DAV:responsedescription?,
                       sync-token?) &gt;

&lt;!-- DAV:multistatus originally defined in RFC 4918, Section 14.16
     but overridden here to add the DAV:sync-token element --&gt;
&lt;!-- DAV:response defined in RFC 4918, Section 14.24 --&gt;
&lt;!-- DAV:responsedescription defined in RFC 4918, Section 14.25 --&gt;

            </artwork>
          </figure>
      </section>
    </section>
    <section title="Security Considerations" toc="default">
      <t>
        This extension does not introduce any new security concerns than those already described in HTTP and WebDAV.
      </t>
    </section>
    <section title="IANA Considerations" toc="default">
      <t>
        This document does not require any actions on the part of IANA.
      </t>
    </section>
    <section title="Acknowledgments" toc="default">
      <t>
        The following individuals contributed their ideas and support for writing this specification: Bernard Desruisseaux, Mike Douglass,
        Ciny Joy, Andrew McMillan, Julian Reschke, and Wilfredo Sanchez. We would like to thank the Calendaring and Scheduling Consortium for facilitating interoperability testing for early implementations of this specification.
      </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>
<postal>
<street>1350 Mass. Ave.</street>
<street>Cambridge</street>
<street>MA 02138</street></postal>
<phone>- +1 617 495 3864</phone>
<email>sob@harvard.edu</email></address></author>
<date year="1997" month="March"/>
<area>General</area>
<keyword>keyword</keyword>
<abstract>
<t>
   In many standards track documents several words are used to signify
   the requirements in the specification.  These words are often
   capitalized.  This document defines these words as they should be
   interpreted in IETF documents.  Authors who follow these guidelines
   should incorporate this phrase near the beginning of their document:

<list>
<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
      RFC 2119.
</t></list></t>
<t>
   Note that the force of these words is modified by the requirement
   level of the document in which they are used.
</t></abstract></front>

<seriesInfo name="BCP" value="14"/>
<seriesInfo name="RFC" value="2119"/>
<format type="TXT" octets="4723" target="ftp://ftp.isi.edu/in-notes/rfc2119.txt"/>
<format type="HTML" octets="14486" target="http://xml.resource.org/public/rfc/html/rfc2119.html"/>
<format type="XML" octets="5661" target="http://xml.resource.org/public/rfc/xml/rfc2119.xml"/>
</reference>

      

<reference anchor="RFC2616">

<front>
<title abbrev="HTTP/1.1">Hypertext Transfer Protocol -- HTTP/1.1</title>
<author initials="R." surname="Fielding" fullname="Roy T. Fielding">
<organization abbrev="UC Irvine">Department of Information and Computer Science</organization>
<address>
<postal>
<street>University of California, Irvine</street>
<city>Irvine</city>
<region>CA</region>
<code>92697-3425</code></postal>
<facsimile>+1(949)824-1715</facsimile>
<email>fielding@ics.uci.edu</email></address></author>
<author initials="J." surname="Gettys" fullname="James Gettys">
<organization abbrev="Compaq/W3C">World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science, NE43-356</street>
<street>545 Technology Square</street>
<city>Cambridge</city>
<region>MA</region>
<code>02139</code></postal>
<facsimile>+1(617)258-8682</facsimile>
<email>jg@w3.org</email></address></author>
<author initials="J." surname="Mogul" fullname="Jeffrey C. Mogul">
<organization abbrev="Compaq">Compaq Computer Corporation</organization>
<address>
<postal>
<street>Western Research Laboratory</street>
<street>250 University Avenue</street>
<city>Palo Alto</city>
<region>CA</region>
<code>94305</code></postal>
<email>mogul@wrl.dec.com</email></address></author>
<author initials="H." surname="Frystyk" fullname="Henrik Frystyk Nielsen">
<organization abbrev="MIT/LCS">World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science, NE43-356</street>
<street>545 Technology Square</street>
<city>Cambridge</city>
<region>MA</region>
<code>02139</code></postal>
<facsimile>+1(617)258-8682</facsimile>
<email>frystyk@w3.org</email></address></author>
<author initials="L." surname="Masinter" fullname="Larry Masinter">
<organization abbrev="Xerox">Xerox Corporation</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science, NE43-356</street>
<street>3333 Coyote Hill Road</street>
<city>Palo Alto</city>
<region>CA</region>
<code>94034</code></postal>
<email>masinter@parc.xerox.com</email></address></author>
<author initials="P." surname="Leach" fullname="Paul J. Leach">
<organization abbrev="Microsoft">Microsoft Corporation</organization>
<address>
<postal>
<street>1 Microsoft Way</street>
<city>Redmond</city>
<region>WA</region>
<code>98052</code></postal>
<email>paulle@microsoft.com</email></address></author>
<author initials="T." surname="Berners-Lee" fullname="Tim Berners-Lee">
<organization abbrev="MIT/LCS">World Wide Web Consortium</organization>
<address>
<postal>
<street>MIT Laboratory for Computer Science, NE43-356</street>
<street>545 Technology Square</street>
<city>Cambridge</city>
<region>MA</region>
<code>02139</code></postal>
<facsimile>+1(617)258-8682</facsimile>
<email>timbl@w3.org</email></address></author>
<date year="1999" month="June"/>
<abstract>
<t>
   The Hypertext Transfer Protocol (HTTP) is an application-level
   protocol for distributed, collaborative, hypermedia information
   systems. It is a generic, stateless, protocol which can be used for
   many tasks beyond its use for hypertext, such as name servers and
   distributed object management systems, through extension of its
   request methods, error codes and headers . A feature of HTTP is
   the typing and negotiation of data representation, allowing systems
   to be built independently of the data being transferred.
</t>
<t>
   HTTP has been in use by the World-Wide Web global information
   initiative since 1990. This specification defines the protocol
   referred to as "HTTP/1.1", and is an update to RFC 2068 .
</t></abstract></front>

<seriesInfo name="RFC" value="2616"/>
<format type="TXT" octets="422317" target="ftp://ftp.isi.edu/in-notes/rfc2616.txt"/>
<format type="PS" octets="5529857" target="ftp://ftp.isi.edu/in-notes/rfc2616.ps"/>
<format type="PDF" octets="550558" target="ftp://ftp.isi.edu/in-notes/rfc2616.pdf"/>
<format type="HTML" octets="528063" target="http://xml.resource.org/public/rfc/html/rfc2616.html"/>
<format type="XML" octets="476536" target="http://xml.resource.org/public/rfc/xml/rfc2616.xml"/>
</reference>

      

<reference anchor="RFC3744">

<front>
<title abbrev="WebDAV Access Control Protocol">Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol</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. 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="E." surname="Sedlar" fullname="Eric Sedlar">
<organization>Oracle Corporation</organization>
<address>
<postal>
<street>500 Oracle Parkway</street>
<city>Redwood Shores</city>
<region>CA</region>
<code>94065</code></postal>
<email>eric.sedlar@oracle.com</email></address></author>
<author initials="J." surname="Whitehead" fullname="Jim Whitehead">
<organization abbrev="U.C. Santa Cruz">U.C. 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 year="2004" month="May"/>
<abstract>
<t>
        This document specifies a set of methods, headers, message bodies,
        properties, and reports that define Access Control extensions to the
        WebDAV Distributed Authoring Protocol.  This protocol permits a client to
        read and modify access control lists that instruct a server whether to
        allow or deny operations upon a resource (such as HyperText Transfer
        Protocol (HTTP) method invocations) by a given principal.  A lightweight
        representation of principals as Web resources supports integration of a
        wide range of user management repositories.  Search operations allow
        discovery and manipulation of principals using human names.
      </t></abstract></front>

<seriesInfo name="RFC" value="3744"/>
<format type="TXT" octets="146623" target="ftp://ftp.isi.edu/in-notes/rfc3744.txt"/>
<format type="HTML" octets="228863" target="http://xml.resource.org/public/rfc/html/rfc3744.html"/>
<format type="XML" octets="171435" target="http://xml.resource.org/public/rfc/xml/rfc3744.xml"/>
</reference>

      

<reference anchor="RFC4918">

<front>
<title>HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)</title>
<author initials="L." surname="Dusseault" fullname="L. Dusseault">
<organization/></author>
<date year="2007" month="June"/>
<abstract>
<t>Web Distributed Authoring and Versioning (WebDAV) consists of a set of methods, headers, and content-types ancillary to HTTP/1.1 for the management of resource properties, creation and management of resource collections, URL namespace manipulation, and resource locking (collision avoidance).&lt;/t&gt;&lt;t&gt; RFC 2518 was published in February 1999, and this specification obsoletes RFC 2518 with minor revisions mostly due to interoperability experience. [STANDARDS TRACK]</t></abstract></front>

<seriesInfo name="RFC" value="4918"/>
<format type="TXT" octets="276352" target="ftp://ftp.isi.edu/in-notes/rfc4918.txt"/>
</reference>

      

<reference anchor="RFC5323">

<front>
<title>Web Distributed Authoring and Versioning (WebDAV) SEARCH</title>
<author initials="J." surname="Reschke" fullname="J. Reschke">
<organization/></author>
<author initials="S." surname="Reddy" fullname="S. Reddy">
<organization/></author>
<author initials="J." surname="Davis" fullname="J. Davis">
<organization/></author>
<author initials="A." surname="Babich" fullname="A. Babich">
<organization/></author>
<date year="2008" month="November"/>
<abstract>
<t>This document specifies a set of methods, headers, and properties composing Web Distributed Authoring and Versioning (WebDAV) SEARCH, an application of the HTTP/1.1 protocol to efficiently search for DAV resources based upon a set of client-supplied criteria. [STANDARDS-TRACK]</t></abstract></front>

<seriesInfo name="RFC" value="5323"/>
<format type="TXT" octets="91077" target="http://www.rfc-editor.org/rfc/rfc5323.txt"/>
</reference>

      

<reference anchor="W3C.REC-xml-20081126" target="http://www.w3.org/TR/2008/REC-xml-20081126">
<front>
<title>Extensible Markup Language (XML) 1.0 (Fifth Edition)</title>

<author initials="F." surname="Yergeau" fullname="François Yergeau">
    <organization/>
</author>

<author initials="J." surname="Paoli" fullname="Jean Paoli">
    <organization/>
</author>

<author initials="C." surname="Sperberg-McQueen" fullname="C. M. Sperberg-McQueen">
    <organization/>
</author>

<author initials="T." surname="Bray" fullname="Tim Bray">
    <organization/>
</author>

<author initials="E." surname="Maler" fullname="Eve Maler">
    <organization/>
</author>

<date month="November" day="26" year="2008"/>
</front>

<seriesInfo name="World Wide Web Consortium Recommendation" value="REC-xml-20081126"/>
<format type="HTML" target="http://www.w3.org/TR/2008/REC-xml-20081126"/>
</reference>

    </references>
    <references title="Informative References">
        

<reference anchor="RFC4791">

<front>
<title abbrev="CalDAV">Calendaring Extensions to WebDAV (CalDAV)</title>
<author initials="C." surname="Daboo" fullname="Cyrus Daboo">
<organization abbrev="Apple">Apple Inc.</organization>
<address>
<postal>
<street>1 Infinite Loop</street>
<city>Cupertino</city>
<region>CA</region>
<code>95014</code>
<country>USA</country></postal>
<email>cyrus@daboo.name</email>
<uri>http://www.apple.com/</uri></address></author>
<author initials="B." surname="Desruisseaux" fullname="Bernard Desruisseaux">
<organization abbrev="Oracle">Oracle Corporation</organization>
<address>
<postal>
<street>600 Blvd. de Maisonneuve West</street>
<street>Suite 1900</street>
<city>Montreal</city>
<region>QC</region>
<code>H3A 3J2</code>
<country>CANADA</country></postal>
<email>bernard.desruisseaux@oracle.com</email>
<uri>http://www.oracle.com/</uri></address></author>
<author initials="L.M." surname="Dusseault" fullname="Lisa Dusseault">
<organization abbrev="CommerceNet">CommerceNet</organization>
<address>
<postal>
<street>169 University Ave.</street>
<city>Palo Alto</city>
<region>CA</region>
<code>94301</code>
<country>USA</country></postal>
<email>ldusseault@commerce.net</email>
<uri>http://commerce.net/</uri></address></author>
<date year="2007" month="March"/>
<area>Applications</area>
<keyword>calsched</keyword>
<keyword>calsch</keyword>
<keyword>caldav</keyword>
<keyword>calendar</keyword>
<keyword>calendaring</keyword>
<keyword>scheduling</keyword>
<keyword>webdav</keyword>
<keyword>iCal</keyword>
<keyword>iCalendar</keyword>
<keyword>iTIP</keyword>
<keyword>text/calendar</keyword>
<keyword>HTTP</keyword>
<abstract>
<t>
      This document defines extensions to the Web Distributed Authoring
      and Versioning (WebDAV) protocol to specify a standard way of
      accessing, managing, and sharing calendaring and scheduling
      information based on the iCalendar format. This document
	  defines the "calendar-access" feature of CalDAV.
    </t></abstract></front>

<seriesInfo name="RFC" value="4791"/>
<format type="TXT" octets="206801" target="ftp://ftp.isi.edu/in-notes/rfc4791.txt"/>
<format type="HTML" octets="300292" target="http://xml.resource.org/public/rfc/html/rfc4791.html"/>
<format type="XML" octets="265793" target="http://xml.resource.org/public/rfc/xml/rfc4791.xml"/>
</reference>

        

<reference anchor="RFC5842">

<front>
<title>Binding Extensions to Web Distributed Authoring and Versioning (WebDAV)</title>
<author initials="G." surname="Clemm" fullname="G. Clemm">
<organization/></author>
<author initials="J." surname="Crawford" fullname="J. Crawford">
<organization/></author>
<author initials="J." surname="Reschke" fullname="J. Reschke">
<organization/></author>
<author initials="J." surname="Whitehead" fullname="J. Whitehead">
<organization/></author>
<date year="2010" month="April"/>
<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 ensure the integrity of any bindings that they allow to be created.  This document defines an Experimental Protocol for the Internet community.</t></abstract></front>

<seriesInfo name="RFC" value="5842"/>
<format type="TXT" octets="91544" target="http://www.rfc-editor.org/rfc/rfc5842.txt"/>
</reference>

        

<reference anchor="I-D.ietf-vcarddav-carddav">
<front>
<title>vCard Extensions to WebDAV (CardDAV)</title>

<author initials="C" surname="Daboo" fullname="Cyrus Daboo">
    <organization/>
</author>

<date month="November" day="9" year="2009"/>

<abstract><t>This document defines extensions to the Web Distributed Authoring and Versioning (WebDAV) protocol to specify a standard way of accessing, managing, and sharing contact information based on the vCard format.</t></abstract>

</front>

<seriesInfo name="Internet-Draft" value="draft-ietf-vcarddav-carddav-10"/>
<format type="TXT" target="http://www.ietf.org/internet-drafts/draft-ietf-vcarddav-carddav-10.txt"/>
</reference>

    </references>

<section title="Change History (to be removed prior to publication as an RFC)" toc="default">

<t>Changes in -04:
<list style="numbers">
<t>Depth:infinity support added.</t>
<t>Collection resources are now reported as changed if they have a valid entity tag associated with them.</t>
</list>
</t>

<t>Changes in -03:
<list style="numbers">
<t>Changed D:propstat to D:prop in marshalling.</t>
<t>Added request for dead property in examples.</t>
<t>Made D:prop mandatory in request so that D:response always contains at least one D:propstat
 as per WebDAV definition.</t>
<t>Removed DAV:status from response when resource is created/modified, thus allowing to get rid of
 DAV:sync-response in favor of a regular DAV:response. As a consequence, there is no longer any
 difference in the report between created and modified resources.</t>
 <t>Resource created, then removed between 2 sync MUST be returned as removed.</t>
 <t>Added ability for server to truncate results and indicate such to the client.</t>
 <t>Added ability for client to request the server to limit the result set.</t>
</list>
</t>

<t>Changes in -02:
<list style="numbers">
<t>Added definition of sync-token WebDAV property.</t>
<t>Added references to SEARCH, CalDAV, CardDAV as alternative ways to first synchronize a collection.</t>
<t>Added section defining under which condition each state change (new, modified, removed) should be reported. Added reference to BIND.</t>
<t>Incorporated feedback from Julian Reschke and Ciny Joy.</t>
<t>More details on the use of the DAV:valid-sync-token precondition.</t>
</list>
</t>

<t>Changes in -01:
<list style="numbers">
<t>Updated to 4918 reference.</t>
<t>Fixed examples to properly include DAV:status in DAV:propstat</t>
<t>Switch to using XML conventions text from RFC5323.</t>
</list>
</t>

</section>

  </back>
</rfc>