Skip to content

[Bug]: Recurring calendar events get ignored in free/busy display when trying to schedule a new event #6740

Open

Description

@zilti

⚠️ This issue respects the following points: ⚠️

Bug description

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

  1. Subscribe to a CalDAV calendar
  2. Create a new event on your main calendar
  3. Get to the "Choose time" dialog
  4. 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?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Activity

  1. SebastianKrupinski commented on Feb 18, 2025

    @SebastianKrupinski
    Contributor

    Hi @zilti

    Thank you for the bug report.

    Just to clarify you are talking about the the time slots here?

    Image

  2. zilti commented on Feb 18, 2025

    @zilti
    Author

    Yes, that's the one 👍

  3. zilti commented on Feb 18, 2025

    @zilti
    Author

    I looked at the .ics file, the two events in question are:

    Non-recurring event that gets shown as a "busy" time block correctly:

    BEGIN:VEVENT
    DTSTART:20250220T104500Z
    DTEND:20250220T120000Z
    DTSTAMP:20250218T152915Z
    UID:4h2irbvbm0lki3gduaotvvdnd5@google.com
    ATTENDEE;X-NUM-GUESTS=0:mailto:redacted@redacted.com
    SUMMARY:Busy
    END:VEVENT
    

    Recurring event that does not get shown:

    BEGIN:VEVENT
    DTSTART:20250220T130000Z
    DTEND:20250220T140000Z
    DTSTAMP:20250218T152915Z
    UID:3v16vqatk3o02qd9jclt4vv91b_R20250206T130000@google.com
    ATTENDEE;X-NUM-GUESTS=0:mailto:redacted@redacted.com
    RECURRENCE-ID:20250220T130000Z
    SUMMARY:Busy
    END:VEVENT
    

    (UIDs have been altered; the timestamp part of the second UID is kept intact.)

  4. SebastianKrupinski commented on Feb 19, 2025

    @SebastianKrupinski
    Contributor

    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.

  5. added
    Feature: Scheduling
    on Apr 4, 2025
  6. added
    0. to triage
    1. to develop
    and removed
    0. to triage
    on Apr 23, 2025
  7. dkehne commented on Oct 15, 2026

    @dkehne

    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:

    1. Upstream PR to sabre-io/vobject. The related RDATE fix in the same code block (fix: include RDATE in busy calculation sabre-io/vobject#691) is still open, though.
    2. Ship it as a patch in nextcloud/3rdparty (composer.patches.json), the same way as the existing sabre-vobject-rdate.patch, referencing the upstream PR.

    Would be great if someone could work on a fix here :)

  8. SebastianKrupinski commented on Oct 16, 2026

    @SebastianKrupinski
    Contributor

    @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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

1. to developFeature: Schedulingbughotspot: recurring events

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions