Skip to content

Calendar provider can not provide shared calendars #30068

@ChristophWurst

Description

@ChristophWurst

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Use \OC\Calendar\Manager::getCalendarsForPrincipal with an empty array of calendar URIs (search all)
  • -> Get a full list of owned and shared calendars
  1. Use \OC\Calendar\Manager::getCalendarsForPrincipal to load one of those owned calenars
  • -> Get that calendar object
  1. Use \OC\Calendar\Manager::getCalendarsForPrincipal to load one of the shared calendars

Expected behavior

Get the shared calendar object.

Actual behavior

Run into an error because the calendar isn't found

Server configuration

Nextcloud version: 23.0


\OCA\DAV\CalDAV\CalendarProvider::getCalendars calls \OCA\DAV\CalDAV\CalDavBackend::getCalendarsForUser and that doesn't work with shared URIs. We'll have to decode the shared_by parts or apply another trick to detect that an URI represents a shared calendar.

Metadata

Metadata

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions