Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar provider can not provide shared calendars #30068

Open
Tracked by #3786
ChristophWurst opened this issue Dec 3, 2021 · 1 comment
Open
Tracked by #3786

Calendar provider can not provide shared calendars #30068

ChristophWurst opened this issue Dec 3, 2021 · 1 comment
Assignees
Labels
1. to develop Accepted and waiting to be taken care of 25-feedback bug feature: caldav Related to CalDAV internals feature: dav integration

Comments

@ChristophWurst
Copy link
Member

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.

@ChristophWurst ChristophWurst added bug 0. Needs triage Pending check for reproducibility or if it fits our roadmap 1. to develop Accepted and waiting to be taken care of feature: dav integration 23-feedback and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Dec 3, 2021
@tcitworld tcitworld added the feature: caldav Related to CalDAV internals label Dec 17, 2021
@szaimen

This comment was marked as resolved.

@szaimen szaimen added needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap and removed 1. to develop Accepted and waiting to be taken care of labels Jan 9, 2023
@szaimen szaimen closed this as completed Mar 6, 2023
@ChristophWurst ChristophWurst added 1. to develop Accepted and waiting to be taken care of and removed needs info 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Apr 19, 2024
@SebastianKrupinski SebastianKrupinski self-assigned this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of 25-feedback bug feature: caldav Related to CalDAV internals feature: dav integration
Projects
Status: 📄 To do
Development

No branches or pull requests

4 participants