Mailing List Archive

Possible found bug
Hi Andrew,

Given this VEVENT:
BEGIN:VCALENDAR
PRODID:-//CalDAV Calendar//NONSGML libcaldav//EN
VERSION:2.0
BEGIN:VEVENT
CREATED:20100329T230903Z
LAST-MODIFIED:20100410T213832Z
DTSTAMP:20100410T213832Z
UID:libkcal-923635875.56
SUMMARY:testing from Kontact again
RRULE:FREQ=WEEKLY;COUNT=2;BYDAY=TU
EXDATE;VALUE=DATE:20100423
DTSTART;VALUE=DATE:20100423
DTEND;VALUE=DATE:20100424
TRANSP:OPAQUE
X-MOZ-GENERATION:2
SEQUENCE:1
END:VEVENT
END:VCALENDAR

And events does show up in a calendar client 2010/04/27 (first Tuesday
after 2010/04/23) one should expect to get a response sending this
request:
<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop xmlns:D="DAV:">
<C:calendar-data/>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20100426T010000Z" end="20100428T010000Z"/>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>
But nothing is returned

To get the event returned this query is needed (smallest possible
range):
<?xml version="1.0" encoding="utf-8" ?>
<C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
<D:prop xmlns:D="DAV:">
<C:calendar-data/>
</D:prop>
<C:filter>
<C:comp-filter name="VCALENDAR">
<C:comp-filter name="VEVENT">
<C:time-range start="20100426T010000Z" end="20100430T010000Z"/>
</C:comp-filter>
</C:comp-filter>
</C:filter>
</C:calendar-query>

Is there something I have misunderstood?

--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
Make it right before you make it faster.
- The Elements of Programming Style (Kernighan & Plaugher)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100411/edd54544/attachment.pgp>
-------------- next part --------------
Possible found bug [ In reply to ]
On Sun, 11 Apr 2010 00:03:38 +0200
Michael Rasmussen <mir at datanom.net> wrote:

>
> Is there something I have misunderstood?
>
A FREEBUSY REPORT shows the same behaviour:
<?xml version="1.0" encoding="utf-8" ?>
<C:free-busy-query xmlns:D="DAV:"
xmlns:C="urn:ietf:params:xml:ns:caldav">
<C:time-range start="20100426T010000Z" end="20100430T010000Z"/>
</C:free-busy-query>

BEGIN:VCALENDAR
PRODID:-//davical.org//NONSGML AWL Calendar//EN
VERSION:2.0
BEGIN:VFREEBUSY
DTSTAMP:20100411T000539Z
DTSTART:20100426T010000Z
DTEND:20100430T010000Z
FREEBUSY:20100427T220000/20100428T220000
END:VFREEBUSY
END:VCALENDAR

--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
You will have domestic happiness and faithful friends.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100411/2b372759/attachment.pgp>
-------------- next part --------------
Possible found bug [ In reply to ]
On Sun, 2010-04-11 at 00:03 +0200, Michael Rasmussen wrote:
> Hi Andrew,

Yeah, I've recently found a similar issue elsewhere: that a weekly event
sometimes does not show in a query that should show only a single
instance. Or something like that - possibly it's also related to
daylight time switching .

I'm still tracking down the exact cause of the bug. Meanwhile, in 0.9.9
there is a much enhanced RRule processing library (better, faster, more
comprehensive :-) introduced in order to handle server-side expansion of
repeating events, which hasn't been supported previously.

I think ultimately the solution will be to switch all repeat expansion
code over to the new library, which should resolve this issue and
provide a performance boost at the same time.

I really think that I need to push 0.9.9 out before fixing this though,
as it is otherwise stable and this problem has been around for a couple
of years without being reported. No doubt an artifact of most people
looking at their calendars in a monthly view, and most caldav clients
not doing calendar-query reports (with lightning the notable exception).

I think I'd like to tackle this for 0.9.9.1 though.

Cheers,
Andrew.

>
> Given this VEVENT:
> BEGIN:VCALENDAR
> PRODID:-//CalDAV Calendar//NONSGML libcaldav//EN
> VERSION:2.0
> BEGIN:VEVENT
> CREATED:20100329T230903Z
> LAST-MODIFIED:20100410T213832Z
> DTSTAMP:20100410T213832Z
> UID:libkcal-923635875.56
> SUMMARY:testing from Kontact again
> RRULE:FREQ=WEEKLY;COUNT=2;BYDAY=TU
> EXDATE;VALUE=DATE:20100423
> DTSTART;VALUE=DATE:20100423
> DTEND;VALUE=DATE:20100424
> TRANSP:OPAQUE
> X-MOZ-GENERATION:2
> SEQUENCE:1
> END:VEVENT
> END:VCALENDAR
>
> And events does show up in a calendar client 2010/04/27 (first Tuesday
> after 2010/04/23) one should expect to get a response sending this
> request:
> <?xml version="1.0" encoding="utf-8" ?>
> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
> <D:prop xmlns:D="DAV:">
> <C:calendar-data/>
> </D:prop>
> <C:filter>
> <C:comp-filter name="VCALENDAR">
> <C:comp-filter name="VEVENT">
> <C:time-range start="20100426T010000Z" end="20100428T010000Z"/>
> </C:comp-filter>
> </C:comp-filter>
> </C:filter>
> </C:calendar-query>
> But nothing is returned
>
> To get the event returned this query is needed (smallest possible
> range):
> <?xml version="1.0" encoding="utf-8" ?>
> <C:calendar-query xmlns:C="urn:ietf:params:xml:ns:caldav">
> <D:prop xmlns:D="DAV:">
> <C:calendar-data/>
> </D:prop>
> <C:filter>
> <C:comp-filter name="VCALENDAR">
> <C:comp-filter name="VEVENT">
> <C:time-range start="20100426T010000Z" end="20100430T010000Z"/>
> </C:comp-filter>
> </C:comp-filter>
> </C:filter>
> </C:calendar-query>
>
> Is there something I have misunderstood?
>

------------------------------------------------------------------------
andrew (AT) morphoss (DOT) com +64(272)DEBIAN
You will be married within a year, and divorced within two.
------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.morphoss.com/pipermail/davical-users/attachments/20100413/2458c2f4/attachment.pgp>
-------------- next part --------------