[Cosmo] Time Range Query Problem
Bobby Rullo
br at osafoundation.org
Wed Jan 11 13:10:46 PST 2006
Cosmo-ers,
This was not a bug per se - Cyrus pointed out that my time ranges
MUST be UTC, so changing that fixed everything.
Returning all the resources in the collection when you have a
malformed time-range though is probably not desired though.
bobby
On Jan 10, 2006, at 3:19 PM, Bobby Rullo wrote:
> 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>
More information about the Cosmo
mailing list