Skip to content

Calendar lookup by name or id only searches the first calendar-home-set #890

Backlog

Description

@tobixen

Disclaimer: AI-generated text below the line, generated by Claude Opus 5.5, from the review of #889, and the prompt:

File as a github issue


Follow-up to #888 and #889.

With #889, get_calendars() lists the calendars under every href in a calendar-home-set (RFC 4791 section 6.2.1 allows several; Stalwart with WebDav.enableAssistedDiscovery off lists one per account sharing calendars with the user). Principal.calendar_home_set deliberately stays the first href, the user's own home, so that make_calendar() never creates a calendar in somebody else's home.

The lookups still go through calendar_home_set, though:

  • principal.calendar(name=...) / principal.calendar(cal_id=...) (caldav/collection.py)
  • get_calendars(calendar_name=...) in caldav/base_client.py

So a shared calendar shows up in principal.get_calendars(), but looking it up by name or id raises NotFoundError or skips it. The lookups should search the combined list (or the docs should say they only cover the user's own home).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions