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

iCalendar export plugin returns empty result when using start or end filters #1148

Open
lbeziaud opened this issue Jun 25, 2017 · 2 comments

Comments

@lbeziaud
Copy link

Exporting my calendar to ICS returns the expected result:

GET /cal.php/calendars/user/default?export

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//SabreDAV//SabreDAV 3.1.3//EN
X-WR-CALNAME:Default calendar
X-APPLE-CALENDAR-COLOR:
BEGIN:VEVENT
UID:20170625T144745Z-25430-1000-1-2@XXX
DTSTAMP:20170625T144433Z
DTSTART:20170626T140000Z
DTEND:20170626T150000Z
SEQUENCE:3
SUMMARY:XXX
LOCATION:XXX
TRANSP:OPAQUE
CLASS:PUBLIC
CREATED:20170625T175929Z
LAST-MODIFIED:20170625T180136Z
END:VEVENT
END:VCALENDAR

But adding the start and/or end options filters out everything, returning an empty calendar:

GET /cal.php/calendars/user/default?export&start=42

BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//SabreDAV//SabreDAV 3.1.3//EN
X-WR-CALNAME:Default calendar
X-APPLE-CALENDAR-COLOR:
END:VCALENDAR
@lbeziaud
Copy link
Author

The documentation mentions that "Using start, end or expand automatically filters out VTODO and VJOURNAL, because only VEVENT is currently supported." It is not the case. Adding componentType=VEVENT resolves the issue.

This should be done automatically in generateResponse as calendarQuery will ignore the time-range filter if $componentType != "VEVENT".

@evert evert transferred this issue from sabre-io/Baikal Apr 27, 2019
@relikd
Copy link

relikd commented Oct 20, 2021

Came here to say the same thing ... 4 years later ... Thanks for the workaround &componentType=VEVENT

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

2 participants