Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whole-day recurring event with exceptions causing Internal server error #365

Open
tobixen opened this issue Oct 26, 2024 · 0 comments
Open

Comments

@tobixen
Copy link
Contributor

tobixen commented Oct 26, 2024

ref python-caldav/caldav#395, in commit 4fa67d25dd5c23e2fff3fd7b5ad9468f1ba1ebad in the caldav library, the testRecurringDateWithExceptionSearch breaks.

The injected icalendar data looks like this:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Mozilla.org/NONSGML Mozilla Calendar V1.1//EN
BEGIN:VEVENT
UID:c26921f4-0653-11ef-b756-58ce2a14e2e5
DTSTART;VALUE=DATE:20240411
DTEND;VALUE=DATE:20240412
DTSTAMP:20240429T181103Z
LAST-MODIFIED:20240429T181103Z
RRULE:FREQ=WEEKLY;INTERVAL=2
SEQUENCE:1
SUMMARY:Test
X-MOZ-GENERATION:1
END:VEVENT
BEGIN:VEVENT
UID:c26921f4-0653-11ef-b756-58ce2a14e2e5
RECURRENCE-ID;VALUE=DATE:20240425
DTSTART;VALUE=DATE:20240425
DTEND;VALUE=DATE:20240426
CREATED:20240429T181031Z
DTSTAMP:20240429T181103Z
LAST-MODIFIED:20240429T181103Z
SEQUENCE:1
SUMMARY:Test (edited)
X-MOZ-GENERATION:1
END:VEVENT
END:VCALENDAR

And the report query looks like this:

<?xml version='1.0' encoding='utf-8'?>
<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
  <D:prop>
    <C:calendar-data><C:expand start="20240330T230000Z" end="20240503T220000Z"/></C:calendar-data> 
  </D:prop>
  <C:filter>
    <C:comp-filter name="VCALENDAR"><C:comp-filter name="VEVENT"><C:time-range start="20240330T230000Z" end="20240503T220000Z"/></C:comp-filter></C:comp-filter></C:filter></C:calendar-query>

Editing the dates in the icalendar data above to timestamps (commit c3cefe97ceff91ae42eb9e3790d003b508b65115 in the caldav project) causes the problem to go away. Same with removing the expand prop in the search.

Is it still so that recurring tasks and expand isn't fully supported by xandikos? If it's not officially supported yet, then perhaps it's no point raising this as an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant