mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-21 09:20:47 +00:00
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
#
|
|
# Attempt to put an event into a calendar within a collection in their normal home
|
|
#
|
|
TYPE=PUT
|
|
URL=http://regression.host/caldav.php/user4/base/calendar/anothergoodleopard.ics
|
|
|
|
HEADER=Content-Type: text/calendar; charset=utf-8
|
|
AUTH=user4:user4
|
|
HEAD
|
|
|
|
DOSQL
|
|
DELETE FROM caldav_data WHERE caldav_data.caldav_data LIKE '%UID:70399cd7-50a4-4be4-a665-af593e19a7fd%';
|
|
ENDDOSQL
|
|
|
|
|
|
BEGINDATA
|
|
BEGIN:VCALENDAR
|
|
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
|
|
VERSION:2.0
|
|
BEGIN:VEVENT
|
|
CREATED:20100319T103247Z
|
|
LAST-MODIFIED:20100319T105620Z
|
|
DTSTAMP:20100319T105620Z
|
|
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: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:user1
|
|
@example.net
|
|
ATTENDEE;RSVP=TRUE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT:mailto:user5
|
|
@example.net
|
|
DTSTART:20100322T160000
|
|
DTEND:20100322T170000
|
|
X-MOZ-GENERATION:3
|
|
TRANSP:OPAQUE
|
|
X-MOZ-SEND-INVITATIONS:TRUE
|
|
SEQUENCE:1
|
|
END:VEVENT
|
|
END:VCALENDAR
|
|
ENDDATA
|
|
|
|
QUERY
|
|
SELECT caldav_data.dav_name, caldav_data.dav_etag, dtstart, summary
|
|
FROM caldav_data JOIN calendar_item USING(dav_name)
|
|
WHERE caldav_data.dav_name ~ '/user4/base/calendar/'
|
|
ENDQUERY
|
|
|
|
QUERY
|
|
SELECT dav_name, dtstamp, created
|
|
FROM calendar_item
|
|
WHERE uid = '70399cd7-50a4-4be4-a665-af593e19a7fd'
|
|
ORDER BY dav_id
|
|
ENDQUERY
|