Repository navigation
Conversation
Signed-off-by: SelfRef <git@selfref.dev>
SelfRef
requested review from
ChristophWurst,
SebastianKrupinski and
tcitworld
as code owners
October 30, 2026 12:56
SebastianKrupinski
approved these changes
Oct 30, 2026
Contributor
|
/backport to stable35 |
Contributor
|
/backport to stable34 |
Contributor
|
/backport to stable33 |
Contributor
|
/backport to stable32 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A
sync-collectionREPORT on a cached webcal subscription (X-NC-CalDAV-Webcal-Caching: On) answers with another calendar's changes.CachedSubscription::getChanges()passes the call on toSabre\CalDAV\Calendar::getChanges(), which callsgetChangesForCalendar()without a calendar type. The backend then uses the defaultCALENDAR_TYPE_CALENDAR, so it readsoc_calendarsandoc_calendarchangesfor the regular calendar whose id matches the subscription's id.What clients see:
null.The other methods of
CachedSubscription(getChild,getChildren,getMultipleChildren,childExists,calendarQuery) already passCALENDAR_TYPE_SUBSCRIPTION.getChanges()now does too. The refresh job already records the subscription's changes under that type (addChanges(…, CALENDAR_TYPE_SUBSCRIPTION)), so incremental sync works as it does for regular calendars.Reproduce
On a fresh instance (
allow_local_remote_serverson, so the feed can be served locally):personal(calendar id 1).RefreshWebcalJob.sync-collectionwith an empty token to the subscription, withX-NC-CalDAV-Webcal-Caching: On.Before (
oc_calendars:personalsynctoken 3;oc_calendarsubscriptions:feedsynctoken 2):No events, and
personal's token.After:
The feed's event, and the subscription's own token.
Found while adding support for subscriptions to a CalDAV client, which uses sync-collection for every calendar.
TODO
CachedSubscriptionTest::testGetChanges; it fails without the fix)Checklist
3. to review, feature component)stable32)AI (if applicable)