Skip to content

fix(dav): handle missing calendar display properties - #66052

Open
joshtrichards wants to merge 6 commits into
masterfrom
jtr/fix-CalDav-MissingDisplayProperties
Open

joshtrichards wants to merge 6 commits into
masterfrom
jtr/fix-CalDav-MissingDisplayProperties

Conversation

@joshtrichards

@joshtrichards joshtrichards commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Summary

Handle missing calendar display metadata consistently with the nullable ICalendar contract.

Changes:

  • Make getDisplayName() and getDisplayColor() return null when their metadata keys are absent in regular, cached-subscription, and federated calendars.
  • Add regression tests for all three implementations.

TODO

  • Backport?

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Return null when calendar metadata omits the optional display name or color properties, matching the nullable ICalendar contract.

Signed-off-by: Josh <josh.t.richards@gmail.com>
…tionImpl

Align with ICalendar contract

Signed-off-by: Josh <josh.t.richards@gmail.com>
…darImpl

Align implementation with ICalendar contract

Fixes #59587

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>

This branch has not been deployed

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

Labels

3. to review Waiting for reviews bug feature: caldav Related to CalDAV internals feature: federation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Federated calendar without calendar-color property triggers PHP warning in FederatedCalendarImpl

1 participant