<?xml version="1.0"?>
<?rfc toc="yes"?>
<?rfc symrefs="no"?>
<?rfc tocdepth="5"?><!-- desruisseaux: To be removed... -->
<?rfc strict="yes"?>
<?rfc comments="yes"?>
<?rfc inline="yes"?>
<rfc ipr="full3978" docName="draft-dusseault-caldav-07">
  <x:link xmlns:x='http://purl.org/net/xml2rfc/ext' rel="Alternate" title="RFC4791" href="http://greenbytes.de/tech/webdav/rfc4791.html"/>
  <front>
    <title abbrev="CalDAV">Calendaring Extensions to WebDAV (CalDAV)</title>
    <author initials="C." surname="Daboo" fullname="Cyrus Daboo">
      <organization abbrev="ISAMET">ISAMET Inc.</organization>
      <address>
        <postal>
          <street>5001 Baum Blvd.</street>
          <street>Suite 650</street>
          <city>Pittsburgh</city>
          <region>PA</region>
          <code>15213</code>
          <country>US</country>
        </postal>
        <email>daboo@isamet.com</email>
        <uri>http://www.isamet.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>19th Floor</street>
          <city>Montreal</city>
          <region>QC</region>
          <code>H3A 3J2</code>
          <country>CA</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="OSAF">Open Source Application 
        Foundation</organization>
      <address>
        <postal>
          <street>2064 Edgewood Dr.</street>
          <city>Palo Alto</city>
          <region>CA</region>
          <code>94303</code>
          <country>US</country>
        </postal>
        <email>lisa@osafoundation.org</email>
        <uri>http://www.osafoundation.org/</uri>
      </address>
    </author>
    <date month="July" year="2005" day="17"/>
    <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>text/calendar</keyword>
    <keyword>HTTP</keyword>
    <abstract>
      <t>
        This document specifies a set of methods, headers, message bodies,
        properties, and reports that define calendar access extensions to
        the WebDAV protocol. The new protocol elements are intended to make
        WebDAV-based calendaring and scheduling an interoperable standard
        that supports single-user calendar access, calendar management,
        calendar sharing, and calendar publishing.
      </t>
    </abstract>
  </front>

  <middle>
    <section title="Introduction">
		<t> The concept of using
			<xref target="RFC2616">HTTP</xref> and
			<xref target="RFC2518">WebDAV</xref> as a basis for a calendaring
			server is by no means a new concept: it was discussed in the IETF CALSCH
			working group as early as 1997 or 1998. Several companies have
			implemented calendaring servers using HTTP PUT/GET to upload and
			download
			<xref target="RFC2445">iCalendar</xref> objects, and using WebDAV
			PROPFIND to get listings of resources. However, those
			implementations do not interoperate because there are many small and
			big decisions to be made in how to model calendaring data as WebDAV
			resources, as well as how to implement required features that aren't
			already part of WebDAV. This document proposes a standard way of
			modeling calendar data in WebDAV, with additional features to make
			calendar access work well.
		</t>
		<t>Discussion of this Internet-Draft is taking place on the mailing list
			
			&lt;http://lists.osafoundation.org/mailman/listinfo/ietf-caldav&gt;.</t>

      <section title="Notational Conventions">
        <t>The augmented BNF used by this document to describe protocol 
          elements is described in Section 2.1 of <xref 
          target="RFC2616"/>. Because this augmented BNF uses the 
          basic production rules provided in Section 2.2 of <xref 
          target="RFC2616"/>, those rules apply to this document as 
          well.</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>
          The term "protected" is used in the Conformance field
          of property definitions as defined in Section 1.4.2 of
          <xref target="RFC3253">RFC3253</xref>.</t>
        <t>When XML element types in the namespaces "DAV:" and
          "urn:ietf:params:xml:ns:caldav" are referenced in this
          document outside of the context of an XML fragment, 
          the string "DAV:" and "CALDAV:" will be prefixed to
          the element type names respectively.</t>
      </section><!-- Notational Conventions -->
      
      <section title="XML Namespaces">

        <t>Definitions of XML elements in this document use XML element 
          type declarations (as found in XML Document Type Declarations),
          described in Section 3.2 of <xref target="REC-XML"/>.
        </t>

        <t>The namespace "urn:ietf:params:xml:ns:caldav" is reserved for 
          the XML elements defined in this specification, its revisions,
          and related CalDAV specifications. It MUST NOT be used for
          proprietary extensions.</t>

        <t>Note that the XML declarations used in this document are 
          incomplete, in that they do not include namespace information. 
          Thus, the reader MUST NOT use these declarations as the only 
          way to create valid CalDAV properties or to validate 
          CalDAV XML element type. Some of the declarations refer to XML 
          elements defined by WebDAV which use the "DAV:" namespace. 
          Wherever such elements appear, they are explicitly given the 
          "DAV:" prefix to help avoid confusion.</t>

        <t>Also note that some CalDAV XML element names are identical to
          WebDAV XML element names, though their namespace differs. Care
          MUST be taken not to confuse the two sets of names.</t>
      </section><!-- XML Namespace -->

<!--+++
      <section title="Terminology">

        <t>
          This document uses the terms defined in <xref target="RFC2445"/>,
          in <xref target="RFC2518"/>, in <xref target="RFC2616"/> and
          in <xref target="RFC3744"/>. In addition, the following terms
          are defined:
        </t>

        <t>
          <list><t>
          Repository: The term "repository" does not have a strict
          protocol definition in HTTP or WebDAV, but it's used here to
          discuss the URL namespace supporting HTTP or WebDAV, 
          residing on a server; the set of resources related through the
          structure of the HTTP/WebDAV URLs.  In WebDAV, namespaces must
          be consistent, such that the path elements in a HTTP URL have
          a known mapping to the container relationships within that URL
          namespace.  Since a WebDAV server can have more than one
          consistent namespace (e.g., a server may host several 
          domain names or several distinct URL namespaces on different 
          ports) the word "repository" is used as a term to refer to an
          entire consistent URL namespace and its resources.
          </t></list>
        </t>
        
        <t>
          <list><t>
          Calendar...
          </t></list>
        </t>
        
        <t>
          <list><t>
          Calendar collection ...
          </t></list>
        </t>
      </section>
+++-->

      <section title="Method Preconditions and Postconditions">
        <t>A "precondition" of a method describes the state of the
          server that must be true for that method to be performed.
          A "postcondition" of a method describes the state of the
          server that must be true after that method has been 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><!-- Method Preconditions and Postconditions -->
    </section><!-- Introduction -->

    <section title="CalDAV Requirements Overview" anchor="requirements">
      <t>This section lists what functionality is required of a CalDAV 
        server. To advertise support for CalDAV, a server:
        <list style="symbols">
          <t>MUST support <xref target="RFC2518">WebDAV Class 1</xref>.</t>
          <t>MUST support <xref target="RFC3744">WebDAV ACL</xref> with
             the privilege defined in <xref target="privileges"/> of
             this document.</t>
          <t>MUST support transport over TLS <xref target="RFC2246"/>
             as defined in <xref target="RFC2818">RFC2818</xref>.</t>
          <t>MUST support strong ETags to support disconnected operations.</t>
          <t>MUST support all required calendaring REPORTs defined in this 
            document.</t>
          <t>MUST advertise calendaring REPORTs via the 
            DAV:supported-report-set property as defined in
            <xref target="RFC3253">Versioning Extensions to WebDAV</xref>.</t>
       </list>
    </t>
    <t>In addition, a server:
      <list style="symbols">
        <t>SHOULD support the MKCALENDAR method defined in
          <xref target="METHOD_MKCALENDAR"/> of this document.</t>
      </list>
    </t>
  </section><!-- requirements -->

	<section title="Capability Discovery">
		<section title="CalDAV Server Support">
			<t>If a server supports the CalDAV features described in this
				document, it MUST include "calendar-access" as a field in the DAV
				response header from an OPTIONS request on any resource that
        supports any calendar properties, reports, methods, or privilege.
        A value of "calendar-access" in the DAV header MUST indicate
        that the server supports all MUST level requirements and REQUIRED
        features specified in this document.</t>
			<section
				title="Example: Using OPTIONS for the Discovery of Support for CalDAV">
				<figure>
					<preamble>&gt;&gt; Request &lt;&lt;</preamble>
					<artwork>
						<![CDATA[
OPTIONS /home/bernard/ HTTP/1.1
Host: cal.example.com
]]></artwork>
				</figure>
				<figure>
					<preamble>&gt;&gt; Response &lt;&lt;</preamble>
					<artwork>
						<![CDATA[
HTTP/1.1 200 OK
Allow: OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, COPY, MOVE
Allow: MKCOL, PROPFIND, PROPPATCH, LOCK, UNLOCK, REPORT
Allow: MKCALENDAR, ACL
DAV: 1, 2, access-control, calendar-access
Content-Length: 0
]]></artwork>
				</figure>
				<t>In this example, the OPTIONS response indicates that the
					server supports CalDAV on this collection, therefore the
          "/home/bernard/" collection may be used as a parent for
					calendar collections as the MKCALENDAR method is available,
					and as a possible target for REPORT requests for calendaring
					reports.</t>
			</section><!-- example.capability.discovery -->
		</section><!-- capability.discovery -->
	</section>

  <section title="Calendar Resources">
    <section title="Calendaring Data Model" anchor="model">
      <t>One of the features which has made WebDAV a successful protocol 
        is its firm data model. This makes it a useful framework for 
        other applications such as calendaring. This specification
        follows the same pattern by developing all features based 
        on a well-described data model. </t>
		<t>In the CalDAV data model, every VEVENT, VTODO, VJOURNAL, and
      VFREEBUSY component is contained in an individual resource,
      referred to as a "calendar object resource". Each calendar object
			resource may be individually locked and have individual WebDAV
      properties. These resources are placed into WebDAV collections
      with a mostly-fixed structure.</t>

      <section anchor="Repository" title="Calendar Server">
        <t>A CalDAV server is a calendaring-aware 
          engine combined with a WebDAV repository. A WebDAV 
          repository is a set of WebDAV collections, containing other 
          WebDAV resources, within a unified URL namespace. For 
          example, the repository "http://www.example.com/webdav/" may 
          contain WebDAV collections and resources, all of which have 
          URLs beginning with "http://www.example.com/webdav/". Note that 
          the root URL "http://www.example.com/" may not itself be a 
          WebDAV repository (for example, if the WebDAV support is 
          implemented through a servlet or other Web server 
          extension). </t>
		<t>A WebDAV repository MAY include calendar data in some parts of its URL
			namespace, and non-calendaring data in other parts.</t>
        <t>A WebDAV repository can advertise itself as a CalDAV server 
          if it supports the functionality defined in this 
          specification at any point within the root of the 
          repository. That might mean that calendaring data is spread 
          throughout the repository and mixed with non-calendar data 
          in nearby collections (e.g., calendar data may be found in 
          /home/lisa/calendar/ as well as in /home/bernard/calendar/,
          and non-calendar data in /home/lisa/contacts/). Or, it might
          mean that calendar data can be found only in certain sections of 
          the repository (e.g., /caldav/). Calendaring 
          features are only required in the repository sections that 
          are or contain calendaring objects. So a repository 
          confining calendar data to the /caldav/ collection would 
          only need to support the CalDAV required features within 
          that collection. </t>
        <t>The CalDAV server or repository is the canonical location 
          for calendar data and state information. Both CalDAV 
          servers and clients MUST ensure that the data is consistent 
          and compliant. Clients may submit requests to change data 
          or download data. Clients may store calendar objects 
          offline and attempt to synchronize at a later time.
          However, clients MUST be prepared for calendar data on the 
          server to change between the time of last synchronization 
          and when attempting an update, as calendar collections may
          be shared and accessible via multiple clients. HTTP ETags
          and other features help this work.</t>
      </section><!-- Calendar Server -->

      <section anchor="recurrence" title="Recurrence and the Data Model">
        <t>Recurrence is an important part of the data model because it
          governs how many resources are expected to exist. This
          specification models a recurring calendar component and its
          recurrence exceptions as a single resource. In this model,
          recurrence patterns, recurrence dates, exception dates, and
          exception information are all part of the data in a single
          calendar object resource. This model avoids problems of limiting
          how many recurrence instances to store in the repository, how to
          keep instances in synch with the recurring calendar component,
          and how to link recurrence exceptions with the recurring calendar
          component. It also results in less data to synchronize between
          client and server, and makes it easier to make changes to all
          recurrence instances or to a recurrence pattern. It makes it
          easier to create a recurring calendar component, and easier
			    to delete all recurrence instances.
		    </t>

        <t>
          Clients are not forced to retrieve information about all recurrence
          instances of a recurring component. The CALDAV:calendar-query and
          CALDAV:calendar-multiget REPORTs defined in this document allow
          clients to retrieve only recurrence instances that overlap a
          given time range.
        </t>
      </section><!-- Recurrence -->
    </section><!-- Model -->

    <section title="Calendar Home" anchor="calendar-home">

      <t>
        Calendar home collections are manifested to clients as a
        WebDAV resource collection, identified by a URL. A calendar
        home collection MUST report the DAV:collection and
        CALDAV:calendar-home XML elements in the value of the
        DAV:resourcetype property. The element type declaration
        for CALDAV:calendar-home is:
      </t>

      <figure>
        <artwork><![CDATA[
    <!ELEMENT calendar-home EMPTY>
        ]]></artwork>
      </figure>

      <t>
        Typically, calendar users will group all the calendar collections
        that they own under a common calendar home collection. Grouping
        a user's calendar collections under a common calendar home
        collection allow one to obtain free-busy time information for
        all this user's calendar with a single CALDAV:free-busy-query
        REPORT request targetted at the calendar home collection.
      </t>
      <t>
        Creation of calendar home collections is viewed as an
        administrative task and is not covered by this specification.
      </t>
      <t>
        Calendar home collections MUST NOT contain other calendar
        home collections. Multiple calendar home collections MAY be
        children of the same WebDAV collection.
      </t>
      <t>
        A calendar home collection MAY contain additional collections
        and non-collection resources of types not defined here. How 
        such items are used is not defined by this specification. 
        However, additional collections contained in a calendar home
        collection MUST NOT contain calendar home collections.
      </t>
    </section><!-- calendar-home -->

    <section title="Calendar Collection" anchor="calendar-collection">

      <t>
        Calendar collections are manifested to clients as a WebDAV
        resource collection, identified by a URL. A 
        calendar collection MUST report the DAV:collection and
        CALDAV:calendar XML elements in the value of the
        DAV:resourcetype property. The element type declaration
        for CALDAV:calendar is:
      </t>

      <figure>
        <artwork><![CDATA[
    <!ELEMENT calendar EMPTY>
        ]]></artwork>
      </figure>

      <t>
        A calendar collection contains resources that represent 
        the iCalendar objects within a calendar. A calendar 
        collection may be created through provisioning (e.g.,
        automatically created when a user's account is created), or 
        it may be created through MKCALENDAR (see
		    <xref target="METHOD_MKCALENDAR"/>). This can be useful 
        for a user to create a second calendar (e.g., soccer 
        schedule) or for users to share a calendar (e.g., team 
        events or conference room). Note however that this document
        doesn't define what extra calendar collections are for,
        users must rely on non-standard cues to find out what a
        calendar collection is for, or use the
        CALDAV:calendar-description property defined
        in <xref target='calendar-description'/> to provide such a 
        cue.
      </t>
      <t>
        Calendar collections MUST NOT contain other calendar
        collections. Multiple calendar collections MAY be children
        of the same WebDAV collection.
      </t>
      <t>
        A calendar collection MAY contain additional collections and 
        non-collection resources of types not defined here. How 
        such items are used is not defined by this specification. 
        However, additional collections contained in a calendar
        collection MUST NOT contain calendar collections.
      </t>
    </section><!-- calendar-collection -->

    <section title="Calendaring Properties">

      <t>
        This section defines properties that may be defined
        on calendar home collections and/or calendar collections.
      </t>

      <section title="CALDAV:calendar-description Property"
				anchor="calendar-description">
        <t>
          <list style="hanging">
            <t hangText="Name:">
              calendar-description
            </t>
            <t hangText="Namespace:">
              urn:ietf:params:xml:ns:caldav
            </t>
            <t hangText="Purpose:">
              Provides a human-readable description of what this
              calendar home or calendar collection represents.
            </t>
            <t hangText="Conformance:">
              This property MAY be protected and SHOULD NOT be returned
              by a PROPFIND allprop request (as defined in Section 12.14.1
              of <xref target="RFC2518"/>). Servers MUST indicate the human
              language of the description using the xml:lang attribute and
              SHOULD consider the HTTP Accept-Language request header when
              selecting one of multiple available languages.
            </t>
            <t hangText="Description:">
              The CALDAV:calendar-description property MAY be defined on
              any calendar home or calendar collection. If present, the
              property contains a description of the calendar home or
              calendar collection that is suitable for presentation to
              a user.
            </t>
            <t hangText="Definition:">
              <figure>
                <artwork><![CDATA[
   <!ELEMENT calendar-description (#PCDATA) >
                ]]></artwork>
              </figure>
            </t>
            <t hangText="Example:">
              <figure>
                <artwork><![CDATA[
   <C:calendar-description xml:lang="fr-CA"
      xmlns:C="urn:ietf:params:xml:ns:caldav"
   >Calendrier de Bernard Desruisseaux</C:calendar-description>
                ]]></artwork>
              </figure>
            </t>
          </list>
        </t>
      </section><!-- calendar-description -->

      <section title="CALDAV:calendar-component-restriction-set Property"
        anchor="calendar-component-restriction-set">
        <t>
          <list style="hanging">
            <t hangText="Name:">
              calendar-component-restriction-set
            </t>
            <t hangText="Namespace:">
              urn:ietf:params:xml:ns:caldav
            </t>
            <t hangText="Purpose:">Specifies the type of calendar
              component types (e.g., VEVENT, VTODO, etc.) that
              calendar object resources may contain in a calendar
              collection.
            </t>
            <t hangText="Conformance:">
              This property MAY be protected and SHOULD NOT be returned
              by a PROPFIND allprop request (as defined in Section 12.14.1
              of <xref target="RFC2518"/>).
            </t>
            <t hangText="Description:">
              The CALDAV:calendar-component-restriction-set property
              MAY be defined on any calendar collection to specify
              the calendar component types that the CalDAV server
              support in the calendar object resources contained in
              the calendar collection. CalDAV servers MAY allow users to
              set this property on any calendar collection by using
              PROPPATCH to allow them to restrict the calendar
              component types themselves.
              The element &lt;C:comp name="VTIMEZONE"&gt; MUST only
              be specified if support for calendar object resources
              that only contains VTIMEZONE components is provided or
              desired. Support for VTIMEZONE components in calendar
              object resources that contain VEVENT or VTODO components
              is always assumed.
            </t>
            <t hangText="Definition:">
              <figure>
                <artwork><![CDATA[
    <!ELEMENT calendar-component-restriction-set (comp*)>
                ]]></artwork>
              </figure>
            </t>
            <t hangText="Example:">
              <figure>
                <artwork>
                  <![CDATA[
    <C:calendar-component-restriction-set
        xmlns:C="urn:ietf:params:xml:ns:caldav">
      <C:comp name="VEVENT"/>
      <C:comp name="VTODO"/>
    </C:calendar-component-restriction-set>
                  ]]>
                </artwork>
              </figure>
            </t>
          </list>
        </t>
        <t>
          <cref source="desruisseaux">
            CalDAV servers that will allow users to modify this
            property will require a way to advertise what they
            are capable of supporting. Perhap they could return
            a calendar-component-restriction-set element as part
            of the value of the calendar-restrictions property.
          </cref>
        </t>
      </section><!-- calendar-component-restriction-set -->

      <section title="CALDAV:calendar-restrictions Property"
        anchor="calendar-restrictions">
        <t>
          <list style="hanging">
            <t hangText="Name:">
              calendar-restrictions
            </t>
            <t hangText="Namespace:">
              urn:ietf:params:xml:ns:caldav
            </t>
            <t hangText="Purpose:">Specifies restrictions on a
              calendar collection.
            </t>
            <t hangText="Conformance:">
              This property MAY be protected and SHOULD NOT be returned
              by a PROPFIND allprop request (as defined in Section 12.14.1
              of <xref target="RFC2518"/>).
            </t>
            <t hangText="Description:">
              The CALDAV:calendar-restrictions property
              MAY be defined on any calendar collection to specify
              restrictions a CalDAV server may have on a calendar
              collection.
            </t>
            <t hangText="Definition:">
              <figure>
                <artwork>
                  <![CDATA[
    <!ELEMENT calendar-restrictions (calendar-data-only?,
                                     calendar-data?)>
                  ]]>
                </artwork>
              </figure>
            </t>
            <t hangText="Example:">
              <figure>
                <artwork>
                  <![CDATA[
    <C:calendar-restrictions xmlns:C="urn:ietf:params:xml:ns:caldav">
      <C:calendar-data-only/>
      <C:calendar-data content-type="text/calendar" version="2.0"/>
    </C:calendar-restrictions>
                  ]]>
                </artwork>
              </figure>
            </t>
          </list>
        </t>
      </section><!-- calendar-restrictions -->
    </section><!-- calendar-properties-->

		<section
			title="Calendar Object Resource Restrictions in Calendar Collections">
			
			<t> Calendar object resources contained in calendar collections MUST
				NOT contain more than one type of calendar component (e.g., VEVENT,
				VTODO, etc.) with the exception of VTIMEZONE components which
				MUST be specified for each unique TZID parameter value specified
				in the iCalendar object. For instance, a calendar object resource
				can contain two VEVENT components and one VTIMEZONE component,
				but it cannot contain one VEVENT component and one VTODO
				component.
			</t>
			
			<t> The UID property value of the calendar components contained in a
				calendar object resource MUST be unique in the scope of the
				calendar collection, and all its descendant collections, in
				which the calendar object resource is contained.
			</t>
			
			<t> Calendar components in a calendar collection that have
				different UID property values MUST be stored in separate calendar
				object resources.
			</t>
			
			<t> Calendar components with the same UID property value, in a given
				calendar collection, MUST be contained in the same calendar object
				resource. This ensures that all components in a recurrence "set"
        are contained in the same calendar object resource. In that case there
				will be one component without a RECURRENCE-ID property (the
        component that defines the recurrence pattern) and all the rest
        will have that property (these are the recurrence exceptions).</t>
			
			<t>For example, given the following iCalendar object:
				<figure>
					<artwork>
						<![CDATA[
BEGIN:VCALENDAR
CALSCALE:GREGORIAN 
PRODID:-//Example, Inc.\, Inc.//Example App//EN
VERSION:2.0 
BEGIN:VEVENT
UID:1@example.com
SUMMARY:One-off Meeting 
DTSTAMP:20041210T183904Z
DTSTART:20041207T120000Z 
DTEND:20041207T130000Z
END:VEVENT
BEGIN:VEVENT 
UID:2@example.com
SUMMARY:Weekly Meeting 
DTSTAMP:20041210T183838Z
DTSTART:20041206T120000Z 
DTEND:20041206T130000Z
RRULE:FREQ=WEEKLY
END:VEVENT 
BEGIN:VEVENT
UID:2@example.com 
RECURRENCE-ID:20041213T120000Z
DTSTAMP:20041210T183838Z 
DTSTART:20041213T130000Z
END:VEVENT
END:VCALENDAR 
          ]]></artwork>
				</figure>
			</t>
			<t>The VEVENT component with the UID value "1@example.com", would
				be stored in its own calendar object resource. The two
				VEVENT components with the UID value "2@example.com", which
				represent a recurring event where one recurrence instance has
				been overridden, would be stored in the same calendar object
				resource.</t>
		</section>
	<section title="Creating Resources" anchor="creating-resources">
		
		<!--+++
		Redundent with last paragraph of the section "Calendar Server".
		+++-->
		
		<t>The creation of calendar collections and calendar object resources may
			be initiated by either a CalDAV client or by the CalDAV server. For
			example, a server might come preconfigured with a user's calendar
			collection, or the CalDAV client might request the server to create a
			new calendar collection for a given user. Servers might populate
			events as calendar objects inside a calendar collection, or clients
			might request the server to create events. Either way, both client and
			server MUST comply with the requirements in this document, and MUST
			understand objects appearing in calendar collections or according to
			the data model defined here.
		</t>
		
		<section title="MKCALENDAR Method" anchor="METHOD_MKCALENDAR">
			<t> An HTTP request using the MKCALENDAR method creates a new calendar
				collection resource. A server MAY restrict calendar collection
        creation to particular collections.
			</t>
			<t> Support for MKCALENDAR on the server is OPTIONAL because some
				calendar stores only support one calendar per user (or principal)
				and those are typically pre-created for each account. However,
				servers and clients are strongly encouraged to support
				MKCALENDAR whenever possible to allow users to create multiple
				calendar collections to better help organize their data.
			</t>
			<t> Clients SHOULD use the DAV:displayname property for a
				human-readable name of the calendar. This requires the clients to
				issue a PROPPATCH request to change the DAV:displayname property
				to the appropriate value immediately after issuing the
				MKCALENDAR request. Clients SHOULD NOT set the DAV:displayname
				property to be the same as any other calendar collection at the same
				URI "level". When displaying calendar collections to users,
				clients SHOULD check the DAV:displayname property and use that
				value as the name of the calendar. In the event that the
				DAV:displayname property is empty, the client MAY use the last
				part of the calendar collection URI as the name.
			</t>
			<t> If a MKCALENDAR request fails, the server state preceding the
				request MUST be restored.
			</t>
			<t> Marshalling:<list>
				<t> If a request body is included, it MUST be a CALDAV:mkcalendar
					XML element.
					<figure>
						<artwork>
							<![CDATA[
<!ELEMENT mkcalendar ANY>
]]></artwork>
					</figure>
				</t>
				<t> If a response body for a successful request is included, it MUST
					be a CALDAV:mkcalendar-response XML element.
					<figure>
						<artwork>
							<![CDATA[
<!ELEMENT mkcalendar-response ANY>
]]></artwork>
					</figure>
				</t>
				<t> The response MUST include a Cache-Control:no-cache header.
				</t>
				</list>
			</t>
			<t> Preconditions:
				<list>
					<t> (DAV:resource-must-be-null): A resource MUST NOT exist
						at the Request-URI.
					</t>
					<t> (CALDAV:calendar-collection-location-bad): The
						Request-URI MUST identify a location where a calendar
						collection can be created.
					</t>
					<t> (CALDAV:insufficient-privilege): The DAV:bind
						privilege MUST be granted to the current user.
					</t>
				</list>
			</t>
			<t> Postconditions:
				<list>
					<t> (CALDAV:initialize-calendar-collection): A new
						calendar collection exists at the Request-URI. The
						DAV:resourcetype of the calendar collection MUST
						contain both DAV:collection and CALDAV:calendar XML
						elements.
					</t>
				</list>
			</t>
			
			<section title="Status Codes">
				<t> 201 (Created) - The calendar collection resource was created
					in its entirety.
				</t><t> 403 (Forbidden) - This indicates at least one of two
				conditions: 1) the server does not allow the creation of calendar
				collections at the given location in its namespace, or 2) the
				parent collection of the Request-URI exists but cannot accept
				members.
				</t><t> 405 (Method Not Allowed) - MKCALENDAR can only be executed
				on a null resource.
				</t><t> 409 (Conflict) - A collection cannot be made at the
				Request-URI until one or more intermediate collections have been
				created.
				</t><t> 415 (Unsupported Media Type)- The server does not support
				the request type of the body.
				</t><t> 507 (Insufficient Storage) - The resource does not have
				sufficient space to record the state of the resource after the
				execution of this method.
				</t>
			</section><!-- Status Codes -->
			
			<section title="Example - MKCALENDAR">
				
				<figure>
					<preamble>&gt;&gt; Request &lt;&lt;</preamble>
					<artwork>
						<![CDATA[
MKCALENDAR /home/lisa/calendar/ HTTP/1.1
Host: cal.example.com
Content-Length: 0
					]]></artwork>
				</figure>
				<figure>
					<preamble>&gt;&gt; Response &lt;&lt;</preamble>
					<artwork>
						<![CDATA[
HTTP/1.1 201 Created
Cache-Control: no-cache
Content-Length: 0
					]]></artwork>
				</figure>
				<t> In this example, a new calendar collection is created at
          http://cal.example.com/home/lisa/calendar/.
				</t>
			</section><!-- Example - MKCALENDAR -->
		</section><!-- MKCALENDAR Method -->
		
		<section title="Creating Calendar Object Resources">
			<t>Clients typically populate calendar collections with calendar
				object resources. The URL for each calendar object resource is
				entirely arbitrary, and does not need to bear a specific
				relationship (but might) to the calendar object resource's
				subject, scheduled time, UID or other metadata. A new calendar
				object resource must have a unique URL, otherwise the new
				component would instead be an update to an existing calendar
				object resource.</t>
			
			<t>When servers create new resources, it's not hard for the server to
				choose a unique URL. It's slightly tougher for clients, because a
				client might not want to examine all resources in the collection,
				and might not want to lock the entire collection to ensure that a new
				one isn't created with a name collision. However, there are http
				features to mitigate this. If the client intends to create a new
				non-collection resource, such as a new VEVENT, the client SHOULD
				use the HTTP header "If-None-Match: *" on the PUT request. The
				Request-URI on the PUT request MUST include the target
				collection, where the resource is to be created, plus the name of
				the resource in the last path segment. The last path segment could
				be a random number, or it could be a sequence number, or a string
				related to the object's SUMMARY property. No matter how the name
				is chosen, the "If-None-Match" header ensures that the client
				cannot overwrite an existing resource even if it has accidentally
				chosen a duplicate resource name.
			</t>
			<t>Servers SHOULD return an ETag header containing the actual ETag of
				the newly created resource on a successful creation.</t>
			<figure>
				<preamble>&gt;&gt; Request &lt;&lt;</preamble>
				<artwork>
					<![CDATA[
PUT /lisa/calendar/newevent.ics HTTP/1.1
If-None-Match: *
Host: cal.example.com
Content-Type: text/calendar
Content-Length: xxx

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VEVENT
UID:20010712T182145Z-123401@example.com
DTSTART:20010714T170000Z
DTEND:20010715T040000Z
SUMMARY:Bastille Day Party
END:VEVENT
END:VCALENDAR
]]></artwork>
			</figure>
			<figure>
				<preamble>&gt;&gt; Response &lt;&lt;</preamble>
				<artwork>
					<![CDATA[
HTTP/1.1 201 Created
Content-Length: 0
ETag: "123456789-000-111"
]]></artwork>
			</figure>
			<t> The request to change an existing event is the same, but with a
				specific ETag in the "If-Match" header, rather than the
				"If-None-Match" header.</t>
			
			<t> As indicated in Section 3.10 of
				<xref target="RFC2445">RFC 2445</xref>, the URL of calendar
				object resources containing (an arbitrary set of) calendaring
				and scheduling information may be suffixed by ".ics", and the URL
				of calendar object resources containing free or busy time
				information may be suffixed by ".ifb".
			</t>
			
			<t> Preconditions for PUT within calendar collections:
				<list>
					<t> (CALDAV:uid-already-exists): The component UID chosen
						is not unique and the client must choose another if it
						attempts again.
					</t>
					<t> (CALDAV:invalid-calendar-resource): The iCalendar
						object syntax or structure was invalid. (Note that the
						server MAY support upload formats other than iCalendar
						but then the server MUST validate each component
						uploaded according to the chosen format syntax.)
					</t>
				</list>
			</t>
		</section>
	</section>
   </section>

<section title="Calendaring Access Control">


    <section anchor="privileges" title="Calendaring Privileges">
      <t>A CalDAV server MUST support <xref target="RFC3744">WebDAV 
        ACL</xref>. WebDAV ACL provides a framework for an 
        extensible list of privileges on WebDAV collections and 
        ordinary resources. A CalDAV server MUST also support the
        calendaring privilege defined in this section.</t>

      <section title="CALDAV:read-free-busy Privilege"
        anchor="PRIVILEGE_read-free-busy">
        <t>Calendar users often wish to allow other users to see their 
          busy time information, without viewing the other details
          of the calendar components (location, summary, attendees).
          This allows a significant amount of privacy while still
          allowing those other users to schedule meetings at times
          when the calendar user is likely to be free. </t>
		<t>The CALDAV:read-free-busy privilege controls which calendar
			collections and calendar object resources are examined when a
			free-busy-query REPORT is run (see
			<xref target="free-busy-query"/>). This privilege can be
			granted on calendar collections or calendar object resources.
			Servers MUST support this privilege on calendar collections and any
			calendar object resources within those collections.
		</t>
        <t>
          <figure>
            <artwork><![CDATA[
  <!ELEMENT read-free-busy EMPTY>
            ]]></artwork>
          </figure>
        </t>

        <t>The CALDAV:read-free-busy privilege is aggregated in the
          DAV:read privilege. Note that if an ACL grants the privilege
          CALDAV:read-free-busy, the client may not expect to be
          granted access to GET, HEAD, OPTIONS and PROPFIND.
        </t>
      </section><!-- PRIVILEGE_read-free-busy -->

      <section 
        title="Privilege aggregation and the DAV:supported-privilege-set property">
		<t> In the WebDAV ACL standard, servers MUST support the
			DAV:supported-privilege-set property to show which privileges are
			abstract, which privileges are supported, how the privileges relate
			to another, and to provide text descriptions (particularly useful for
			custom privileges). The relationships between privileges involves
			showing which privilege is a subset or a superset of another privilege.
			For example, because reading the ACL property is considered a more
			specific privilege than the DAV:read privilege (a subset of the total
			set of actions are allowed), it may be aggregated under the DAV:read
			privilege. Although the list of supported privileges MAY vary
			somewhat from server to server (the WebDAV ACL specification leaves
         room for a fair amount of diversity in server implementations),
         the following restriction MUST hold for a CalDAV server:
			<list style="symbols">
				<t>The server MUST support the CALDAV:read-free-busy
					privilege. The CALDAV:read-free-busy privilege MUST be
					non-abstract, and MUST be aggregated under the DAV:read
					privilege.</t>
			</list>
		</t>
        <section 
          title="Partial example of DAV:supported-privilege-set property">
          <t>This is a partial example of how the 
            DAV:supported-privilege-set property could look on a 
            server supporting CalDAV. Note that aggregation is 
            shown in the structure of the DAV:supported-privilege
            elements containing each other.</t>
          <figure>
            <artwork><![CDATA[
<D:supported-privilege-set xmlns:D="DAV:"
      xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:supported-privilege>
    <D:privilege><D:all/></D:privilege>
    <D:abstract/>
    <D:description xml:lang="en"
>Any operation</D:description>
    <D:supported-privilege>
      <D:privilege><D:read/></D:privilege>
      <D:description xml:lang="en"
>Read any object</D:description>
      <D:supported-privilege>
        <D:privilege><D:read-acl/></D:privilege>
        <D:description xml:lang="en"
>Read ACL</D:description>
      </D:supported-privilege>
      <D:supported-privilege>
        <D:privilege><D:read-current-user-privilege-set/>
        </D:privilege>
        <D:description xml:lang="en"
>Read current user privilege set</D:description>
      </D:supported-privilege>
      <D:supported-privilege>
        <D:privilege>
          <C:read-free-busy/>
        </D:privilege>
        <D:description xml:lang="en"
>Read busy time information</D:description>
      </D:supported-privilege>
    </D:supported-privilege>
    <D:supported-privilege>
      <D:privilege><D:write/></D:privilege>
      <D:description xml:lang="en"
>Write any object</D:description>
    ... 
  </D:supported-privilege>
</D:supported-privilege-set>
]]></artwork>
          </figure>
        </section> <!-- Example -->
      </section> <!-- Supported-privilege-set property -->
    </section> <!-- privileges -->

    <section anchor="principal.properties" 
      title="Additional Principal Properties">
      <t>This section defines additional properties for WebDAV principal 
        resources as defined in <xref target="RFC3744">RFC3744</xref>. 
      </t>

      <section anchor="PROPERTY_calendar-home-URL" 
        title="CALDAV:calendar-home-URL Property">

        <t>
          <list style="hanging">
            <t hangText="Name:">
              calendar-home-URL
            </t>
            <t hangText="Namespace:"> 
              urn:ietf:params:xml:ns:caldav
            </t>
            <t hangText="Purpose:">
              Identify the URL of any calendar home collections owned
              by the associated principal resource.
            </t>
            <t hangText="Conformance:">
              This property MAY be protected and SHOULD NOT be returned
              by a PROPFIND allprop request (as defined in Section 12.14.1
              of <xref target="RFC2518"/>).
              Support for this property is RECOMMENDED.
            </t>
            <t hangText="Description:">
            </t>
            <t hangText="Definition:">
              <figure>
                <artwork><![CDATA[
    <!ELEMENT calendar-home-URL (DAV:href*) >
                ]]></artwork>
              </figure>
            </t>
            <t hangText="Example:">
              <figure>
                <artwork><![CDATA[
    <C:calendar-home-URL xmlns:D="DAV:"
                         xmlns:C="urn:ietf:params:xml:ns:caldav">
      <D:href>http://cal.example.com/home/bernard/</D:href>
    </C:calendar-home-URL>
                ]]></artwork>
              </figure>
            </t>
          </list>
        </t>
      </section><!-- PROPERTY_calendar-home-URL -->

      <section anchor="PROPERTY_calendar-address-set" 
        title="CALDAV:calendar-address-set Property">

        <t>
          <list style="hanging">
            <t hangText="Name:">
              calendar-address-set
            </t>
            <t hangText="Namespace:"> 
              urn:ietf:params:xml:ns:caldav
            </t>
            <t hangText="Purpose:">
              Identify the calendar addresses of the associated
              principal resource.
            </t>
            <t hangText="Conformance:">
              This property MAY be protected and SHOULD NOT be returned
              by a PROPFIND allprop request (as defined in Section 12.14.1
              of <xref target="RFC2518"/>).
              Support for this property is RECOMMENDED.
              This property SHOULD be searchable using the
              DAV:principal-property-search REPORT.
              The DAV:principal-search-property-set REPORT SHOULD
              identify this property as such.
            </t>
            <t hangText="Description:">
              This property is mostly meant to discover the calendar home
              collection URLs of the principal associated with a given
              calendar address by using the DAV:principal-property-search
              REPORT.
            </t>
            <t hangText="Definition:">
              <figure>
                <artwork><![CDATA[
    <!ELEMENT calendar-address-set (DAV:href*) >
                ]]></artwork>
              </figure>
            </t>
            <t hangText="Example:">
              <figure>
                <artwork><![CDATA[
    <C:calendar-address-set xmlns:D="DAV:"
                            xmlns:C="urn:ietf:params:xml:ns:caldav">
      <D:href>mailto:bernard@example.com</D:href>
      <D:href>mailto:bernard.desruisseaux@example.com</D:href>
    </C:calendar-address-set>
                ]]></artwork>
              </figure>
            </t>
          </list>
        </t>
      </section><!-- PROPERTY_calendar-address-set --> 

      <section title="Example: Searching calendar home based on a calendar address">
        <t>
          In this example, the client request the CALDAV:calendar-home-URL
          of the principal resources whose CALDAV:calendar-address-set
          property contains the substring "mailto:bernard@example.com".
          In addition, the client request the DAV:displayname to be
          returned with the matching principals.
        </t>

        <t>
          The response shows that only one principal resource meet the
          search specification, "Bernard Desruisseaux".
        </t>
        <t>
          <figure>
            <preamble>&gt;&gt; Request &lt;&lt;</preamble>
            <artwork>
              <![CDATA[
REPORT /users/ HTTP/1.1
Host: cal.example.com
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx
Depth: 0

<?xml version="1.0" encoding="utf-8" ?>
<D:principal-property-search xmlns:D="DAV:"
                  xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:property-search>
    <D:prop>
      <C:calendar-address-set/>
    </D:prop>
    <D:match>mailto:bernard@example.com</D:match>
  </D:property-search>
  <D:prop>
    <C:calendar-home-URL/>
    <D:displayname/>
  </D:prop>
</D:principal-property-search>
              ]]>
            </artwork>
          </figure>
          <figure>
            <preamble>&gt;&gt; Response &lt;&lt;</preamble>
            <artwork>
              <![CDATA[
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset=utf-8
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:"
               xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:response>
    <D:href>http://cal.example.com/users/bernard</D:href>
    <D:propstat>
      <D:prop>
        <C:calendar-home-URL>
          <D:href>http://cal.example.com/home/bernard/</D:href>
        </C:calendar-home-URL>
        <D:displayname>Bernard Desruisseaux</D:displayname>
      </D:prop>
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
  </D:response>
</D:multistatus>
              ]]>
            </artwork>
          </figure>
        </t>
      </section><!-- Example --> 

    </section><!-- principal.properties --> 
  </section><!-- Calendaring Access Control -->

    <section title="Calendaring Reports" anchor="reports">

		<t>This section defines the reports which a CalDAV server MUST support on
			calendar collections and calendar object resources.</t>
      <t>CalDAV servers MUST advertise support for those reports
        with the DAV:supported-report-set property defined in
        <xref target="RFC3253">RFC3253</xref>.</t>
      <t>Some of these reports allow calendar data (from possibly 
        multiple resources) to be returned. Clients SHOULD request the 
        DAV:getetag property whenever executing reports that return 
        calendar data, to ensure that any local cache used for 
        synchronization is kept up to date with the latest changes
        on the server</t>

    <section anchor="METHOD_REPORT" title="REPORT Method">

        <t>The REPORT method (defined in Section 3.6 of
         <xref target="RFC3253">RFC3253</xref>) provides an
         extensible mechanism for obtaining information about a resource.
         Unlike the PROPFIND method, which returns the value of one or more
         named properties, the REPORT method can involve more complex
         processing.  REPORT is valuable in cases where the server has access
         to all of the information needed to perform the complex request (such
         as a query), and where it would require multiple requests for the
         client to retrieve the information needed to perform the same
         request.</t>

       <t>A server that supports calendar-access MUST support the
         DAV:expand-property report (defined in Section 3.8 of
         <xref target="RFC3253">RFC3253</xref>).</t>
    </section>

    <section title="Reports on collections containing calendar collections">
        <t>A WebDAV collection which contains one or more calendar
          collections is not a new type of resource, but it may
          support these new REPORT. If so, then the REPORT is
          expected to have the semantics of including information
          from all the calendar data contained in the collection,
          and its children, recursively. These collections may
          contain more than only calendar related resources. It's
          up to the server, if it supports this REPORT on a normal WebDAV 
          collection, to find calendar object resources and decide 
          what to do with non-calendar resources and whether those 
          may also appear in the collection or its children. </t>
        <t>If these reports are supported on ordinary collections the 
          server advertises the capability with the 
          DAV:supported-report-set property as already described.</t>
    </section>

	<section anchor="recurringreports" title="Reports and recurring items">
	<t>
		 Some of the reports defined in CalDAV can be targetted at calendar
		 object resources within a specific time range. To determine whether a
		 calendar object resource matches the time range filter element, the
		 start and end times for the particular type of object are determined
		 and then compared to the requested time range. If the start and end
		 overlap the requested time range, then the calendar object resource
		 matches the filter element. The rules defined in
		 <xref target="RFC2445" />
		 for determining the actual start and end times of calendar components
		 MUST be used.
	</t>
	<t>
    When such time range filtering is used, special consideration must
    be given to recurring calendar components such as VEVENT and
    VTODO components. The server MUST expand recurring items to determine.
		whether any one or more recurrence instances overlap the
		requested time range. If any one instance overlaps the time
		range, then the calendar object resource matches the filter
		element.
	</t>
	<t>
		In addition, CalDAV provides three ways to determine which
    recurrence instances are returned from the recurrence set.
    The three options are:
		<list style="numbers">
		<t>
      Return all the calendar components contained in the calendar
      object resources. This includes the recurrence instance that
      defines the recurrence pattern, referred to as the "master
      instance", as well as the recurrence instances that define
      exceptions to the recurrence pattern, referred to as the
      "overriden instances".  Because of the rules defined in
      <xref target="recurrence" /> all recurrence instances of
      a recurring component will always be in the same calendar
      object resource.
		</t>
		<t>
			Return the "master" instance and only the "overridden
      instances" that overlap the specified time range.
      This avoids the need for clients to process recurrence
      instances outside of the time range they are interested in.
		</t>
		<t>
			Return an "expanded" set of calendar components that
			represent only those instances in the recurrence set that
			overlap the specified time range. This avoids the need for
			clients to do any recurrence processing themselves as the
			server does the expansion for them and provides the list of
			instances.
		</t>
		</list>

	</t>
	</section>

    <section anchor="calendar-query" title="CALDAV:calendar-query Report">
		<t>The CALDAV:calendar-query REPORT performs a search for all calendar
			object resources that match a specified
			search filter. The response of this report will contain all the WebDAV
			properties and calendar object resource data specified in the
			request. In the case of the CALDAV:calendar-data XML element, one can
			explicitly specify the calendar components and properties that
			should be returned in the calendar object resource data that matches
			the search filter.
		</t>
        <t>The format of this report is modeled on the PROPFIND 
          method. The request and response bodies of
          the CALDAV:calendar-query report use XML elements that
          are also used by PROPFIND. In 
          particular the request can include XML elements to request 
          WebDAV properties to be returned. When that occurs the 
          response should follow the same behavior as PROPFIND with 
          respect to the DAV:multistatus response elements used to
          return specific property results. For instance, a request
          to retrieve the value of a property which does not exist 
          is an error and MUST be noted with a response XML element
          which contains a 404 (Not Found) status value.</t>
        <t> Support for the calendar-query REPORT is REQUIRED.</t>
        <t> Marshalling: <list> <t> The request body MUST be a 
          CALDAV:calendar-query XML element as defined in <xref 
          target='calendar_query_element'/>.</t> <t> The response 
          body for a successful request MUST be a DAV:multistatus XML 
          element (i.e., the response uses the same format as the 
          response for PROPFIND). In the case where there are no 
          response elements, the returned multistatus XML element is 
          empty. </t> <t> The response body for a successful 
          calendar-query REPORT request MUST contain a DAV:response 
          element for each iCalendar object that matched the search 
          filter. The declaration of the DAV:response element from 
          Section 12.9.1 of <xref target="RFC2518">RFC2518</xref> has 
          been modified to allow the CALDAV:calendar-data
          element within the DAV:response element, see <xref 
          target='response_element'/> </t> </list> </t>
        <t>Preconditions:
          <list>
            <t>
              None.
            </t>
          </list>
        </t>
        <t>Postconditions:
          <list>
            <t>
              (DAV:number-of-matches-within-limits): The number of matching
              calendar object resources must fall within server-specific,
              predefined limits. For example, this condition might be
              triggered if a search specification would cause the return
              of an extremely large number of responses.
            </t>
          </list>
        </t>

        <section title="Example: Partial retrieval of events by time range">
          <t> In this example, the client requests the server to 
            return specific components and properties of the VEVENT 
            components that overlap the time range from September 
            2nd, 2004 at 00:00:00 am UTC to September 2nd, 2004 at 
            11:59:59 pm UTC. In addition the DAV:getetag
            property is also requested and returned as part of the 
            response. Note that the third calendar object returned is a
            recurring event whose first instance lies outside of the requested
            time range, but whose second instance does overlap the time range.
          </t>
          <figure>
            <preamble>&gt;&gt; Request &lt;&lt;</preamble>
            <artwork><![CDATA[
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:D="DAV:"
                  xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop>
    <D:getetag/>
  </D:prop>
  <C:calendar-data>
    <C:comp name="VCALENDAR">
      <C:allprop/>
      <C:comp name="VEVENT">
        <C:prop name="X-ABC-GUID"/>
        <C:prop name="UID"/>
        <C:prop name="DTSTART"/>
        <C:prop name="DTEND"/>
        <C:prop name="DURATION"/>
        <C:prop name="EXDATE"/>
        <C:prop name="EXRULE"/>
        <C:prop name="RDATE"/>
        <C:prop name="RRULE"/>
        <C:prop name="LOCATION"/>
        <C:prop name="SUMMARY"/>
      </C:comp>
      <C:comp name="VTIMEZONE">
        <C:allprop/>
        <C:allcomp/>
      </C:comp>
    </C:comp> 
  </C:calendar-data>
  <C:filter>
    <C:comp-filter name="VCALENDAR">
      <C:comp-filter name="VEVENT">
        <C:time-range start="20040902T000000Z"
                      end="20040903T000000Z"/>
      </C:comp-filter>
    </C:comp-filter>
  </C:filter>
</C:calendar-query>
      ]]></artwork>
          </figure>
          <figure>
            <preamble>&gt;&gt; Response &lt;&lt;</preamble>
            <artwork><![CDATA[
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:"
               xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:response>
    <D:href
>http://cal.example.com/home/bernard/calendar/ev102.ics</D:href>
    <D:propstat>
      <D:prop>
        <D:getetag>"23ba4d-ff11fb"</D:getetag>
      </D:prop>
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    <C:calendar-data>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VEVENT
DTSTART:20040902T100000Z
DTEND:20040902T120000Z
SUMMARY:Design meeting
UID:34222-232@example.com
X-ABC-GUID:E1CX4zp-0005Ld-21@example.com
END:VEVENT
END:VCALENDAR
    </C:calendar-data>
  </D:response>
  <D:response>
    <D:href
>http://cal.example.com/home/bernard/calendar/mtg103.ics</D:href>
    <D:propstat>
      <D:prop>
        <D:getetag>"ff11fb-23ba4d"</D:getetag>
      </D:prop>
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    <C:calendar-data>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VEVENT
DTSTART:20040902T130000Z
DTEND:20040902T150000Z
SUMMARY:Design meeting - Part II
UID:63409-868@example.com
X-ABC-GUID:E1CX5Dr-0007ym-Hz@example.com
END:VEVENT
END:VCALENDAR
    </C:calendar-data>
  </D:response>
  <D:response>
    <D:href
>http://cal.example.com/home/bernard/calendar/mtg104.ics</D:href>
    <D:propstat>
      <D:prop>
        <D:getetag>"7834cd-63fd2c"</D:getetag>
      </D:prop>
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    <C:calendar-data>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VEVENT
DTSTART:20040901T130000Z
DTEND:20040901T150000Z
RRULE:FREQ=DAILY;COUNT=2
SUMMARY:Design meeting - Part III
UID:63409-451@example.com
X-ABC-GUID:E1CX5Dr-0008ym-Hz@example.com
END:VEVENT
END:VCALENDAR
    </C:calendar-data>
  </D:response>
</D:multistatus>
      ]]></artwork>
          </figure>
        </section>

        <section title="Example: Partial retrieval of recurring events">
          <t>
            Todo: Example with CALDAV:limit-recurrence-set.
          </t>
        </section>

        <section title="Example: Expanded retrieval of recurring events">
          <t>
            Todo: Example with CALDAV:expand-recurrence-set.
          </t>
        </section>

        <section 
          title="Example: Retrieval of to-dos by alarm time range">
          <t> In this example, the client requests the server to 
            return the VTODO components that have an alarm trigger 
            scheduled in the specified time range. </t>
          <figure>
            <preamble>&gt;&gt; Request &lt;&lt;</preamble>
            <artwork><![CDATA[
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop xmlns:D="DAV:">
    <D:getetag/>
  </D:prop>
  <C:calendar-data/>
  <C:filter>
    <C:comp-filter name="VCALENDAR">
      <C:comp-filter name="VTODO">
        <C:comp-filter name="VALARM">
          <C:time-range start="20041121T000000Z"
                        end="20041122T000000Z"/>
        </C:comp-filter>
      </C:comp-filter>
    </C:comp-filter>
  </C:filter>
</C:calendar-query>
      ]]></artwork>
          </figure>
        </section>
        <section title="Example: Retrieval of event by UID">
          <t> In this example, the client requests the server to 
            return the VEVENT component that has the UID property 
            set to "20041121-FEEBDAED@foo.org". </t>
          <figure>
            <preamble>&gt;&gt; Request &lt;&lt;</preamble>
            <artwork><![CDATA[
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop xmlns:D="DAV:">
    <D:getetag/>
  </D:prop>
  <C:calendar-data/>
  <C:filter>
    <C:comp-filter name="VCALENDAR">
      <C:comp-filter name="VEVENT">
        <C:prop-filter name="UID">
          <C:text-match
             caseless="no">20041121-FEEBDAED@foo.org</C:text-match>
        </C:prop-filter>
      </C:comp-filter>
    </C:comp-filter>
  </C:filter>
</C:calendar-query>
      ]]></artwork>
          </figure>
        </section>
        <section 
          title="Example: Retrieval of events by participation status">
          <t> In this example, the client requests the server to 
            return the VEVENT components that have the ATTENDEE 
            property with the value "mailto:bernard@example.com" and 
            for which the PARTSTAT parameter is set to 
            "NEEDS-ACTION". </t>
          <figure>
            <preamble>&gt;&gt; Request &lt;&lt;</preamble>
            <artwork><![CDATA[
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop xmlns:D="DAV:">
    <D:getetag/>
  </D:prop>
  <C:calendar-data/>
  <C:filter>
    <C:comp-filter name="VCALENDAR">
      <C:comp-filter name="VEVENT">
        <C:prop-filter name="ATTENDEE"/>
          <C:text-match
            caseless="yes">mailto:bernard@example.com</C:text-match>
          <C:param-filter name="PARTSTAT"/>
            <C:text-match caseless="no">NEEDS-ACTION</C:text-match>
          </C:param-filter>
        </C:prop-filter>
      </C:comp-filter>
    </C:comp-filter>
  </C:filter>
</C:calendar-query>
      ]]></artwork>
          </figure>
        </section>
        <section title="Example: Retrieval of events only">
          <t> In this example, the client requests the server to 
            return all VEVENT components. </t>
          <figure>
            <preamble>&gt;&gt; Request &lt;&lt;</preamble>
            <artwork><![CDATA[
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop xmlns:D="DAV:">
    <D:getetag/>
  </D:prop>
  <C:calendar-data/>
  <C:filter>
    <C:comp-filter name="VCALENDAR">
      <C:comp-filter name="VEVENT">
        <C:is-defined/>
      </C:comp-filter>
    </C:comp-filter>
  </C:filter>
</C:calendar-query>
      ]]></artwork>
          </figure>
        </section>
      </section><!-- calendar-query -->

      <section anchor="calendar-multiget"
        title="CALDAV:calendar-multiget Report">
        <t>The CALDAV:calendar-multiget REPORT is used to retrieve specific 
          calendar object resources from within a collection, if the 
          Request-URI is a collection, or to retrieve a specific 
          calendar object resource, if the Request-URI is a calendar 
          object resource. This report is similar to the 
          CALDAV:calendar-query REPORT (see <xref 
          target='calendar-query'/>), except that it takes a list of 
          DAV:href elements instead of a CALDAV:filter element to determine 
          which calendar object resources to return.</t>
        <t>Support for the calendar-multiget REPORT is REQUIRED.</t>
        <t>Marshalling: <list> <t>The request body MUST be a 
          CALDAV:calendar-multiget XML element (see <xref 
          target='calendar_multiget_element'/>, which MUST contain at 
          least one DAV:href XML element, and one optional 
          CALDAV:calendar-data element as defined in <xref 
          target="calendar_data_element"/>. If the Request-URI is a 
          collection resource, then the DAV:href elements MUST refer to 
          resources within that collection, and they MAY refer to 
          resources at any depth within the collection. As a result 
          the "Depth" header MUST be ignored by the server and 
          SHOULD NOT be sent by the client. If the Request-URI refers 
          to a non-collection resource, then there MUST be a single 
          DAV:href element that is equal to the Request-URI.</t> <t>The 
          response body for a successful request MUST be a 
          DAV:multistatus XML element. In the case where there are no 
          response elements, the returned multistatus XML element is 
          empty.</t> <t>The response body for a successful 
          CALDAV:calendar-multiget REPORT request MUST contain a 
          DAV:response element for each calendar object resource referenced by
          the provided set of DAV:href elements. The DAV:response element 
          is as defined in <xref target="response_element"/>.</t> 
          <t>In the case of an error accessing any of the provided 
          DAV:href resources, the server MUST return the appropriate 
          error status code in the DAV:status element of the 
          corresponding DAV:response element.</t> </list> </t>
        <t>Preconditions:
          <list>
            <t>
              None.
            </t>
          </list>
        </t>
        <t>Postconditions:
          <list>
            <t>
              None.
            </t>
          </list>
        </t>
        <section title="Example: CALDAV:calendar-multiget Report">
          <t> In this example, the client requests the server to 
            return specific properties of the VEVENT components 
            references by specific URIs. In addition the
            DAV:getetag property is also requested and returned as 
            part of the response. Note that in this example, the 
            resource at 
            http://cal.example.com/home/bernard/calendar/mtg1.ics
            does not exist, resulting in an error status response. </t>
          <figure>
            <preamble>&gt;&gt; Request &lt;&lt;</preamble>
            <artwork><![CDATA[
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-multiget xmlns:D="DAV:"
                     xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop>
    <D:getetag/>
  </D:prop>
  <C:calendar-data>
    <C:comp name="VCALENDAR">
      <C:allprop/>
      <C:comp name="VEVENT">
        <C:prop name="UID"/>
        <C:prop name="DTSTART"/>
        <C:prop name="DTEND"/>
        <C:prop name="DURATION"/>
        <C:prop name="EXDATE"/>
        <C:prop name="EXRULE"/>
        <C:prop name="RDATE"/>
        <C:prop name="RRULE"/>
        <C:prop name="LOCATION"/>
        <C:prop name="SUMMARY"/>
      </C:comp>
      <C:comp name="VTIMEZONE">
        <C:allprop/>
        <C:allcomp/>
      </C:comp>
    </C:comp> 
  </C:calendar-data>
  <D:href
>http://cal.example.com/home/bernard/calendar/ev102.ics</D:href>
  <D:href
>http://cal.example.com/home/bernard/calendar/mtg1.ics</D:href>
</C:calendar-multiget>
      ]]></artwork>
          </figure>
          <figure>
            <preamble>&gt;&gt; Response &lt;&lt;</preamble>
            <artwork><![CDATA[
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:"
               xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:response>
    <D:href
>http://cal.example.com/home/bernard/calendar/ev102.ics</D:href>
    <D:propstat>
      <D:prop>
        <D:getetag>"23ba4d-ff11fb"</D:getetag>
      </D:prop>
      <D:status>HTTP/1.1 200 OK</D:status>
    </D:propstat>
    <C:calendar-data>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VEVENT
DTSTART:20040902T100000Z
DTEND:20040902T120000Z
SUMMARY:Design meeting
UID:34222-232@example.com
END:VEVENT
END:VCALENDAR
    </C:calendar-data>
  </D:response>
  <D:response>
    <D:href
>http://cal.example.com/home/bernard/calendar/mtg1.ics</D:href>
    <D:status>HTTP/1.1 404 Resource not found</D:status>
  </D:response>
</D:multistatus>
      ]]></artwork>
          </figure>
        </section>
      </section><!-- calendar-multiget -->

      <section anchor="free-busy-query" title="CALDAV:free-busy-query Report">
        <t>The CALDAV:free-busy-query REPORT generates a VFREEBUSY component
          containing free busy information for all relevant calendar
          components within calendar collections which have the 
          CALDAV:read-free-busy or DAV:read privilege granted for the 
          current user.</t>

        <t>Only VEVENT components, without a TRANSP property or with the
          TRANSP property set to a value other than "TRANSPARENT", and
          VFREEBUSY components are used to generate the free busy time
          information.</t>

        <t>Support for the CALDAV:free-busy-query REPORT is REQUIRED.</t>

        <t>Marshalling:
          <list>
            <t>The request body MUST be a CALDAV:free-busy-query XML
              element (see <xref target='free_busy_query_element'/>, which
              MUST contain at least one CALDAV:time-range XML element,
              as defined in <xref target="time_range_element"/>.</t>

            <t>The response body for a successful request MUST be a
              DAV:multistatus XML element. In the case where there are
              no response elements, the returned multistatus XML element
              is empty.</t>
			<t>The response body for a successful CALDAV:free-busy-query REPORT
				request MUST contains a DAV:response element for each calendar
				collection for which free-busy information has been computed.
				Each DAV:response element contains a single
				CALDAV:calendar-data XML element as defined in
				<xref target="calendar_data_element"/>. The
				CALDAV:calendar-data XML element MUST contain an iCalendar
				object with a single VFREEBUSY component, with zero or more
				FREEBUSY property values that describe the busy time intervals
				for the calendar object resources being targeted, and with other
				properties set according to the rules of iCalendar. This report
				only returns busy time information. Applications desiring free
				time information MUST infer this from available busy time
				information.
			</t>
          </list>
        </t>
        <t>When the Request-URI for a CALDAV:free-busy-query REPORT is a 
          calendar collection, the free-busy data is implicitly 
          determined from the calendar object resources containing VEVENT
          and VFREEBUSY components
          within the calendar collection, irrespective of the value of any 
          Depth header included in the REPORT request. Only calendar object
          resources containing VEVENT or VFREEBUSY components that
          have the CALDAV:read-free-busy privilege granted to the
          current user will be computed in the response.</t>

        <t>When the Request-URI for a CALDAV:free-busy-query REPORT is a 
          non-calendar collection, the scope of the report is 
          governed by the value of the Depth header in the request as 
          follows:
          <list>
          	<t>Depth: 0 - an empty VFREEBUSY 
          component will be returned as there is no valid calendar 
          data to be scanned on the collection.</t>
          
          <t>Depth: 1 - free-busy data for any calendar collections 
          immediately within the target collection is returned.</t> 
          
          <t>Depth: infinity - free-busy data for all calendar 
          collections within any sub-collections of the target 
          collection is returned.</t>
          </list>
        </t>
        <t>Note that as per the requirements of <xref target="recurringreports" />
        the server MUST expand any recurring items to determine whether any instances
        contribute to the free busy information in the requested time range.</t>

        <t>Preconditions:
          <list>
            <t>
              None.
            </t>
          </list>
        </t>
        <t>Postconditions:
          <list>
            <t>
              (DAV:number-of-matches-within-limits): The number of matching
              calendar object resources must fall within server-specific,
              predefined limits. For example, this condition might be
              triggered if a search specification would cause the return
              of an extremely large number of responses.
            </t>
          </list>
        </t>

        <section title="Example: CALDAV:free-busy-query Report">
          <t>In this example, the client requests the server to 
            return free-busy information on the calendar collection 
            /home/bernard/calendar/, between 9:00 AM and 5:00 PM on 2nd 
            September 2004. The server responds indicating three 
            busy time intervals of one hour, two hours and 30 minutes 
            during the course of the time interval being examined.</t>
          <figure>
            <preamble>&gt;&gt; Request &lt;&lt;</preamble>
            <artwork><![CDATA[
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:free-busy-query xmlns:C="urn:ietf:params:xml:ns:caldav">
  <C:time-range start="20040902T090000Z"
                  end="20040902T170000Z"/>
</C:free-busy-query>
      ]]></artwork>
          </figure>
          <figure>
            <preamble>&gt;&gt; Response &lt;&lt;</preamble>
            <artwork><![CDATA[
HTTP/1.1 207 Multi-Status
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:"
               xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:response>
    <D:href>http://cal.example.com/home/bernard/calendar/</D:href>
    <D:status>HTTP/1.1 200 OK</D:status>
    <C:calendar-data>BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VFREEBUSY
DTSTAMP:20050125T090000Z
DTSTART:20040902T090000Z
DTEND:20040902T170000Z
FREEBUSY:20040902T090000Z/PT1H,
 20040902T120000Z/PT2H,
 20040902T160000Z/PT30M
END:VFREEBUSY 
END:VCALENDAR
</C:calendar-data>
  </D:response>
</D:multistatus>
      ]]></artwork>
          </figure>
        </section><!-- Example: free-busy-query -->
      </section><!-- free-busy-query -->
    </section><!-- Calendaring Reports -->
  
  <section title="Guidelines">
    
    <section title="Client-to-client Interoperability">
        <t>There are a number of actions clients can take which will be legal
          (the server will not return errors) but which can degrade interoperability
          with other client implementations accessing the same data.  For example,
          a recurrence rule could be replaced with a set of recurrence dates,
          a single recurring event could be replaced with a set of independent
          resources to represent each recurrence, or the start/end time values can
          be translated from the original timezone to another timezone.  Although
          these are iCalendar interoperability best practices and not limited 
          only to CalDAV usage, interoperability problems are likely to be more
          evident in CalDAV use cases. </t>
    </section>
    
    <section title="Sychronization Operations">
      <t>WebDAV already provides functionality required to synchronize a 
        collection or set of collections, make changes offline, and a 
        simple way to resolve conflicts when reconnected. Strong ETags 
        are the key to making this work, but these are not required of 
        all WebDAV servers. Since offline functionality is more 
        important to Calendar applications than to other WebDAV 
        applications, CalDAV servers MUST support strong ETags. </t>
      <section title='Use of Reports'>
        <section title='Restrict the Time Range'>
          <t>The reports provided in CalDAV can be used by clients to 
            optimize their performance in terms of network 
            bandwidth usage, and resource consumption on the local 
            client machine. Both of those issues are certainly 
            major considerations for mobile or handheld devices 
            with limited capacity, but they are also relevant to 
            desktop client applications in cases where the 
            calendar collections contain large amounts of data.</t>
          <t>Typically clients present calendar data to users in 
            views that span a finite time interval, so whenever 
            possible clients should only retrieve calendar items 
            from the server using CALDAV:calendar-query report combined 
            with a time-range element to limit the scope of 
            returned items to just those needed to populate the 
            current view.</t>
        </section>
        <section title='Synchronize by Time Range'>
          <t>Typically in a calendar, historical data (events, to-dos 
            etc. that have completed prior to the current date) do 
            not change, though they may be deleted. As a result, a 
            client can speed up the synchronization process by only 
            considering data for the present time and the future 
            up to a reasonable limit (e.g., one week, one month). If 
            the user then tries to examine a portion of the 
            calendar outside of the range that has been 
            synchronized, the client can perform another 
            synchronization operation on the new time interval being 
            examined. This "just-in-time" synchronization can 
            minimize bandwidth for common user interaction 
            behaviors.</t>
        </section>
        <section title='Synchronization Process'>
          <t>If a client wants to support calendar data 
            synchronization, as opposed to downloading calendar 
            data each time it is needed, it needs to cache the 
            component resources URI and ETag along with the 
            actual calendar data. Whilst the URI remains static for 
            the lifetime of the component, the ETag will change 
            with each successive change to the component data. Thus 
            to synchronize a local data cache with the server, the 
            client can first fetch the URI/ETag pairs for the time 
            interval being considered, and compare those results with 
            the cached data. Any cached component whose ETag 
            differs from that on the server needs to be 
            synchronized.</t>
          <t>In order to properly detect the changes between the 
            server and client data, the client will need to keep a 
            record of which items have been created, changed or 
            deleted since the last synchronization operation so 
            that it can reconcile those changes with the data on 
            the server.</t>
          <t>An example of how to do that would be the following: 
            <list> <t/> <t>The client issues a 
            CALDAV:calendar-query REPORT request for a specific time 
            range, and asks for only the DAV:getetag property to be 
            returned:
            <figure><artwork><![CDATA[  
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:D="DAV:"
                  xmlns:C="urn:ietf:params:xml:ns:caldav">
 <D:prop>
   <D:getetag/>
 </D:prop>
 <C:filter>
   <C:comp-filter name="VCALENDAR">
     <C:comp-filter name="VEVENT">
       <C:time-range start="20040902T000000Z"
                     end="20040903T000000Z"/>
     </C:comp-filter>
   </C:comp-filter>
 </C:filter>
</C:calendar-query>
]]></artwork></figure> </t>
            <t>The client then uses the results to 
            determine which components have changed, been created 
            or deleted on the server and how those relate to 
            locally cached components that may have changed, been 
            created or deleted. If the client determines that there 
            are items on the server that need to be fetched, the 
            client issues a CALDAV:calendar-multiget report to fetch the 
            actual data: <figure><artwork><![CDATA[  
REPORT /home/bernard/calendar/ HTTP/1.1
Host: cal.example.com
Depth: 1
Content-Type: text/xml; charset="utf-8"
Content-Length: xxxx

<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-multiget xmlns:D="DAV:"
                     xmlns:C="urn:ietf:params:xml:ns:caldav">
 <D:prop>
   <D:getetag/>
 </D:prop>
 <C:calendar-data>
   <C:comp name="VCALENDAR">
   <C:allprop/>
   <C:comp name="VEVENT">
     <C:prop name="UID"/>
     <C:prop name="DTSTART"/>
     <C:prop name="DTEND"/>
     <C:prop name="DURATION"/>
     <C:prop name="EXDATE"/>
     <C:prop name="EXRULE"/>
     <C:prop name="RDATE"/>
     <C:prop name="RRULE"/>
     <C:prop name="LOCATION"/>
     <C:prop name="SUMMARY"/>
   </C:comp>
   <C:comp name="VTIMEZONE">
     <C:allprop/>
     <C:allcomp/>
   </C:comp>
   </C:comp>
 </C:calendar-data>
 <D:href
>http://cal.example.com/home/bernard/calendar/evt1.ics</D:href>
 <D:href
>http://cal.example.com/home/bernard/calendar/mtg1.ics</D:href>
</C:calendar-multiget>
      ]]></artwork></figure> </t> </list> </t>
        </section><!-- Synchronization Process -->
      </section><!-- Use of Reports -->
      <section title='Restrict the Properties Returned'>
        <t>Clients may not need all the properties in a calendar 
          component when presenting information to the user. Since 
          some property data can be large (e.g., ATTACH or 
          ATTENDEE lists) clients can choose to ignore those by 
          only requesting the specific items it knows it will use, 
          through use of the CALDAV:calendar-data XML element in the 
          relevant reports.</t>
        <t>However, if a client needs to make a change to a component, 
          it can only change the entire component data via a PUT 
          request. There is no way to incrementally make a change to 
          a set of properties within a calendar component resource. 
          As a result the client will have to cache the entire set of 
          properties on a resource that is being changed.</t>
      </section>

  
    </section><!-- Synchronization Operations -->

    <section title="Use of Locking">
      <t>WebDAV locks can be used to prevent two clients modifying the
      same resource from either overwriting each others' changes
      (though that problem can also be solved by using ETags) and
      also to prevent the user from making changes that will conflict
      with another set of changes. In a multi-user calendar system, the calendar
      client could lock an event while the user is editing the event,
      and unlock the event when the user finishes or cancels.  Locks
      can also be used to prevent changes while data is being
      reorganized.  For example, a calendar client might lock two
      calendar collections prior to moving a bunch of calendar
      resources from one to another.
      </t>

      <t>Clients may request a lock timeout period that is appropriate
      to the use case.  When the user explicitly decides to reserve
      a resource and prevent other changes, a long timeout might be
      appropriate, but in cases when the client automatically decides
      to lock the resource the timeout should be short (and the client
      can always refresh the lock should it need to).  A short lock
      timeout means that if the client is unable to remove the lock,
      the other calendar users aren't prevented from making changes.</t>

    </section>
    
    <section title="Finding calendars">
      <t>Much of the time a calendar client (or agent) will discover
        a new calendar's location by being provided directly with the
        URL.  E.g. a user will type his or her own calendar location into 
        client configuration information, or cut and paste a URL from
      email into the calendar application. The client need only confirm
      that the URL points to a resource which is a calendar.  The client
      may also be able to browse WebDAV collections to find calendar
      collections.</t>
      
		<t>The choice of HTTP URLs means that calendar object resources are
			backward compatible with existing software, but does have the
			disadvantage that existing software does not usually know to look at
			the OPTIONS response to that URL to determine what can be done with it.
			This is somewhat of a barrier for WebDAV usage as well as with CalDAV
			usage. This specification does not offer a way through this other than
			making the information available in the OPTIONS response should this
			be requested.</t>
      
      <t>For calendar sharing and scheduling use cases, one might wish to
        find the calendar belonging to another user.  If the other user has
        a calendar in the same repository, that calendar can be found by using the 
        principal namespace required by WebDAV ACL support.  For other cases,
        the authors have no universal solution but implementors can consider
        whether to use <xref target="RFC2426">vCard</xref> or <xref 
          target="RFC2251">LDAP</xref> standards together with <xref 
          target="RFC2739">calendar attributes</xref>.</t>
    
    </section>
    
  </section>
    
    <section title='XML Element Definitions'>

      <section anchor="calendar_query_element" 
        title="CALDAV:calendar-query XML Element">
        <t>
          <list style="hanging">
            <t hangText="Name:">calendar-query</t>
            <t hangText="Namespace:"> 
              urn:ietf:params:xml:ns:caldav</t>
            <t hangText="Purpose:">Defines a report for querying 
              calendar data</t>
            <t hangText="Description:">See <xref 
              target='calendar-query'/>.</t>
          </list>
        </t>
        <figure>
          <artwork><![CDATA[
<!ELEMENT calendar-query (DAV:allprop | DAV:propname | DAV:prop)?
                         calendar-data? filter>
    ]]></artwork>
        </figure>
    </section>

      <section title="CALDAV:calendar-data-only XML Element">
        <t>
          <list style="hanging">
            <t hangText="Name:">
              calendar-data-only
            </t>
            <t hangText="Namespace:"> 
              urn:ietf:params:xml:ns:caldav
            </t>
            <t hangText="Purpose:">
              Specifies that only calendar object resources may
              be contained in a calendar collection.
            </t>
            <t hangText="Description:">
              The CALDAV:calendar-data-only element MUST be
              specified in the CALDAV:calendar-restrictions
              property of calendar collection that only provide
              support for calendar object resources.
            </t>
          </list>
        </t>
        <figure>
          <artwork>
            <![CDATA[
<!ELEMENT calendar-data-only EMPTY>
            ]]>
          </artwork>
        </figure>
    </section>

        <section anchor="calendar_data_element" 
          title="CALDAV:calendar-data XML Element">
          <t>
            <list style="hanging">
              <t hangText="Name:">calendar-data</t>
              <t hangText="Namespace:"> 
                urn:ietf:params:xml:ns:caldav</t>
              <t hangText="Purpose:">Used to define which parts 
                of a calendar component object should be 
                returned by the report that uses this 
                element.</t>
              <t hangText="Description:">When used in a request, 
                the CALDAV:calendar-data element specifies the 
                iCalendar components and properties to be 
                returned in the iCalendar objects part of the 
                response. If this element doesn't contain any 
                CALDAV:comp element, iCalendar objects will be 
                returned with all their components and 
                properties.</t>
              <t hangText="Value:">When used inside a 
                response, the CALDAV:calendar-data element contains 
                an iCalendar object that matched the search 
                filter specified in the request.</t>
            </list>
          </t>
          <figure>
            <artwork><![CDATA[
<!ELEMENT calendar-data ((comp?, (expand-recurrence-set |
                                  limit-recurrence-set)?) |
                          #PCDATA)?>

<!ATTLIST calendar-data content-type CDATA "text/calendar">

<!ATTLIST calendar-data version CDATA "2.0">
    ]]></artwork>
          </figure>

          <section anchor="comp_element" title="CALDAV:comp XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:">comp</t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav</t>
                <t hangText="Purpose:">Defines which component 
                  types to return</t>
                <t hangText="Description:">The name value is a
                  calendar component name (e.g., "VEVENT")</t>
              </list>
            </t>
            <t>NOTE: The CALDAV:prop and CALDAV:allprop elements used
              here have the same name as elements defined in WebDAV. 
              However, the elements used here have the 
              "urn:ietf:params:xml:ns:caldav" namespace, as 
              opposed to the "DAV:" namespace used for elements 
              defined in WebDAV.</t>
            <figure>
              <artwork><![CDATA[
<!ELEMENT comp ((allcomp, (allprop | prop*)) |
                 (comp*, (allprop | prop*)))>

<!ATTLIST comp name CDATA #REQUIRED>
    ]]></artwork>
            </figure>
          </section>

            <section anchor="allcomp_element" 
              title="CALDAV:allcomp XML Element">
              <t>
                <list style="hanging">
                  <t hangText="Name:">allcomp</t>
                  <t hangText="Namespace:"> 
                    urn:ietf:params:xml:ns:caldav</t>
                  <t hangText="Purpose:">Specifies that all 
                    components shall be returned</t>
                  <t hangText="Description:">This element can 
                    be used when the client wants all types 
                    of components returned by a report.</t>
                </list>
              </t>
              <figure>
                <artwork><![CDATA[
<!ELEMENT allcomp EMPTY>
    ]]></artwork>
              </figure>
            </section><!-- allcomp -->
            <section anchor="allprop_element" 
              title="CALDAV:allprop XML Element">
              <t>
                <list style="hanging">
                  <t hangText="Name:">allprop</t>
                  <t hangText="Namespace:"> 
                    urn:ietf:params:xml:ns:caldav</t>
                  <t hangText="Purpose:">Specifies that all 
                    properties shall be returned.</t>
                  <t hangText="Description:">This element can 
                    be used when the client wants all 
                    properties of components returned by a 
                    report.</t>
                </list>
              </t>
              <t>NOTE: The CALDAV:allprop element defined here has the 
                same name as the DAV:allprop element defined in 
                WebDAV. However, the CALDAV:allprop element defined 
                here uses the "urn:ietf:params:xml:ns:caldav" 
                namespace, as opposed to the "DAV:" namespace 
                used for the DAV:allprop element defined in 
                WebDAV.</t>
              <figure>
                <artwork><![CDATA[
<!ELEMENT allprop EMPTY>
    ]]></artwork>
              </figure>
            </section><!-- allprop -->
            <section anchor="prop_element" title="CALDAV:prop XML Element">
              <t>
                <list style="hanging">
                  <t hangText="Name:">prop</t>
                  <t hangText="Namespace:"> 
                    urn:ietf:params:xml:ns:caldav</t>
                  <t hangText="Purpose:">Defines which 
                    properties to return in the 
                    response.</t>
                  <t hangText="Description:">The "name" 
                    attribute specifies the name of the 
                    calendar property to return (e.g.,
                    "ATTENDEE"). The "novalue" attribute 
                    can be used by clients to request that 
                    the actual value of the property not be 
                    returned (if the "novalue" attribute is 
                    set to "yes"). In that case the server 
                    will return just the iCalendar property 
                    name and any iCalendar parameters and a 
                    trailing ":" without the subsequent 
                    value data.
                  </t>
                </list>
              </t>
              <t>NOTE: The CALDAV:prop element defined here has the 
                same name as the DAV:prop element defined in 
                WebDAV. However, the CALDAV:prop element defined 
                here uses the "urn:ietf:params:xml:ns:caldav" 
                namespace, as opposed to the "DAV:" namespace 
                used for the DAV:prop element defined in 
                WebDAV.</t>
              <figure>
                <artwork><![CDATA[
<!ELEMENT prop EMPTY>
    
<!ATTLIST prop name CDATA #REQUIRED
               novalue (yes|no) "no">
    ]]></artwork>
              </figure>
            </section><!-- prop -->

          <section anchor="expand_recurrence_set_element" 
            title="CALDAV:expand-recurrence-set XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:"> expand-recurrence-set</t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav</t>
                <t hangText="Purpose:">Forces the server to 
                  expand recurring components into separate 
                  instances.</t>
                <t hangText="Description:">The 
                  CALDAV:expand-recurrence-set element specifies 
                  that recurring components shall be returned 
                  as individual components with no recurrence 
                  properties (i.e., EXDATE, EXRULE, RDATE and 
                  RRULE). The required "start" and "end" 
                  attributes contain iCalendar format 
                  DATE-TIME (always specified in UTC) or DATE 
                  values that define the time interval over 
                  which the recurrence expansion should take 
                  place. The start value is inclusive and the 
                  end value is exclusive of the interval as per 
                  iCalendar DTSTART and DTEND properties. The 
                  server MUST return only those expanded 
                  components whose time interval intersects 
                  the interval specified by the start and end 
                  attributes.</t>
              </list>
            </t>
            <figure>
              <artwork><![CDATA[
<!ELEMENT expand-recurrence-set EMPTY>
<!ATTLIST expand-recurrence-set start CDATA #REQUIRED
                                end CDATA #REQUIRED>
    ]]></artwork>
            </figure>
          </section><!-- expand-recurrence-set -->

          <section anchor="limit_recurrence_set_element" 
            title="CALDAV:limit-recurrence-set XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:">
                  limit-recurrence-set
                </t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav
                </t>
                <t hangText="Purpose:">
                  Specifies a time range to limit the set of recurrence
                  instances returned by the server.
                </t>
                <t hangText="Description:">
                  The CALDAV:limit-recurrence-set XML element specifies
                  that a server MUST only return information about the
                  recurrence instances whose scheduled time intersect a
                  specified time range for a given calendaring REPORT
                  request. The required "start" and "end" attributes
                  specify DATE or DATE-TIME iCalendar values in UTC that
                  defines the actual time range. The server MUST use the
                  same logic as defined for CALDAV:time-range to determine
                  if a recurrence instance intersect a given time range.
                </t>
                <t hangText="Definition:">
                  <figure>
                    <artwork><![CDATA[
    <!ELEMENT limit-recurrence-set EMPTY>
    <!ATTLIST limit-recurrence-set start CDATA #REQUIRED
                                   end CDATA #REQUIRED>
                    ]]></artwork>
                  </figure>
                </t>
              </list>
            </t>
          </section><!-- limit-recurrence-set -->

        </section>
        <section anchor="filter_element" title="CALDAV:filter XML Element">
          <t>
            <list style="hanging">
              <t hangText="Name:">filter</t>
              <t hangText="Namespace:"> 
                urn:ietf:params:xml:ns:caldav</t>
              <t hangText="Purpose:">Determines which matching 
                components are returned.</t>
              <t hangText="Description:">The "filter" element 
                specifies the search filter used to match 
                components that should be returned by a 
                report.</t>
            </list>
          </t>
          <figure>
            <artwork><![CDATA[
<!ELEMENT filter comp-filter>
    ]]></artwork>
          </figure>
          <section anchor="comp_filter_element" title="CALDAV:comp-filter XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:">comp-filter</t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav</t>
                <t hangText="Purpose:">Limits the search to 
                  only the chosen component types.</t>
                <t hangText="Description:">The "name" attribute 
                  is a calendar component type (e.g.,
                  "VEVENT"). When this element is present, 
                  the server should only return a component 
                  if it matches the filter, which is to say: 
                  <figure><artwork><![CDATA[
("no is-defined element" OR "is-defined matches") AND
("no time-range element" OR "time-range matches") AND
("no sub-component filter" OR "all sub-component filters match") AND
("no property filter elements" OR "all property filters match")
      ]]></artwork></figure> </t>
              </list>
            </t>
            <figure>
              <artwork><![CDATA[
<!ELEMENT comp-filter (is-defined | time-range)?
                      comp-filter* prop-filter*>

<!ATTLIST comp-filter name CDATA #REQUIRED>
    ]]></artwork>
            </figure>
          </section><!-- comp-filter -->
          <section anchor="prop_filter_element" title="CALDAV:prop-filter XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:">prop-filter</t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav</t>
                <t hangText="Purpose:">Limits the search to 
                  specific properties.</t>
                <t hangText="Description:">The "name" attribute 
                  MUST contain an iCalendar property name 
                  (e.g., "ATTENDEE"). When the CALDAV:prop-filter
                  executes, a property matches if: 
                  <figure><artwork><![CDATA[
("no is-defined element" OR "is-defined matches") AND
("no time-range element" OR "time-range matches") AND
("no text match element" OR "text-match matches") AND
("no parameter filter elements" OR "all parameter filters match")
      ]]></artwork></figure> </t>
              </list>
            </t>
            <figure>
              <artwork><![CDATA[
<!ELEMENT prop-filter (is-defined | time-range | text-match)?
                        param-filter*>
   
<!ATTLIST prop-filter name CDATA #REQUIRED>
    ]]></artwork>
            </figure>
          </section><!-- prop-filter -->
          <section anchor="param_filter_element" title="CALDAV:param-filter XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:">param-filter</t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav</t>
                <t hangText="Purpose:">Limits the search to 
                  specific parameters.</t>
                <t hangText="Description:">The "param-filter" 
                  element limits the search result to the set 
                  of resources containing properties with 
                  parameters that meet the parameter filter 
                  rules. When this filter executes, a 
                  parameter matches if: <figure><artwork><![CDATA[
("is-defined matches" OR "text-match matches")
      ]]></artwork></figure> </t>
              </list>
            </t>
            <figure>
              <artwork><![CDATA[
<!ELEMENT param-filter (is-defined | text-match) >
   
<!ATTLIST param-filter name CDATA #REQUIRED>
    ]]></artwork>
            </figure>
          </section><!-- param-filter -->
          <section title="CALDAV:is-defined XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:">is-defined</t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav</t>
                <t hangText="Purpose:">Causes a search to match 
                  a resource if a component type, property or 
                  parameter name exists.</t>
                <t hangText="Description:">The CALDAV:is-defined
                  XML element limits the filter to resources 
                  where the named component, property or 
                  parameter is defined.</t>
              </list>
            </t>
            <figure>
              <artwork><![CDATA[
<!ELEMENT is-defined EMPTY>
    ]]></artwork>
            </figure>
          </section><!-- is-defined -->
          <section title="CALDAV:text-match XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:">text-match</t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav</t>
                <t hangText="Purpose:">Specifies a substring 
                  match on a property or parameter value.</t>
                <t hangText="Description:">The specified text 
                  is used for a substring match against the 
                  property or parameter value specified in a 
                  report. The "caseless" attribute indicates 
                  whether the match is case-sensitive (value 
                  set to "no") or case-insensitive (value set 
                  to "yes"). The default value is 
                  server-specified. Caseless matching SHOULD 
                  be implemented as defined in section 5.18 
                  of the Unicode Standard (<xref target="UNICODE4"/>). 
                  Support for the "caseless" attribute is 
                  optional. A server should respond with a 
                  status of 422 if it is used but cannot be 
                  supported.</t>
              </list>
            </t>
            <figure>
              <artwork><![CDATA[
<!ELEMENT text-match #PCDATA>

<!ATTLIST text-match caseless (yes|no)>    
    ]]></artwork>
            </figure>
          </section><!-- text-match -->
        </section>

          <section anchor="time_range_element" title="CALDAV:time-range XML Element">
            <t>
              <list style="hanging">
                <t hangText="Name:">time-range</t>
                <t hangText="Namespace:"> 
                  urn:ietf:params:xml:ns:caldav</t>
                <t hangText="Purpose:">Specifies a time interval
                  for testing components against.</t>
                <t hangText="Description:">The CALDAV:time-range
                  element allows for a single time range to 
                  be defined, in order to limit all the 
                  results of the search to the set of 
                  resources that contain a component which 
                  overlap that time range. The value of 
                  the "start" and "end" attributes MUST 
                  follow the syntax of the DATE or DATE-TIME 
                  iCalendar value type, with any time 
                  specified in UTC.
                  While the "start" and "end" attributes are
                  not required to allow time ranges opened at
                  one end, at least one of them MUST be specified
                  in the CALDAV:time-range element.  
                </t>
      <t>
        <cref source="desruisseaux">
          We need to clarify the logic when the DTSTART, DTEND,
          DURATION, or DUE properties are not defined in the
          calendar component.
        </cref>
      </t>
                <t> A VEVENT component overlaps a given 
                  time-range if: <figure> <artwork><![CDATA[
(DTSTART <= start AND DTEND > start) OR
(DTSTART <= start AND DTSTART+DURATION > start) OR
(DTSTART >= start AND DTSTART < end) OR
(DTEND   > start AND DTEND <= end)
      ]]></artwork> </figure> </t>
                <t> A VTODO component overlaps a given 
                  time-range if: <figure> <artwork><![CDATA[
(DTSTART <= start AND DUE >= start) OR
(DTSTART <= start AND DTSTART+DURATION > start) OR
(DTSTART >= start AND DTSTART < end) OR
(DUE     >= start AND DUE < end)
      ]]></artwork> </figure> </t>
                <t> A VJOURNAL component overlaps a given 
                  time-range if: <figure> <artwork><![CDATA[
DTSTART >= start AND DTSTART < end
      ]]></artwork> </figure> </t>
                <t> A VALARM component overlaps a given 
                  time-range if: <figure> <artwork><![CDATA[
trigger-time >= start AND trigger-time < end
      ]]></artwork> </figure> </t>
                <t> Any property of value type DATE-TIME or 
                  DATE (e.g., DTSTAMP) will match a given 
                  time-range if: <figure> <artwork><![CDATA[
value >= start AND value < end
      ]]></artwork> </figure> </t>
              </list>
            </t>
            <figure>
              <artwork><![CDATA[
<!ELEMENT time-range EMPTY>
    
<!ATTLIST time-range start CDATA
                     end CDATA>  
    ]]></artwork>
            </figure>
          </section><!-- time-range -->

      <section anchor="response_element" title="DAV:response XML Element">
        <t>
          <list style="hanging">
            <t hangText="Name:">response</t>
            <t hangText="Namespace:"> DAV:</t>
            <t hangText="Purpose:">Response that includes calendar 
              data.</t>
            <t hangText="Description:">Modifies the standard WebDAV 
              response element to include calendar data in the 
              response if required by the report type.</t>
          </list>
        </t>
        <figure>
          <artwork><![CDATA[
<!ELEMENT DAV:response (DAV:href,
                        ((DAV:href*, DAV:status)|(DAV:propstat+)),
                        calendar-data?,
                        DAV:responsedescription?) >
    ]]></artwork>
        </figure>
      </section><!-- DAV:response -->

      <section anchor="calendar_multiget_element" 
        title="CALDAV:calendar-multiget XML Element">
        <t>
          <list style="hanging">
            <t hangText="Name:">calendar-multiget</t>
            <t hangText="Namespace:"> 
              urn:ietf:params:xml:ns:caldav</t>
            <t hangText="Purpose:">CalDAV report used to retrieve 
              specific calendar component items via their 
              URIs.</t>
            <t hangText="Description:">See <xref 
              target='calendar-multiget'/>.</t>
          </list>
        </t>
        <figure>
          <artwork><![CDATA[
<!ELEMENT calendar-multiget (DAV:allprop | DAV:propname | DAV:prop)?
                        calendar-data? DAV:href+>
    ]]></artwork>
        </figure>
      </section><!-- calendar-multiget -->

      <section anchor="free_busy_query_element"
              title="CALDAV:free-busy-query XML Element">
        <t>
          <list style="hanging">
            <t hangText="Name:">free-busy-query</t>
            <t hangText="Namespace:"> 
              urn:ietf:params:xml:ns:caldav</t>
            <t hangText="Purpose:">CalDAV report used to generate a 
              VFREEBUSY to determine busy time over a specific 
              set of time ranges.</t>
            <t hangText="Description:">See <xref 
              target="free-busy-query"/>.</t>
          </list>
        </t>
        <figure>
          <artwork><![CDATA[
<!ELEMENT free-busy-query time-range+ >
    ]]></artwork>
        </figure>
      </section><!-- free-busy-query -->
    </section><!-- XML Element Definitions -->

  <section title='Internationalization Considerations'>
  </section>

  <section title="Security Considerations">

    <t>
      HTTP protocol transactions are sent in the clear over the
      network unless protection from snooping is negotiated. This
      can be accomplished by use of TLS as defined in 
      <xref target="RFC2818">RFC2818</xref>.
      In particular, HTTP Basic authentication MUST NOT be used
      unless TLS is in effect. 
    </t>

    <t>
      Servers MUST take adequate precautions to ensure malicious 
      clients cannot consume excessive server resources (CPU, memory, 
      disk, etc.) through carefully crafted reports. For example, a 
      client could upload an event with a recurrence rule that 
      specifies a recurring event occurring every second for the next 
      100 years which would result in approximately 3 x 10^9 
      instances! A report that asks for recurrences to be expanded 
      over that range would likely constitute a denial-of-service 
      attack on the server.
    </t>

    <t>
      <cref source="desruisseaux">
        We should make an explicit reference to the security
        considerations mentionned in iCalendar, iTIP and iMIP.
      </cref>
    </t>

  </section><!-- Security Considerations -->

    <section title='IANA Consideration' anchor='IANA'>
      <t>In addition to the namespaces defined by <xref 
        target="RFC2518">RFC2518</xref> for XML elements, this document 
        uses a URN to describe a new XML namespace conforming to a 
        registry mechanism described in <xref 
        target="RFC3688">RFC3688</xref>. All other IANA considerations 
        mentioned in <xref target="RFC2518">RFC2518</xref> also apply 
        to this document.</t>
      <section title='Namespace Registration' anchor='ns.registration'>
        <t>Registration request for the CalDAV namespace: </t>
        <t>URI: urn:ietf:params:xml:ns:caldav </t>
        <t>Registrant Contact: See the "Author's Address" section of 
          this document. </t>
        <t>XML: None. Namespace URIs do not represent an XML 
          specification. </t>
      </section><!-- ns.registration -->
    </section><!-- IANA -->
    <section title="Acknowledgements">
      <t>The authors would like to thank the following individuals
        for contributing their ideas and support for writing this
        specification: Michael Arick, Mario Bonin, Chris Bryant,
        Scott Carr, Mike Douglass, Helge Hess, Dan Mosedale,
        Kervin L. Pierre, Julian F. Reschke, Mike Shaver,
        Simon Vaillancourt, and Jim Whitehead.
      </t>
      <t>The authors would also like to thank the Calendaring and
        Scheduling Consortium for advice with this specification,
        and for organizing interoperability testing events to help
        refine it.
      </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="16553" target="http://xml.resource.org/public/rfc/html/rfc2119.html"/>
<format type="XML" octets="5703" target="http://xml.resource.org/public/rfc/xml/rfc2119.xml"/>
</reference>

  

<reference anchor="RFC2246">

<front>
<title>The TLS Protocol Version 1.0</title>
<author initials="T." surname="Dierks" fullname="Tim Dierks">
<organization>Certicom</organization>
<address>
<email>tdierks@certicom.com</email></address></author>
<author initials="C." surname="Allen" fullname="Christopher Allen">
<organization>Certicom</organization>
<address>
<email>callen@certicom.com</email></address></author>
<date year="1999" month="January"/>
<abstract>
<t>This document specifies Version 1.0 of the Transport Layer Security (TLS) protocol. The TLS protocol provides communications privacy over the Internet. The protocol allows client/server applications to communicate in a way that is designed to prevent eavesdropping, tampering, or message forgery.</t></abstract></front>

<seriesInfo name="RFC" value="2246"/>
<format type="TXT" octets="170401" target="ftp://ftp.isi.edu/in-notes/rfc2246.txt"/>
</reference>

  

<reference anchor="RFC2445">

<front>
<title abbrev="iCalendar">Internet Calendaring and Scheduling Core Object Specification (iCalendar)</title>
<author initials="F." surname="Dawson" fullname="Frank Dawson">
<organization>Lotus Development Corporation</organization>
<address>
<postal>
<street>6544 Battleford Drive</street>
<city>Raleigh</city>
<region>NC</region>
<code>27613-3502</code>
<country>USA</country></postal>
<phone>+1-919-676-9515</phone>
<facsimile>+1-919-676-9564</facsimile>
<email>Frank_Dawson@Lotus.com</email>
<uri>http://home.earthlink.net/~fdawson</uri></address></author>
<author initials="D." surname="Stenerson" fullname="Derik Stenerson">
<organization>Microsoft Corporation</organization>
<address>
<postal>
<street>One Microsoft Way</street>
<city>Redmond</city>
<region>WA</region>
<code>98052-6399</code>
<country>USA</country></postal>
<phone>+1-425-936-5522</phone>
<facsimile>+1-425-936-7329</facsimile>
<email>deriks@Microsoft.com</email></address></author>
<author>
<organization/></author>
<author>
<organization/></author>
<date year="1998" month="November"/>
<area>Applications</area>
<keyword>calendaring</keyword>
<keyword>scheduling</keyword>
<keyword>PIM</keyword>
<abstract>
<t>
   There is a clear need to provide and deploy interoperable calendaring
   and scheduling services for the Internet. Current group scheduling
   and Personal Information Management (PIM) products are being extended
   for use across the Internet, today, in proprietary ways. This memo
   has been defined to provide the definition of a common format for
   openly exchanging calendaring and scheduling information across the
   Internet.
</t>
<t>
   This memo is formatted as a registration for a MIME media type per
   . However, the format in this memo is equally applicable
   for use outside of a MIME message content type.
</t>
<t>
   The proposed media type value is 'text/calendar'. This string would
   label a media type containing calendaring and scheduling information
   encoded as text characters formatted in a manner outlined below.
</t>
<t>
   This MIME media type provides a standard content type for capturing
   calendar event, to-do and journal entry information. It also can be
   used to convey free/busy time information. The content type is
   suitable as a MIME message entity that can be transferred over MIME
   based email systems, using HTTP or some other Internet transport. In
   addition, the content type is useful as an object for interactions
   between desktop applications using the operating system clipboard,
   drag/drop or file systems capabilities.
</t>
<t>
   This memo is based on the earlier work of the vCalendar specification
   for the exchange of personal calendaring and scheduling information.
   In order to avoid confusion with this referenced work, this memo is
   to be known as the iCalendar specification.
</t>
<t>
   This memo defines the format for specifying iCalendar object methods.
   An iCalendar object method is a set of usage constraints for the
   iCalendar object. For example, these methods might define scheduling
   messages that request an event be scheduled, reply to an event
   request, send a cancellation notice for an event, modify or replace
   the definition of an event, provide a counter proposal for an
   original event request, delegate an event request to another
   individual, request free or busy time, reply to a free or busy time
   request, or provide similar scheduling messages for a to-do or
   journal entry calendar component. The iCalendar Transport-indendent
   Interoperability Protocol (iTIP) defined in  is one such
   scheduling protocol.
</t></abstract></front>

<seriesInfo name="RFC" value="2445"/>
<format type="TXT" octets="291838" target="ftp://ftp.isi.edu/in-notes/rfc2445.txt"/>
<format type="HTML" octets="323537" target="http://xml.resource.org/public/rfc/html/rfc2445.html"/>
<format type="XML" octets="305481" target="http://xml.resource.org/public/rfc/xml/rfc2445.xml"/>
</reference>

  

<reference anchor="RFC2518">

<front>
<title abbrev="WEBDAV">HTTP Extensions for Distributed Authoring -- WEBDAV</title>
<author initials="Y." surname="Goland" fullname="Y. Y. Goland">
<organization abbrev="Microsoft">Microsoft Corporation</organization>
<address>
<postal>
<street>One Microsoft Way</street>
<city>Redmond</city>
<region>WA</region>
<code>98052-6399</code></postal>
<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>
<postal>
<street/>
<city>Irvine</city>
<region>CA</region>
<code>92697-3425</code></postal>
<email>ejw@ics.uci.edu</email></address></author>
<author initials="A." surname="Faizi" fullname="A. Faizi">
<organization abbrev="Netscape">Netscape</organization>
<address>
<postal>
<street>685 East Middlefield Road</street>
<city>Mountain View</city>
<region>CA</region>
<code>94043</code></postal>
<email>asad@netscape.com</email></address></author>
<author initials="S.R." surname="Carter" fullname="S. R. Carter">
<organization abbrev="Novell">Novell</organization>
<address>
<postal>
<street>1555 N. Technology Way</street>
<street>M/S ORM F111</street>
<city>Orem</city>
<region>UT</region>
<code>84097-2399</code></postal>
<email>srcarter@novell.com</email></address></author>
<author initials="D." surname="Jensen" fullname="D. Jensen">
<organization abbrev="Novell">Novell</organization>
<address>
<postal>
<street>1555 N. Technology Way</street>
<street>M/S ORM F111</street>
<city>Orem</city>
<region>UT</region>
<code>84097-2399</code></postal>
<email>dcjensen@novell.com</email></address></author>
<date year="1999" month="February"/>
<abstract>
<t>
       This document specifies 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, namespace
       manipulation, and resource locking (collision avoidance).
      </t></abstract></front>

<seriesInfo name="RFC" value="2518"/>
<format type="TXT" octets="202829" target="ftp://ftp.isi.edu/in-notes/rfc2518.txt"/>
<format type="HTML" octets="303525" target="http://xml.resource.org/public/rfc/html/rfc2518.html"/>
<format type="XML" octets="217603" target="http://xml.resource.org/public/rfc/xml/rfc2518.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="W3C/MIT">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="W3C/MIT">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="620835" target="http://xml.resource.org/public/rfc/html/rfc2616.html"/>
<format type="XML" octets="490204" target="http://xml.resource.org/public/rfc/xml/rfc2616.xml"/>
</reference>

  

<reference anchor="RFC2818">

<front>
<title>HTTP Over TLS</title>
<author initials="E." surname="Rescorla" fullname="E. Rescorla">
<organization/></author>
<date year="2000" month="May"/>
<abstract>
<t>This memo describes how to use Transport Layer Security (TLS) to secure Hypertext Transfer Protocol (HTTP) connections over the Internet. This memo provides information for the Internet community. </t></abstract></front>

<seriesInfo name="RFC" value="2818"/>
<format type="TXT" octets="15170" target="ftp://ftp.isi.edu/in-notes/rfc2818.txt"/>
</reference>

  

<reference anchor="RFC3253">

<front>
<title abbrev="Versioning Extensions to WebDAV">Versioning Extensions to WebDAV (Web&#160;Distributed&#160;Authoring&#160;and&#160;Versioning)</title>
<author initials="G." surname="Clemm" fullname="Geoffrey Clemm">
<organization>Rational Software</organization>
<address>
<postal>
<street>20 Maguire Road</street>
<city>Lexington</city>
<region>MA</region>
<code>02421</code>
<country>US</country></postal>
<email>geoffrey.clemm@rational.com</email></address></author>
<author initials="J." surname="Amsden" fullname="Jim Amsden">
<organization>IBM</organization>
<address>
<postal>
<street>3039 Cornwallis</street>
<street>Research Triangle Park</street>
<region>NC</region>
<code>27709</code>
<country>US</country></postal>
<email>jamsden@us.ibm.com</email></address></author>
<author initials="T." surname="Ellison" fullname="Tim Ellison">
<organization>IBM</organization>
<address>
<postal>
<street>Hursley Park</street>
<city>Winchester</city>
<code>S021 2JN</code>
<country>UK</country></postal>
<email>tim_ellison@uk.ibm.com</email></address></author>
<author initials="C." surname="Kaler" fullname="Christopher Kaler">
<organization>Microsoft</organization>
<address>
<postal>
<street>One Microsoft Way</street>
<city>Redmond</city>
<region>WA</region>
<code>90852</code>
<country>US</country></postal>
<email>ckaler@microsoft.com</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>
<country>US</country></postal>
<email>ejw@cse.ucsc.edu</email></address></author>
<date year="2002" month="March"/>
<abstract>
<t>
   This document specifies a set of methods, headers, and resource types
   that define the WebDAV (Web Distributed Authoring and Versioning)
   versioning extensions to the HTTP/1.1 protocol.  WebDAV versioning
   will minimize the complexity of clients that are capable of
   interoperating with a variety of versioning repository managers, to
   facilitate widespread deployment of applications capable of utilizing
   the WebDAV Versioning services.  WebDAV versioning includes automatic
   versioning for versioning-unaware clients, version history
   management, workspace management, baseline management, activity
   management, and URL namespace versioning.
</t></abstract></front>

<seriesInfo name="RFC" value="3253"/>
<format type="TXT" octets="245514" target="ftp://ftp.isi.edu/in-notes/rfc3253.txt"/>
<format type="HTML" octets="429660" target="http://xml.resource.org/public/rfc/html/rfc3253.html"/>
<format type="XML" octets="305030" target="http://xml.resource.org/public/rfc/xml/rfc3253.xml"/>
</reference>

  

<reference anchor="RFC3688">

<front>
<title>The IETF XML Registry</title>
<author initials="M." surname="Mealling" fullname="M. Mealling">
<organization/></author>
<date year="2004" month="January"/>
<abstract>
<t>This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas. </t></abstract></front>

<seriesInfo name="BCP" value="81"/>
<seriesInfo name="RFC" value="3688"/>
<format type="TXT" octets="17325" target="ftp://ftp.isi.edu/in-notes/rfc3688.txt"/>
</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="220016" target="http://xml.resource.org/public/rfc/html/rfc3744.html"/>
<format type="XML" octets="167673" target="http://xml.resource.org/public/rfc/xml/rfc3744.xml"/>
</reference>

<reference anchor="REC-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><!-- REC-XML -->
<reference anchor="UNICODE4" target="http://www.unicode.org/versions/Unicode4.0.0/">
  <front>
    <title>The Unicode Standard - Version 4.0</title>
    <author>
      <organization>The Unicode Consortium</organization>
    </author>
    <date month="August" year="2003"/>
  </front>
  <seriesInfo name="Addison-Wesley" value=""/>
  <annotation>ISBN 0321185781</annotation>
</reference><!-- UNICODE4 -->
</references>

  <references title="Informative References">
    

<reference anchor="RFC2251">

<front>
<title abbrev="LDAPv3">Lightweight Directory Access Protocol (v3)</title>
<author initials="M." surname="Wahl" fullname="Mark Wahl">
<organization>Critical Angle Inc.</organization>
<address>
<postal>
<street>4815 W Braker Lane #502-385</street>
<street>Austin</street>
<street>TX 78759</street>
<country>USA</country></postal>
<phone>+1 512 372-3160</phone>
<email>M.Wahl@critical-angle.com</email></address></author>
<author initials="T." surname="Howes" fullname="Tim Howes">
<organization>Netscape Communications Corp.</organization>
<address>
<postal>
<street>501 E. Middlefield Rd.</street>
<street>MS MV068</street>
<street>Mountain View</street>
<street>CA 94043</street>
<country>USA</country></postal>
<phone>+1 650 937-3419</phone>
<email>howes@netscape.com</email></address></author>
<author initials="S." surname="Kille" fullname="Steve Kille">
<organization>Isode Limited</organization>
<address>
<postal>
<street>The Dome</street>
<street>The Square</street>
<street>Richmond</street>
<street>TW9 1DT</street>
<country>UK</country></postal>
<phone>+44-181-332-9091</phone>
<email>S.Kille@isode.com</email></address></author>
<date year="1997" month="December"/>
<area>Applications</area>
<keyword>LDAP</keyword>
<keyword>ITU directory service protocol</keyword>
<keyword>directory</keyword>
<keyword>lightweight directory access protocol</keyword>
<note title="IESG Note">
<t>
This RFC contained boilerplate in this section which has been moved
to the RFC2223-compliant unnumbered section "Status of this Memo."

<list>
<t>
   This document describes a directory access protocol that provides
   both read and update access.  Update access requires secure
   authentication, but this document does not mandate implementation of
   any satisfactory authentication mechanisms.
</t>
<t>
   In accordance with RFC 2026, section 4.4.1, this specification is
   being approved by IESG as a Proposed Standard despite this
   limitation, for the following reasons:

<list>
<t>
   a. to encourage implementation and interoperability testing of
      these protocols (with or without update access) before they
      are deployed, and
</t>
<t>
   b. to encourage deployment and use of these protocols in read-only
      applications.  (e.g. applications where LDAPv3 is used as
      a query language for directories which are updated by some
      secure mechanism other than LDAP), and
</t>
<t>
   c. to avoid delaying the advancement and deployment of other Internet
      standards-track protocols which require the ability to query, but
      not update, LDAPv3 directory servers.
</t></list></t>
<t>
   Readers are hereby warned that until mandatory authentication
   mechanisms are standardized, clients and servers written according to
   this specification which make use of update functionality are
   UNLIKELY TO INTEROPERATE, or MAY INTEROPERATE ONLY IF AUTHENTICATION
   IS REDUCED TO AN UNACCEPTABLY WEAK LEVEL.
</t>
<t>
   Implementors are hereby discouraged from deploying LDAPv3 clients or
   servers which implement the update functionality, until a Proposed
   Standard for mandatory authentication in LDAPv3 has been approved and
   published as an RFC.
</t></list></t></note></front>

<seriesInfo name="RFC" value="2251"/>
<format type="TXT" octets="114488" target="ftp://ftp.isi.edu/in-notes/rfc2251.txt"/>
<format type="HTML" octets="133146" target="http://xml.resource.org/public/rfc/html/rfc2251.html"/>
<format type="XML" octets="114375" target="http://xml.resource.org/public/rfc/xml/rfc2251.xml"/>
</reference>

    

<reference anchor="RFC2426">

<front>
<title>vCard MIME Directory Profile</title>
<author initials="F." surname="Dawson" fullname="Frank Dawson">
<organization>Lotus Development Corporation</organization>
<address>
<postal>
<street>6544 Battleford Drive</street>
<street>Raleigh</street>
<street>NC 27613</street>
<country>USA</country></postal>
<phone>+1-919-676-9515</phone>
<email>frank_dawson@lotus.com</email></address></author>
<author initials="T." surname="Howes" fullname="Tim Howes">
<organization>Netscape Communications Corp.</organization>
<address>
<postal>
<street>501 East Middlefield Rd.</street>
<street>Mountain View</street>
<street>CA 94041</street>
<country>USA</country></postal>
<phone>+1.415.937.3419</phone>
<email>howes@netscape.com</email></address></author>
<date year="1998" month="September"/>
<area>Applications</area>
<keyword>MIME</keyword>
<keyword>audio</keyword>
<keyword>content-type</keyword>
<keyword>directory</keyword>
<keyword>multipurpose internet mail extensions</keyword>
<abstract>
<t>
   This memo defines the profile of the MIME Content-Type  for
   directory information for a white-pages person object, based on a
   vCard electronic business card. The profile definition is independent
   of any particular directory service or protocol. The profile is
   defined for representing and exchanging a variety of information
   about an individual (e.g., formatted and structured name and delivery
   addresses, email address, multiple telephone numbers, photograph,
   logo, audio clips, etc.). The directory information used by this
   profile is based on the attributes for the person object defined in
   the X.520 and X.521 directory services recommendations. The profile
   also provides the method for including a  representation of a
   white-pages directory entry within the MIME Content-Type defined by
   the  document.
</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 .
</t></abstract></front>

<seriesInfo name="RFC" value="2426"/>
<format type="TXT" octets="74646" target="ftp://ftp.isi.edu/in-notes/rfc2426.txt"/>
<format type="HTML" octets="96516" target="http://xml.resource.org/public/rfc/html/rfc2426.html"/>
<format type="XML" octets="77828" target="http://xml.resource.org/public/rfc/xml/rfc2426.xml"/>
</reference>

    

<reference anchor="RFC2739">

<front>
<title abbrev="Locating a Calendar User">Calendar Attributes for vCard and LDAP</title>
<author initials="T." surname="Small" fullname="T. Small">
<organization>XpertSite.Com</organization></author>
<author initials="D." surname="Hennessy" fullname="D. Hennessy">
<organization>ISOCOR</organization></author>
<author initials="F." surname="Dawson" fullname="F. Dawson">
<organization>Lotus</organization></author>
<date year="2000" month="January"/>
<abstract>
<t>When scheduling a calendar entity, such as an event, it is a prerequisite that an organizer has the calendar address of each attendee that will be invited to the event. Additionally, access to an attendee's current "busy time" provides an a priori indication of whether the attendee will be free to participate in the event.</t>
<t>In order to meet these challenges, a calendar user agent (CUA) needs a mechanism to locate (URI) individual user's calendar and free/busy time.</t>
<t>This memo defines three mechanisms for obtaining a URI to a user's calendar and free/busy time. These include: 
- Manual transfer of the information;
- Personal data exchange using the vCard format; and
 - Directory lookup using the LDAP protocol.</t></abstract></front>

<seriesInfo name="RFC" value="2739"/>
<format type="TXT" octets="25892" target="ftp://ftp.isi.edu/in-notes/rfc2739.txt"/>
</reference>

  </references>
  

    <section title="CalDAV Method Privilege Table (Normative)">
      <t>The following table extend the WebDAV Method Privilege Table
        specified in Appendix B of <xref target="RFC3744">WebDAV ACL</xref>.
      </t>

      <texttable>
      <ttcol>METHOD</ttcol><ttcol>PRIVILEGES</ttcol>
      <c>MKCALENDAR</c><c>DAV:bind</c>
      <c>REPORT</c><c>DAV:read or CALDAV:read-free-busy
        (on all referenced resources)</c>
      </texttable>
    </section>

    <section title="Changes">
      
      <section title="Changes in -07">
        <t>
          <list style='letters'>
            <t>Various editorial changes.</t>
            <t>Added properties calendar-restrictions and
               calendar-component-restriction-set on calendar
               collections.</t>
            <t>Added properties calendar-home-URL and
               calendar-address-set on principal resources.</t>
            <t>Removed property calendar-URL on principal
               resources.</t>
            <t>Added pre- and postconditions to reports.</t>
            <t>Added new XML elements calendar-data-only and
               limit-recurrent-set.</t>
            <t>Modified calendar-data XML element to support
               the attributes content-type and version.</t>
				    <t>Reorganised sections 3, 4, 5 &amp; 6 into two sections and
					     re-ordered sub-sections.</t>
			      <t>Added comment about client not setting a duplicate
				       displayname.</t>
            <t>Removed three CalDAV OPTIONS requests.</t>
			      <t>Changed "authenticated user" to "user" in various places.</t>
			      <t>Rewrote section on calendar object resource restrictions for
			         better clarity.</t>
          </list>
        </t>
      </section>
      <section title="Changes in -06">
        <t>
          <list style='letters'>
            <t>Reworded section "Recurrence and the Data Model".</t>
            <t>Removed timezone collection feature.</t>
            <t>Removed ability for a server to return the
               Location header on a successful PUT request.</t>
			<t>Clarified restrictions on calendar object resources contained in
				calendar collections.</t>
            <t>Added preconditions on PUT in calendar collections.</t>
            <t>Added informative "Guidelines" section, with information
               on locking and how to find calendar collections.</t>
            <t>Moved "Sychronization Operations" section in the
               "Guidelines" section.</t>
          </list>
        </t>
        
      </section>
      <section title="Changes in -05">
        <t>
          <list style='letters'>
            <t>Removed a lot of non-normative text.</t>
            <t>Removed property promotion/demotion requirements.</t>
            <t>Removed calendar-owner and cal-scale properties.</t>
            <t>Removed 'ical' prefix/text from element names.</t>
            <t>Relaxed WebDAV Class 2 (locking) requirement to a MAY.</t>
            <t>Relaxed MKCALENDAR requirement to a SHOULD.</t>
            <t>Moved the XML Namespace section in the Introduction.</t>
            <t>Added CALDAV: prefix to CalDAV XML elements in the text.</t>
            <t>Added CALDAV:calendar-multiget report.</t>
            <t>Added CALDAV:free-busy-query report.</t>
            <t>Added CALDAV:calendar-description property.</t>
            <t>Changed CALDAV:calendar-query-result element name to
               CALDAV:calendar-data</t>
            <t>Added description and examples of handling timezones.</t>
            <t>Added mandatory "start" and "end" attributes to the
               CALDAV:expand-recurrence-set element.</t>
            <t>Added three CalDAV OPTIONS requests.</t>
            <t>Grouped XML Element declarations in a separate section.</t>
          </list>
        </t>
      </section>
      <section title="Changes in -04">
        <t>
          <list style='letters'>
            <t>Added a note about the HTTP Location response 
              header.</t>
            <t>Added report calendar-query.</t>
            <t>Removed reports calendar-property-search and 
              calendar-time-range.</t>
            <t>Removed section on CalDAV and timezones.</t>
            <t>Added requirement to return ETag on creation.</t>
            <t>Revised data model to remove sub-collections from 
              calendar collection.</t>
            <t>Added informative references section.</t>
            <t>Removed dependencies on DASL.</t>
          </list>
        </t>
      </section>
      <section title="Changes in -03">
        <t>
          <list style='letters'>
            <t>Removed Calendar Containers (simplification that 
              doesn't seem to remove much functionality)</t>
            <t>Added MKCALENDAR to create calendars and all 
              sub-collections</t>
            <t>Added cal-scale property to calendars</t>
          </list>
        </t>
      </section>
      <section title="Changes in -02">
        <t>Basically still adding major sections of content: <list 
          style='letters'> <t>Defined new field values to the OPTIONS 
          "DAV:" response header</t> <t>Added new resource 
          properties</t> <t>Added new principal properties</t> 
          <t>Added new SCHEDULE method and related headers</t> 
          <t>Added new privileges for scheduling</t> </list> </t>
      </section>
      <section title="Changes in -01">
        <t>
          <list style='letters'>
            <t>Added section on privileges for calendaring, 
              extending WebDAV ACL privilege set</t>
            <t>Defined what to do with unrecognized properties in 
              the bodies of iCalendar events, with respect to 
              property promotion/demotion</t>
          </list>
        </t>
      </section>
    </section>
  </back>
</rfc>

