mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
More fixes to CalDAV Scheduling
- Handle REPLY from ATTENDEE accepting/declining meeting. - Handle processing on ORGANIZER further changing meeting.
This commit is contained in:
1 parent
98fa892dfd
commit
8ba55217df
15 files changed
+661
-43
No files matched your search
@@ -6,7 +6,7 @@ Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
dav_etag: >baad41c9f24bd1ecbdde6e58882df9b7<
|
||||
dav_etag: >ea6b316ca24db20f5eb37d1abd60f8c1<
|
||||
dav_name: >/user4/base/calendar/anothergoodleopard.ics<
|
||||
dtstart: >2010-03-22 16:00:00+13<
|
||||
summary: >An invited event. Black tie with pink polka dots is essential. Do not bring a leopard. Any leopards which do attend will be forcibly chained to a nearby fence.<
|
||||
|
||||
@@ -21,13 +21,13 @@ UID:70399cd7-50a4-4be4-a665-af593e19a7fd
|
||||
SUMMARY:An invited event. Black tie with pink polka dots is essential. D
|
||||
o not bring a leopard. Any leopards which do attend will be forcibly chai
|
||||
ned to a nearby fence.
|
||||
ORGANIZER;RSVP=TRUE;PARTSTAT=ACCEPTED;ROLE=CHAIR:mailto:user1@example.net
|
||||
ORGANIZER;RSVP=TRUE;PARTSTAT=ACCEPTED;ROLE=CHAIR:mailto:user4@example.net
|
||||
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user2
|
||||
@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user3
|
||||
@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user4
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user1
|
||||
@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user5
|
||||
@example.net
|
||||
|
||||
@@ -2,7 +2,7 @@ HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
|
||||
DAV: extended-mkcol, calendar-proxy, bind, addressbook, calendar-auto-schedule
|
||||
Content-Length: 22543
|
||||
Content-Length: 22410
|
||||
Etag: "ae93907cb03bc025b8e733eb61f3a09e"
|
||||
Content-Type: text/calendar; charset="utf-8"
|
||||
|
||||
@@ -388,19 +388,16 @@ UID:70399cd7-50a4-4be4-a665-af593e19a7fd
|
||||
SUMMARY:An invited event. Black tie with pink polka dots is essential.
|
||||
Do not bring a leopard. Any leopards which do attend will be forcibly
|
||||
chained to a nearby fence.
|
||||
ORGANIZER;RSVP=TRUE;PARTSTAT=ACCEPTED;ROLE=CHAIR:mailto:user1@example.ne
|
||||
ORGANIZER;RSVP=TRUE;PARTSTAT=ACCEPTED;ROLE=CHAIR:mailto:user4@example.ne
|
||||
t
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;SCHEDULE-S
|
||||
TATUS="2.0\;Scheduling invitation delivered successfully":mailto:user2@e
|
||||
xample.net
|
||||
TATUS=1.2:mailto:user2@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;SCHEDULE-S
|
||||
TATUS="2.0\;Scheduling invitation delivered successfully":mailto:user3@e
|
||||
xample.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:use
|
||||
r4@example.net
|
||||
TATUS=1.2:mailto:user3@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;SCHEDULE-S
|
||||
TATUS="2.0\;Scheduling invitation delivered successfully":mailto:user5@e
|
||||
xample.net
|
||||
TATUS=3.8:mailto:user1@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;SCHEDULE-S
|
||||
TATUS=1.2:mailto:user5@example.net
|
||||
DTSTART:20100322T160000
|
||||
DTEND:20100322T170000
|
||||
X-MOZ-GENERATION:3
|
||||
@@ -416,14 +413,14 @@ UID:70399cd7-50a4-4be4-a665-af593e19a7fd
|
||||
SUMMARY:An invited event. Black tie with pink polka dots is essential.
|
||||
Do not bring a leopard. Any leopards which do attend will be forcibly
|
||||
chained to a nearby fence.
|
||||
ORGANIZER;RSVP=TRUE;PARTSTAT=ACCEPTED;ROLE=CHAIR:mailto:user1@example.ne
|
||||
ORGANIZER;RSVP=TRUE;PARTSTAT=ACCEPTED;ROLE=CHAIR:mailto:user4@example.ne
|
||||
t
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:use
|
||||
r2@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:use
|
||||
r3@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:use
|
||||
r4@example.net
|
||||
r1@example.net
|
||||
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:use
|
||||
r5@example.net
|
||||
DTSTART:20100322T160000
|
||||
|
||||
@@ -2,7 +2,7 @@ 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
|
||||
DAV: extended-mkcol, calendar-proxy, bind, addressbook, calendar-auto-schedule
|
||||
ETag: "f7758fc9ba3182e47aba690683524e55"
|
||||
ETag: "e9729234a084898506d4821483a404c9"
|
||||
Content-Length: 2292
|
||||
Content-Type: text/xml; charset="utf-8"
|
||||
|
||||
@@ -84,7 +84,7 @@ Content-Type: text/xml; charset="utf-8"
|
||||
<href>/caldav.php/user2/home/70399cd7-50a4-4be4-a665-af593e19a7fd.ics</href>
|
||||
<propstat>
|
||||
<prop>
|
||||
<getetag>"baad41c9f24bd1ecbdde6e58882df9b7"</getetag>
|
||||
<getetag>"ea6b316ca24db20f5eb37d1abd60f8c1"</getetag>
|
||||
</prop>
|
||||
<status>HTTP/1.1 200 OK</status>
|
||||
</propstat>
|
||||
|
||||
@@ -56,14 +56,14 @@ ORGANIZER;CN=User 1:MAILTO:user1@example.net
|
||||
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RS
|
||||
VP=TRUE;CN=User 1;LANGUAGE=en:MAILTO:user1@example.net
|
||||
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RS
|
||||
VP=TRUE;CN=User 2;LANGUAGE=en;SCHEDULE-STATUS="2.0\;Scheduling invitatio
|
||||
n delivered successfully":MAILTO:user2@example.net
|
||||
VP=TRUE;CN=User 2;LANGUAGE=en;SCHEDULE-STATUS=1.2:MAILTO:user2@example.n
|
||||
et
|
||||
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RS
|
||||
VP=TRUE;CN=User 3;LANGUAGE=en;SCHEDULE-STATUS="2.0\;Scheduling invitatio
|
||||
n delivered successfully":MAILTO:user3@example.net
|
||||
VP=TRUE;CN=User 3;LANGUAGE=en;SCHEDULE-STATUS=1.2:MAILTO:user3@example.n
|
||||
et
|
||||
ATTENDEE;CUTYPE=INDIVIDUAL;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RS
|
||||
VP=TRUE;CN=User 4;LANGUAGE=en;SCHEDULE-STATUS="2.0\;Scheduling invitatio
|
||||
n delivered successfully":MAILTO:user4@example.net
|
||||
VP=TRUE;CN=User 4;LANGUAGE=en;SCHEDULE-STATUS=1.2:MAILTO:user4@example.n
|
||||
et
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
<
|
||||
|
||||
@@ -39,9 +39,8 @@ DTEND;TZID=Pacific/Auckland:20111019T110000
|
||||
ATTENDEE;CN=Manager 1;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:
|
||||
mailto:manager1@example.net
|
||||
ATTENDEE;CN=user1@example.net;CUTYPE=INDIVIDUAL;EMAIL=user1@example.net;
|
||||
PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE;SCHEDULE-STATUS="3.
|
||||
8\;No authority to deliver invitations to user.":mailto:user1@example.ne
|
||||
t
|
||||
PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE;SCHEDULE-STATUS=3.8
|
||||
:mailto:user1@example.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T100000
|
||||
|
||||
@@ -44,9 +44,8 @@ DTEND;TZID=Pacific/Auckland:20111019T110000
|
||||
ATTENDEE;CN=Manager 1;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:
|
||||
mailto:manager1@example.net
|
||||
ATTENDEE;CN=user1@example.net;CUTYPE=INDIVIDUAL;EMAIL=user1@example.net;
|
||||
PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE;SCHEDULE-STATUS="2.
|
||||
0\;Scheduling invitation delivered successfully":mailto:user1@example.ne
|
||||
t
|
||||
PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE;SCHEDULE-STATUS=1.2
|
||||
:mailto:user1@example.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T100000
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
|
||||
DAV: extended-mkcol, calendar-proxy, bind, addressbook, calendar-auto-schedule
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
dav_name: >/manager1/home/E1A13F04-iCal-schedule.ics<
|
||||
|
||||
dav_name: >/user1/home/E1A13F04-iCal-schedule.ics<
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
#
|
||||
# iCal DELETE's the invitation in the .in
|
||||
#
|
||||
TYPE=DELETE
|
||||
URL=http://regression.host/user1/.in/E1A13F04-iCal-schedule.ics
|
||||
|
||||
HEADER=User-Agent: DAVKit/4.0.3 (732.2); CalendarStore/4.0.4 (997.7); iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)
|
||||
HEAD
|
||||
|
||||
#
|
||||
# Query to confirm we got rid of it. There should be two now.
|
||||
QUERY
|
||||
SELECT dav_name
|
||||
FROM calendar_item
|
||||
WHERE uid = 'E1A13F04-iCal-schedule'
|
||||
ORDER BY dav_id
|
||||
ENDQUERY
|
||||
|
||||
@@ -0,0 +1,134 @@
|
||||
|
||||
caldav_type: >VEVENT<
|
||||
dav_name: >/manager1/home/E1A13F04-iCal-schedule.ics<
|
||||
logged_user: >10<
|
||||
summary: >Meeting with User1<
|
||||
user_no: >20<
|
||||
vcalendar: >BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T110000
|
||||
ATTENDEE;CN=Manager 1;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:
|
||||
mailto:manager1@example.net
|
||||
ATTENDEE;CN=user1@example.net;CUTYPE=INDIVIDUAL;EMAIL=user1@example.net;
|
||||
PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto:user1@example.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T100000
|
||||
DTSTAMP:20111018T200107Z
|
||||
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
||||
SEQUENCE:5
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
<
|
||||
|
||||
caldav_type: >VEVENT<
|
||||
dav_name: >/user1/home/E1A13F04-iCal-schedule.ics<
|
||||
logged_user: >10<
|
||||
summary: >Meeting with User1<
|
||||
user_no: >10<
|
||||
vcalendar: >BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T110000
|
||||
ATTENDEE;CN=Manager 1;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:
|
||||
mailto:manager1@example.net
|
||||
ATTENDEE;CN=user1@example.net;CUTYPE=INDIVIDUAL;EMAIL=user1@example.net;
|
||||
PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto:user1@example.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T100000
|
||||
DTSTAMP:20111018T200107Z
|
||||
ORGANIZER;CN=Manager 1;SCHEDULE-STATUS=1.2:mailto:manager1@example.net
|
||||
SEQUENCE:5
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
<
|
||||
|
||||
caldav_type: >VEVENT<
|
||||
dav_name: >/manager1/.in/user1E1A13F04-iCal-schedule.ics<
|
||||
logged_user: >10<
|
||||
summary: >Meeting with User1<
|
||||
user_no: >20<
|
||||
vcalendar: >BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:REPLY
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T110000
|
||||
ATTENDEE;CN=Manager 1;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:
|
||||
mailto:manager1@example.net
|
||||
ATTENDEE;CN=user1@example.net;CUTYPE=INDIVIDUAL;EMAIL=user1@example.net;
|
||||
PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto:user1@example.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T100000
|
||||
DTSTAMP:20111018T200107Z
|
||||
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
||||
SEQUENCE:5
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
<
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
#
|
||||
# Testing for iCal accepting an invitation
|
||||
#
|
||||
TYPE=PUT
|
||||
URL=http://regression.host/user1/home/E1A13F04-iCal-schedule.ics
|
||||
|
||||
HEADER=User-Agent: DAVKit/4.0.3 (732.2); CalendarStore/4.0.4 (997.7); iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)
|
||||
HEADER=If-Match: "905cdcc0d1a76ef63ef8d238575c3856"
|
||||
HEADER=Content-Type: text/calendar
|
||||
|
||||
# REPLACE=#<creationdate>\d{8}T\d{6}</creationdate>#<creationdate>YYYYMMDDThhmmss</creationdate>#
|
||||
# REPLACE=/^DTSTAMP:\d{4}[01]\d[0123]\dT[012]\d[0-5]\d[0-6]\dZ\r?$/DTSTAMP:yyyymmddThhmmssZ/
|
||||
|
||||
# QUERY
|
||||
# ENDQUERY
|
||||
|
||||
BEGINDATA
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T110000
|
||||
ATTENDEE;CN="Manager 1";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:mailto:manag
|
||||
er1@example.net
|
||||
ATTENDEE;CN="user1@example.net";CUTYPE=INDIVIDUAL;EMAIL="user1@example.n
|
||||
et";PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto:user1@example.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T100000
|
||||
DTSTAMP:20111018T200107Z
|
||||
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
||||
SEQUENCE:5
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
ENDDATA
|
||||
|
||||
|
||||
QUERY
|
||||
SELECT caldav_data.user_no, caldav_data.dav_name,
|
||||
caldav_type, logged_user, caldav_data.caldav_data AS "vcalendar",
|
||||
summary
|
||||
FROM caldav_data JOIN calendar_item USING(dav_name) LEFT JOIN timezones ON (tz_id=tzid)
|
||||
WHERE calendar_item.uid = 'E1A13F04-iCal-schedule'
|
||||
ORDER BY caldav_data.dav_id
|
||||
ENDQUERY
|
||||
|
||||
@@ -0,0 +1,189 @@
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
DAV: 1, 2, 3, access-control, calendar-access, calendar-schedule
|
||||
DAV: extended-mkcol, calendar-proxy, bind, addressbook, calendar-auto-schedule
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
caldav_type: >VEVENT<
|
||||
dav_name: >/manager1/home/E1A13F04-iCal-schedule.ics<
|
||||
logged_user: >20<
|
||||
summary: >Meeting with User1<
|
||||
user_no: >20<
|
||||
vcalendar: >BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T140000
|
||||
ATTENDEE;CN=Manager 1;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:
|
||||
mailto:manager1@example.net
|
||||
ATTENDEE;CN=user1@example.net;CUTYPE=INDIVIDUAL;EMAIL=user1@example.net;
|
||||
PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE;SCHEDULE-STATUS=1.2
|
||||
:mailto:user1@example.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T130000
|
||||
DTSTAMP:20111024T035702Z
|
||||
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
||||
SEQUENCE:6
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
<
|
||||
|
||||
caldav_type: >VEVENT<
|
||||
dav_name: >/user1/home/E1A13F04-iCal-schedule.ics<
|
||||
logged_user: >20<
|
||||
summary: >Meeting with User1<
|
||||
user_no: >10<
|
||||
vcalendar: >BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T140000
|
||||
ATTENDEE;CN="Manager 1";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:mailto:manag
|
||||
er1@example.net
|
||||
ATTENDEE;CN="user1@example.net";CUTYPE=INDIVIDUAL;EMAIL="user1@example.n
|
||||
et";PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:user1@ex
|
||||
ample.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T130000
|
||||
DTSTAMP:20111024T035702Z
|
||||
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
||||
SEQUENCE:6
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
<
|
||||
|
||||
caldav_type: >VEVENT<
|
||||
dav_name: >/manager1/.in/user1E1A13F04-iCal-schedule.ics<
|
||||
logged_user: >10<
|
||||
summary: >Meeting with User1<
|
||||
user_no: >20<
|
||||
vcalendar: >BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:REPLY
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T110000
|
||||
ATTENDEE;CN=Manager 1;CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:
|
||||
mailto:manager1@example.net
|
||||
ATTENDEE;CN=user1@example.net;CUTYPE=INDIVIDUAL;EMAIL=user1@example.net;
|
||||
PARTSTAT=ACCEPTED;ROLE=REQ-PARTICIPANT:mailto:user1@example.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T100000
|
||||
DTSTAMP:20111018T200107Z
|
||||
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
||||
SEQUENCE:5
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
<
|
||||
|
||||
caldav_type: >VEVENT<
|
||||
dav_name: >/user1/.in/E1A13F04-iCal-schedule.ics<
|
||||
logged_user: >20<
|
||||
summary: >Meeting with User1<
|
||||
user_no: >10<
|
||||
vcalendar: >BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:REQUEST
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T140000
|
||||
ATTENDEE;CN="Manager 1";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:mailto:manag
|
||||
er1@example.net
|
||||
ATTENDEE;CN="user1@example.net";CUTYPE=INDIVIDUAL;EMAIL="user1@example.n
|
||||
et";PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:user1@ex
|
||||
ample.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T130000
|
||||
DTSTAMP:20111024T035702Z
|
||||
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
||||
SEQUENCE:6
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
<
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
#
|
||||
# PUT an event with attendees
|
||||
#
|
||||
TYPE=PUT
|
||||
URL=http://regression.host/caldav.php/manager1/home/E1A13F04-iCal-schedule.ics
|
||||
HEADER=Content-Type: text/calendar
|
||||
HEADER=DAVKit/4.0.3 (732.2); CalendarStore/4.0.4 (997.7); iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)
|
||||
HEADER=If-Match: "87421a4ff0b84a95a31db428ee6d11d9"
|
||||
HEAD
|
||||
|
||||
AUTH=manager1:manager1
|
||||
|
||||
BEGINDATA
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//Apple Inc.//iCal 4.0.4//EN
|
||||
CALSCALE:GREGORIAN
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Pacific/Auckland
|
||||
BEGIN:DAYLIGHT
|
||||
TZOFFSETFROM:+1200
|
||||
RRULE:FREQ=YEARLY;BYMONTH=9;BYDAY=-1SU
|
||||
DTSTART:20070930T020000
|
||||
TZNAME:GMT+13:00
|
||||
TZOFFSETTO:+1300
|
||||
END:DAYLIGHT
|
||||
BEGIN:STANDARD
|
||||
TZOFFSETFROM:+1300
|
||||
RRULE:FREQ=YEARLY;BYMONTH=4;BYDAY=1SU
|
||||
DTSTART:20080406T030000
|
||||
TZNAME:GMT+12:00
|
||||
TZOFFSETTO:+1200
|
||||
END:STANDARD
|
||||
END:VTIMEZONE
|
||||
BEGIN:VEVENT
|
||||
CREATED:20111018T195845Z
|
||||
UID:E1A13F04-iCal-schedule
|
||||
DTEND;TZID=Pacific/Auckland:20111019T140000
|
||||
ATTENDEE;CN="Manager 1";CUTYPE=INDIVIDUAL;PARTSTAT=ACCEPTED:mailto:manag
|
||||
er1@example.net
|
||||
ATTENDEE;CN="user1@example.net";CUTYPE=INDIVIDUAL;EMAIL="user1@example.n
|
||||
et";PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:user1@ex
|
||||
ample.net
|
||||
TRANSP:OPAQUE
|
||||
SUMMARY:Meeting with User1
|
||||
DTSTART;TZID=Pacific/Auckland:20111019T130000
|
||||
DTSTAMP:20111024T035702Z
|
||||
ORGANIZER;CN="Manager 1":mailto:manager1@example.net
|
||||
SEQUENCE:6
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
ENDDATA
|
||||
|
||||
|
||||
QUERY
|
||||
SELECT caldav_data.user_no, caldav_data.dav_name,
|
||||
caldav_type, logged_user, caldav_data.caldav_data AS "vcalendar",
|
||||
summary
|
||||
FROM caldav_data JOIN calendar_item USING(dav_name) LEFT JOIN timezones ON (tz_id=tzid)
|
||||
WHERE calendar_item.uid = 'E1A13F04-iCal-schedule'
|
||||
ORDER BY caldav_data.dav_id
|
||||
ENDQUERY
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
setval
|
||||
--------
|
||||
1654
|
||||
1657
|
||||
(1 row)
|
||||
|
||||
setval
|
||||
|
||||
Reference in new issue
Block a user