#
# Test REPORT access to a non-public calendar using a ticket.
#
TYPE=REPORT
URL=http://regression.host/caldav.php/user5/home/
AUTH=user5:user5


HEADER=User-Agent: DAViCalTester/public
HEADER=Content-Type: text/xml; charset="UTF-8"
HEAD


BEGINDATA
<?xml version="1.0" encoding="UTF-8"?>
<calendar-query xmlns:D="DAV:" xmlns="urn:ietf:params:xml:ns:caldav">
  <D:prop>
    <calendar-data>
      <expand start="20100901T000000Z" end="20101231T000000Z"/>
    </calendar-data>
  </D:prop>
  <filter>
    <comp-filter name="VCALENDAR">
      <comp-filter name="VEVENT">
        <time-range start="20100901T000000Z" end="20101231T000000Z"/>
      </comp-filter>
    </comp-filter>
  </filter>
</calendar-query>
ENDDATA


QUERY
SELECT dav_name,
       dtstart, dtstart AT TIME ZONE 'UTC' AS dtstart_utc,
       rrule
  FROM calendar_item
 WHERE dav_name ~ '^/user5/home/'
   AND rrule IS NOT NULL
   AND dtstart < '20101201T000000Z'
ENDQUERY

