You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Recurring calendar events get ignored in free/busy display when trying to schedule a new event #6740
When trying to schedule a new calendar event, recurring events are not shown as "busy" times in the time selector; meanwhile, one-off events from the same CalDAV calendar do get shown as "busy" blocks.
Steps to reproduce
Subscribe to a CalDAV calendar
Create a new event on your main calendar
Get to the "Choose time" dialog
One-off events from the CalDAV calendar will be shown as "busy" time blocks, recurring events however will not.
Expected behavior
Recurring events should be shown as "busy" time blocks as well.
Nextcloud Server version
29
Operating system
Other
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
We can confirm this and we are "kind of happy" that we have found the issue here (instead of opening a new one).
Root cause might be server-side, in sabre/vobject, not in the Calendar app. The event from the report is an orphaned override: it has RECURRENCE-ID but no master component in the same object. That's typical when someone is invited to a single occurrence of a series.
FreeBusyGenerator::calculateBusy() only iterates getBaseComponents(), which excludes every VEVENT with RECURRENCE-ID. This affects "Find a time" (via the outbox free/busy request) and the room availability check alike.
What could be a fix is that after processing the base components, also handle VEVENTs with RECURRENCE-ID whose UID has no base component. Treat each one like a single, non-recurring event, honoring its own TRANSP/STATUS. That's roughly 20–30 lines plus a test.
Activity
SebastianKrupinski commentedon Feb 18, 2025
Hi @zilti
Thank you for the bug report.
Just to clarify you are talking about the the time slots here?
zilti commentedon Feb 18, 2025
Yes, that's the one 👍
zilti commentedon Feb 18, 2025
I looked at the .ics file, the two events in question are:
Non-recurring event that gets shown as a "busy" time block correctly:
Recurring event that does not get shown:
(UIDs have been altered; the timestamp part of the second UID is kept intact.)
SebastianKrupinski commentedon Feb 19, 2025
Hi @zilti
It did a few quick tests, but you are correct there is a issue. We will add it our list of todo's.
dkehne commentedon Oct 15, 2026
We can confirm this and we are "kind of happy" that we have found the issue here (instead of opening a new one).
Root cause might be server-side, in sabre/vobject, not in the Calendar app. The event from the report is an orphaned override: it has RECURRENCE-ID but no master component in the same object. That's typical when someone is invited to a single occurrence of a series.
FreeBusyGenerator::calculateBusy() only iterates getBaseComponents(), which excludes every VEVENT with RECURRENCE-ID. This affects "Find a time" (via the outbox free/busy request) and the room availability check alike.
What could be a fix is that after processing the base components, also handle VEVENTs with RECURRENCE-ID whose UID has no base component. Treat each one like a single, non-recurring event, honoring its own TRANSP/STATUS. That's roughly 20–30 lines plus a test.
Two possible routes:
Would be great if someone could work on a fix here :)
SebastianKrupinski commentedon Oct 16, 2026
@dkehne
The correct fix is the RDATE one in the sabre repo... I've asked to get it pushed through
Thanks for bumping the issue to remind me