#
# Attempt to put an event containing odd characters
#
TYPE=PUT
URL=http://regression.host/caldav.php/User%20Six/home/c0f7c860-1345-012d-125f-002421a2359e.ics

HEADER=Content-Type: text/calendar; charset=utf-8
AUTH=User Six:user6

BEGINDATA
BEGIN:VCALENDAR
PRODID:-//Open Source Applications Foundation//NONSGML Chandler Server//E
 N
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
X-TZINFO:America/Los_Angeles[2007g/Partial@883612800000]
BEGIN:DAYLIGHT
TZOFFSETTO:-0700
TZOFFSETFROM:-0800
TZNAME:America/Los_Angeles(DST)
DTSTART:19980405T020000
RRULE:FREQ=YEARLY;UNTIL=20060403T100000Z;BYMONTH=4;BYDAY=1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETTO:-0800
TZOFFSETFROM:-0700
TZNAME:America/Los_Angeles(STD)
DTSTART:19981025T020000
RRULE:FREQ=YEARLY;UNTIL=20061030T100000Z;BYMONTH=10;BYDAY=-1SU
END:STANDARD
BEGIN:DAYLIGHT
TZOFFSETTO:-0700
TZOFFSETFROM:-0800
TZNAME:America/Los_Angeles(DST)
DTSTART:20070311T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=2SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETTO:-0800
TZOFFSETFROM:-0700
TZNAME:America/Los_Angeles(STD)
DTSTART:20071104T020000
RRULE:FREQ=YEARLY;BYMONTH=11;BYDAY=1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
LAST-MODIFIED:20100316T162103Z
SEQUENCE:4
UID:c0f7c860-1345-012d-125f-002421a2359e
SUMMARY:2nd Annual Lobsterfest: will you come?
DESCRIPTION:2nd Annual Lobsterfest\nSaturday\, August 7\nTime to be annou
 nced\, @Chamisal Vineyards @1pm\n$85 members\; $100 non members. Inquire for s
 pecial group pricing. Will you come?
DTSTART;TZID=America/Los_Angeles:20100807T000000
CREATED:20100316T162026Z
DTSTAMP:20100316T162103Z
DURATION:P1D
LOCATION:Chamisal Vineyards\\, Oregon
X-VENUE:Chamisal Vineyards
END:VEVENT
END:VCALENDAR
ENDDATA

QUERY
SELECT caldav_data.caldav_data AS "Event Data", caldav_data.dav_name, caldav_data.dav_etag, dtstart, summary, description
  FROM caldav_data JOIN calendar_item USING(dav_name)
  WHERE caldav_data.dav_name ~ 'c0f7c860-1345-012d-125f-002421a2359e.ics'
ENDQUERY


