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]: Federated calendar without calendar-color property triggers PHP warning in FederatedCalendarImpl #59587
When an incoming federated calendar is rendered and the federated calendar info does not contain the Apple iCal calendar-color property, Nextcloud logs a PHP warning instead of handling the missing value gracefully.
Share a calendar from instance A to a user on instance B.
Open the dashboard or another view on instance B that loads the federated calendar metadata.
Check nextcloud.log on instance B.
Expected behavior
Missing calendar-color data should be handled gracefully, for example by returning null or a default/fallback color without logging a PHP warning.
Actual behavior
A PHP warning is logged because FederatedCalendarImpl reads the '{http://apple.com/ns/ical/}calendar-color' array key unconditionally.
Environment
Nextcloud Server: 33.0.2.2
Calendar app: 6.2.2
PHP: 8.4
OS: Debian 13
Web server: Nginx
Additional information
From local debugging on the affected instance, the federated calendar data passed into FederatedCalendarImpl can exist without the '{http://apple.com/ns/ical/}calendar-color' key, but FederatedCalendarImpl::getDisplayColor() accesses that key directly.
A local null-check workaround stops the warning, but this should be handled upstream.
Activity
kesselb commentedon Apr 13, 2026
cc @SebastianKrupinski @hamza221
fix(dav): handle missing calendar display properties - FederatedCalen…
fix(dav): handle missing calendar display properties - FederatedCalen…