Skip to content

[stable-34.0] fix(file-provider): invalidate lock tokens when file paths change. - #10185

Merged
mgallien merged 3 commits into
stable-34.0from
backport/10135/stable-34.0
Jun 15, 2026
Merged

[stable-34.0] fix(file-provider): invalidate lock tokens when file paths change. #10185
mgallien merged 3 commits into
stable-34.0from
backport/10135/stable-34.0

Conversation

@backportbot

@backportbot backportbot Bot commented Jun 15, 2026

Copy link
Copy Markdown

Backport of PR #10135

WebDAV lock tokens are bound to the path they were issued for.
When a parent folder moves, child lock tokens become stale and
cause 412/423 upload failures. Clear tokens on rename propagation,
server metadata sync, and upload lock errors.

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: Camila Ayres <hello@camilasan.com>
Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: Camila Ayres <hello@camilasan.com>
testParent404ReportsParentAsDeleted wrote metadata then awaited the
enumerator without holding a Realm reference. Under parallel testing the
in-memory store was freed before the enumerator reopened it on another
thread, so the materialized-items query came back empty and the 404 parent
was never reported deleted. Retain the Realm for each test lifetime.

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Camila Ayres <hello@camilasan.com>
@backportbot
backportbot Bot requested a review from i2h3 June 15, 2026 07:24
@backportbot backportbot Bot added this to the 34.0.0 milestone Jun 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Artifact containing the AppImage: nextcloud-appimage-pr-10185.zip

Digest: sha256:47059e8605148d59832af080b125ebcd2e7f339f3508f54713731583f1f68d58

To test this change/fix you can download the above artifact file, unzip it, and run it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien
mgallien merged commit cc88596 into stable-34.0 Jun 15, 2026
25 of 31 checks passed
@mgallien
mgallien deleted the backport/10135/stable-34.0 branch June 15, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants