[Cosmo] Time Range Query Problem

Bobby Rullo br at osafoundation.org
Tue Jan 10 12:19:33 PST 2006


I'm having some problem with time range queries and expansion. Right  
now I'll just focus on time-range, since that might be the root of  
all my problems.

So I PUT a single event in a collection. The event start and end  
times are both in 2005. I then queried using the REPORT request seen  
below, which should only be getting VEVENT's in the year 2300.

Yet for some reason the 2005 VEVENT (with TZ) is returned to me.

Does anyone have any ideas? Could it be my query? I originally had a  
<calendar-data> element in there as well, but took it out to simplify  
stuff. No matter what I do I seem to get all the resources returned.

Bobby


REPORT /home/test/collection HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/2.0.2
Host: localhost:8080
Content-Length: 333

<?xml version="1.0"?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
     <C:filter>
         <C:comp-filter name="VCALENDAR">
             <C:comp-filter name="VEVENT">
                 <C:time-range end="23000109" start="23000101"/>
             </C:comp-filter>
         </C:comp-filter>
     </C:filter>
</C:calendar-query>

HTTP/1.1 207 Multi-Status
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Content-Type: text/xml;charset=UTF-8
Content-Length: 1826
Date: Tue, 10 Jan 2006 20:08:51 GMT

<?xml version="1.0" encoding="UTF-8"?>
<D:multistatus xmlns:D="DAV:"><D:response><D:href>http://localhost: 
8080/home/test/collection/singleEvent.ics</ 
D:href><D:propstat><D:prop><D:getlastmodified>Tue, 10 Jan 2006  
20:04:46 GMT</D:getlastmodified><D:getetag>"689-1136923486977"</ 
D:getetag><calendar:uid xmlns:calendar="http://osafoundation.org/ 
calendar">66be2585-327b-4cc1-93a7-d0e6de648183</ 
calendar:uid><D:displayname>singleEvent.ics</ 
D:displayname><D:supportedlock><D:lockentry><D:lockscope><D:exclusive /> 
</D:lockscope><D:locktype><D:write /></D:locktype></D:lockentry></ 
D:supportedlock><D:iscollection>0</ 
D:iscollection><D:getcontentlength>689</ 
D:getcontentlength><D:getcontenttype>text/calendar; charset="UTF-8"</ 
D:getcontenttype><D:creationdate>2006-01-10T20:04:46Z</ 
D:creationdate><D:resourcetype /><D:lockdiscovery /><C:calendar-data  
xmlns:C="urn:ietf:params:xml:ns:caldav">BEGIN:VCALENDAR&#xD;
PRODID:-//Open Source Applications Foundation//NONSGML Scooby Server// 
EN&#xD;VERSION:2.0&#xD;
CALSCALE:GREGORIAN&#xD;
BEGIN:VTIMEZONE&#xD;
LAST-MODIFIED:20040110T032845Z&#xD;
TZID:US-Eastern&#xD;
BEGIN:DAYLIGHT&#xD;
DTSTART:19900404T010000&#xD;
RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4&#xD;
TZNAME:EDT&#xD;
TZOFFSETFROM:-0500&#xD;
TZOFFSETTO:-0400&#xD;
END:DAYLIGHT&#xD;
BEGIN:STANDARD&#xD;
DTSTART:19901026T060000&#xD;
RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10&#xD;
TZNAME:EST&#xD;
TZOFFSETFROM:-0400&#xD;
TZOFFSETTO:-0500&#xD;
END:STANDARD&#xD;
END:VTIMEZONE&#xD;
BEGIN:VEVENT&#xD;
UID:66be2585-327b-4cc1-93a7-d0e6de648183&#xD;
DTSTART:20051103T170054&#xD;
DTEND:20051103T210054&#xD;
DESCRIPTION:This is a description.&#xD;
SUMMARY:Welcome to Scooby!&#xD;
END:VEVENT&#xD;
END:VCALENDAR&#xD;
</C:calendar-data></D:prop><D:status>HTTP/1.1 200 OK</D:status></ 
D:propstat></D:response></D:multistatus>



More information about the Cosmo mailing list