
andrew at morphoss
Jun 28, 2012, 4:43 AM
Post #2 of 2
(155 views)
Permalink
|
|
Re: Problem with calendar-query containing dates
[In reply to]
|
|
On Tue, 2012-06-26 at 09:22 +0200, techi [at] unmeaning wrote: > Hi all, > > i've got a problem with calendar-queries that contains a filter with dates. > > These query does not return any entries: > <?xml version="1.0" encoding="iso-8859-1" ?> > <C:calendar-query xmlns:D="DAV:" > xmlns:C="urn:ietf:params:xml:ns:caldav"> > <C:filter> > <C:comp-filter name="VCALENDAR"> > <C:comp-filter name="VEVENT"> > <C:time-range start="20110101T000001Z" > end="20111120T000001Z"/> > </C:comp-filter> > </C:comp-filter> > </C:filter> > </C:calendar-query> > > > If i change the query to > <?xml version="1.0" encoding="utf-8" ?> > <C:calendar-query xmlns:D="DAV:" > xmlns:C="urn:ietf:params:xml:ns:caldav"> > <C:filter> > <C:comp-filter name="VCALENDAR"> > <C:comp-filter name="VEVENT"> > </C:comp-filter> > </C:comp-filter> > </C:filter> > </C:calendar-query> > > Davical returning all my calendar entries. I can change the date in the > first query to any date, it never returns an entry. > > The response status code is 200 in both cases. > > Any ideas? It does rather seem like a bug. Requests in DAViCal's regression tests look like this: <?xml version="1.0" encoding="UTF-8"?> <calendar-query xmlns:D="DAV:" xmlns="urn:ietf:params:xml:ns:caldav"> <D:prop> <calendar-data/> </D:prop> <filter> <comp-filter name="VCALENDAR"> <comp-filter name="VEVENT"> <time-range start="20061125T110000Z" end="20070107T110000Z"/> </comp-filter> </comp-filter> </filter> </calendar-query> Where the obvious difference is that they are sending through the <DAV::prop> ... </DAV::prop> list of properties that are to be reported, and while the RFC says you can omit this I can well believe that DAViCal is expecting it to be there. I expect it's a fairly small fix. A workaround would be to specify some properties, or <allprop/> Regards, Andrew. -- ------------------------------------------------------------------------ andrew (AT) morphoss (DOT) com +64(272)DEBIAN There are only two kinds of tequila. Good and better. ------------------------------------------------------------------------
|