Handle /principals/*/user requests as Depth: 0 on principal

This commit is contained in:
Andrew McMillan committed 2009-09-11 11:04:06 +12:00
1 parent 5265ed496f
commit c97c489a52
14 files changed
+1076 -39

No files matched your search

@@ -1,8 +1,8 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
ETag: "f198ba2785d7ce129f5017d877e37a9b"
Content-Length: 878
ETag: "6a5ca17c5e140b8e593cf5fd51a10003"
Content-Length: 922
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
@@ -13,17 +13,17 @@ Content-Type: text/xml; charset="utf-8"
<prop>
<displayname>DAViCal CalDAV Server</displayname>
<C:calendar-home-set>
<href>/user1/</href>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/user1/.in/</href>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/user1/.out/</href>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/user1/</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
@@ -0,0 +1,39 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
ETag: "35e75c275075534433a2b68f9691ae20"
Content-Length: 930
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:C1="http://calendarserver.org/ns/">
<response>
<href>/principals/users/user1/</href>
<propstat>
<prop>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<displayname>User 1</displayname>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>
@@ -0,0 +1,32 @@
#
# Testing with a process similar to iPhone 3
#
TYPE=PROPFIND
URL=http://mycaldav/principals/users/user1/
HEAD
AUTH=user1:user1
HEADER=User-Agent: DAVKit/4.0 (728.3); iCalendar/1 (34); iPhone/3.0 7A341
HEADER=Content-Type: text/xml
#
# This query from the iPhone seems to discover several things. Firstly they
# get the calendar-home-set URL for this path. Secondly, they ascertain
# whether the calendar supports scheduling, and finally, whether it
# handles some Apple-specific extensions.
#
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<x0:propfind xmlns:x2="http://calendarserver.org/ns/" xmlns:x1="urn:ietf:params:xml:ns:caldav" xmlns:x0="DAV:">
<x0:prop>
<x1:calendar-home-set/>
<x1:calendar-user-address-set/>
<x1:schedule-inbox-URL/>
<x1:schedule-outbox-URL/>
<x2:dropbox-home-URL/>
<x2:notifications-URL/>
<x0:displayname/>
</x0:prop>
</x0:propfind>
ENDDATA
@@ -0,0 +1,141 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
ETag: "6fce1097fe68f06e745b40b2067552c9"
Content-Length: 3027
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:A="http://apple.com/ns/ical/">
<response>
<href>/</href>
<propstat>
<prop>
<C:supported-calendar-component-set>
<C:comp name="VEVENT"/>
<C:comp name="VTODO"/>
<C:comp name="VJOURNAL"/>
<C:comp name="VTIMEZONE"/>
<C:comp name="VFREEBUSY"/>
</C:supported-calendar-component-set>
<resourcetype>
<collection/>
</resourcetype>
<displayname>DAViCal CalDAV Server</displayname>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:calendar-description/>
<A:calendar-color/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/</href>
<propstat>
<prop>
<displayname>User 1</displayname>
<resourcetype>
<principal/>
<collection/>
</resourcetype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:supported-calendar-component-set/>
<C:calendar-description/>
<A:calendar-color/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/manager1/</href>
<propstat>
<prop>
<displayname>Manager 1</displayname>
<resourcetype>
<principal/>
<collection/>
</resourcetype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:supported-calendar-component-set/>
<C:calendar-description/>
<A:calendar-color/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/assistant1/</href>
<propstat>
<prop>
<displayname>Assistant 1</displayname>
<resourcetype>
<principal/>
<collection/>
</resourcetype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:supported-calendar-component-set/>
<C:calendar-description/>
<A:calendar-color/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/resource1/</href>
<propstat>
<prop>
<displayname>Resource 1</displayname>
<resourcetype>
<principal/>
<collection/>
</resourcetype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:supported-calendar-component-set/>
<C:calendar-description/>
<A:calendar-color/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/resource2/</href>
<propstat>
<prop>
<displayname>Resource 2</displayname>
<resourcetype>
<principal/>
<collection/>
</resourcetype>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C:supported-calendar-component-set/>
<C:calendar-description/>
<A:calendar-color/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>
@@ -0,0 +1,31 @@
#
# Testing with a process similar to iPhone 3
#
TYPE=PROPFIND
URL=http://mycaldav/
HEAD
AUTH=user1:user1
HEADER=User-Agent: DAVKit/4.0 (728.3); iCalendar/1 (34); iPhone/3.0 7A341
HEADER=Content-Type: text/xml
HEADER=Depth: 1
#
# This query from the iPhone seems to discover several things. Firstly they
# get the calendar-home-set URL for this path. Secondly, they ascertain
# whether the calendar supports scheduling, and finally, whether it
# handles some Apple-specific extensions.
#
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<x0:propfind xmlns:x1="urn:ietf:params:xml:ns:caldav" xmlns:x0="DAV:" xmlns:x2="http://apple.com/ns/ical/">
<x0:prop>
<x0:displayname/>
<x1:calendar-description/>
<x1:supported-calendar-component-set/>
<x2:calendar-color/>
<x0:resourcetype/>
</x0:prop>
</x0:propfind>
ENDDATA
@@ -0,0 +1,735 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
ETag: "f31ea9144fd675f7b545ea397f934031"
Transfer-Encoding: chunked
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav" xmlns:C1="http://calendarserver.org/ns/">
<response>
<href>/caldav.php/user1/</href>
<propstat>
<prop>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<displayname>User 1</displayname>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/</href>
<propstat>
<prop>
<displayname>user1 home</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/0575d895-a006-4ed8-9be6-0d1b6b6b1f96.ics</href>
<propstat>
<prop>
<displayname>Due 7/8/7 16:30, completed</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/1906b3ca-4890-468a-9b58-1de74bf2c716.ics</href>
<propstat>
<prop>
<displayname>Private Event</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/20061101T073004Z.ics</href>
<propstat>
<prop>
<displayname>A Meeting</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/2178279a-aec2-471f-832d-1f6df6203f2f.ics</href>
<propstat>
<prop>
<displayname>Incomplete, uncancelled</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/3F4CF6227300FD062D9EF3CDFB30D32D-0.ics</href>
<propstat>
<prop>
<displayname>Lunch with David</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/4aaf8f37-f232-4c8e-a72e-e171d4c4fe54.ics</href>
<propstat>
<prop>
<displayname>Weekly Project Meeting</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/71e2ae82-7870-11db-c6d6-f6927c144649.ics</href>
<propstat>
<prop>
<displayname>Beer O'Clock</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/917b9e47-b748-4550-a566-657fbe672447.ics</href>
<propstat>
<prop>
<displayname>50% Complete, uncancelled</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/9d050be7-8a02-4355-8ed3-02a9fc5f473f.ics</href>
<propstat>
<prop>
<displayname>Confidential Event</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/AAA9318E-37D9-4319-8626-95ECD3D3B243.ics</href>
<propstat>
<prop>
<displayname>BBQ @ ML's</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/b1679f77-673d-4f46-b3eb-2420e1bba301.ics</href>
<propstat>
<prop>
<displayname>A Cancelled Task, with a start and due date</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/da81c0ee-7871-11db-c6d6-f6927c144649.ics</href>
<propstat>
<prop>
<displayname>Morning Mgmt Mtg</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/e6eb5bc9-f7f9-4a0a-94e8-8e90eefc7d08.ics</href>
<propstat>
<prop>
<displayname>Release 0.9.3</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/e70576e9-c1e0-431e-a507-0386fd82f223.ics</href>
<propstat>
<prop>
<displayname>Morning Meeting</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/home/fbd57454-d966-4a14-8341-abe1edb1ae66.ics</href>
<propstat>
<prop>
<displayname>Tentative Event</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/created/</href>
<propstat>
<prop>
<displayname>created</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/.in/</href>
<propstat>
<prop>
<displayname>User 1 Inbox</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/.out/</href>
<propstat>
<prop>
<displayname>User 1 Outbox</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/</href>
<propstat>
<prop>
<displayname>iCal Calendar</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/6C8A0D88-E1F9-4FC1-9EDD-DA258ABF2CFA.ics</href>
<propstat>
<prop>
<displayname>Go to work</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/6E20BB7C-EFD9-4F0F-9BDC-5335E04D47E0/E6BC62F3-77C6-4FB7-BDD3-6882E2F1BE74.ics</href>
<propstat>
<prop>
<displayname>Celebrate a significant birthday</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/calendar-proxy-read/</href>
<propstat>
<prop>
<displayname>/user1/calendar-proxy-read/</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
<response>
<href>/caldav.php/user1/calendar-proxy-write/</href>
<propstat>
<prop>
<displayname>/user1/calendar-proxy-write/</displayname>
<C:calendar-home-set>
<href>/caldav.php/user1/</href>
</C:calendar-home-set>
<C:schedule-inbox-URL>
<href>/caldav.php/user1/.in/</href>
</C:schedule-inbox-URL>
<C:schedule-outbox-URL>
<href>/caldav.php/user1/.out/</href>
</C:schedule-outbox-URL>
<C:calendar-user-address-set>
<href>mailto:user1@example.net</href>
<href>/caldav.php/user1/</href>
</C:calendar-user-address-set>
</prop>
<status>HTTP/1.1 200 OK</status>
</propstat>
<propstat>
<prop>
<C1:dropbox-home-URL/>
<C1:notifications-URL/>
</prop>
<status>HTTP/1.1 404 Not Found</status>
</propstat>
</response>
</multistatus>
@@ -0,0 +1,32 @@
#
# Testing with a process similar to iPhone 3
#
TYPE=PROPFIND
URL=http://mycaldav/caldav.php/user1/
HEAD
AUTH=user1:user1
HEADER=User-Agent: DAVKit/4.0 (728.3); iCalendar/1 (34); iPhone/3.0 7A341
HEADER=Content-Type: text/xml
#
# This query from the iPhone seems to discover several things. Firstly they
# get the calendar-home-set URL for this path. Secondly, they ascertain
# whether the calendar supports scheduling, and finally, whether it
# handles some Apple-specific extensions.
#
BEGINDATA
<?xml version="1.0" encoding="utf-8"?>
<x0:propfind xmlns:x2="http://calendarserver.org/ns/" xmlns:x1="urn:ietf:params:xml:ns:caldav" xmlns:x0="DAV:">
<x0:prop>
<x1:calendar-home-set/>
<x1:calendar-user-address-set/>
<x1:schedule-inbox-URL/>
<x1:schedule-outbox-URL/>
<x2:dropbox-home-URL/>
<x2:notifications-URL/>
<x0:displayname/>
</x0:prop>
</x0:propfind>
ENDDATA
@@ -47,7 +47,7 @@
</propstat>
</response>
<response>
<href>/user1/</href>
<href>/caldav.php/user1/</href>
<propstat>
<prop>
<acl>
@@ -94,7 +94,7 @@
</propstat>
</response>
<response>
<href>/manager1/</href>
<href>/caldav.php/manager1/</href>
<propstat>
<prop>
<acl>
@@ -141,7 +141,7 @@
</propstat>
</response>
<response>
<href>/assistant1/</href>
<href>/caldav.php/assistant1/</href>
<propstat>
<prop>
<acl>
@@ -188,7 +188,7 @@
</propstat>
</response>
<response>
<href>/resource1/</href>
<href>/caldav.php/resource1/</href>
<propstat>
<prop>
<acl>
@@ -235,7 +235,7 @@
</propstat>
</response>
<response>
<href>/resource2/</href>
<href>/caldav.php/resource2/</href>
<propstat>
<prop>
<acl>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<multistatus xmlns="DAV:">
<response>
<href>/user1/</href>
<href>/caldav.php/user1/</href>
<propstat>
<prop>
<acl>