Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DAViCal: General

Problem with calendar-query containing dates

 

 

DAViCal general RSS feed   Index | Next | Previous | View Threaded


techi at unmeaning

Jun 26, 2012, 12:22 AM

Post #1 of 2 (173 views)
Permalink
Problem with calendar-query containing dates

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?

Regards,
Niki




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Davical-general mailing list
Davical-general [at] lists
https://lists.sourceforge.net/lists/listinfo/davical-general


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.
------------------------------------------------------------------------
Attachments: signature.asc (0.82 KB)

DAViCal general RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.