Skip to content

fix(dav): allow ExternalCalendar as schedule-default-calendar-URL - #61602

Open
stephan1827 wants to merge 1 commit into
nextcloud:masterfrom
stephan1827:fix/external-calendar-schedule-default
Open

stephan1827 wants to merge 1 commit into
nextcloud:masterfrom
stephan1827:fix/external-calendar-schedule-default

Conversation

@stephan1827

@stephan1827 stephan1827 commented Jun 25, 2026 •

Copy link
Copy Markdown

Summary

You can not set external calendars as default calendar. The attached code fixes that.

When a user tries to set an ExternalCalendar (e.g. from integration_davc)
as the default calendar for scheduling, CustomPropertiesBackend::validateProperty()
rejects it with 'No such calendar' because it only accepts instances of
OCA\DAV\CalDAV\Calendar, not OCA\DAV\CalDAV\Integration\ExternalCalendar.

ExternalCalendar is already imported in the file but was unused in the
instanceof check. Extend the validation to also accept ExternalCalendar
nodes, running a simplified check (VEVENT support only) since these
calendars are always writable and cannot be subscriptions, shared, or
deleted.

Signed-off-by: stephan1827 <stephan@stricker.cloud>
@stephan1827
stephan1827 requested a review from a team as a code owner June 25, 2026 18:21
@stephan1827
stephan1827 requested review from ArtificialOwl, icewind1991, leftybournes and provokateurin and removed request for a team June 25, 2026 18:21
@susnux susnux added the community pull requests from community label Jun 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

@provokateurin

Copy link
Copy Markdown
Member

Your PR description is AI-written, so I'm closing it as per our AI policy: https://github.com/nextcloud/.github/blob/master/AI_POLICY.md#human-written-communication
If you disagree and my judgement was wrong, feel free to re-open this PR.

@stephan1827

Copy link
Copy Markdown
Author

Why would you reject just because it was AI written? There is clear description and a small code change that takes like 2 minutes to review.

@provokateurin

provokateurin commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

It doesn't matter how small or important the change is, you didn't follow our AI policy.
You are free to just write the description yourself and re-open the PR.

@stephan1827

Copy link
Copy Markdown
Author

ok, I changed it

@provokateurin

Copy link
Copy Markdown
Member

Thanks!

@provokateurin provokateurin reopened this Sep 24, 2026
@icewind1991

Copy link
Copy Markdown
Member

The change seems fine in general, but it would probably be better to adjust DefaultCalendarValidator to support ExternalCalendar to keep the checks centralized and prevent them becoming out of sync in the future

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

community pull requests from community feedback-requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants