Repository navigation
[stable35] fix(locks): let users delete, rename and move files nobody else is editing - #9702
Merged
Merged
Conversation
backportbot
Bot
requested review from
max-nextcloud,
mejo- and
silverkszlo
as code owners
November 26, 2026 08:10
mejo-
approved these changes
Nov 26, 2026
mejo-
enabled auto-merge
November 26, 2026 08:11
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…iting Text locks a file while it is edited, and the lock belongs to no user. Deleting, renaming or moving the file over WebDAV therefore failed with 423 Locked, also for the only person editing it, for example when deleting it from the editor's own menu in the Viewer. These requests now pass the lock check, unless someone else is editing the file right now. Text releases its lock only right before the file is deleted or renamed, so a request that fails for another reason keeps the file locked. So does a share recipient removing, renaming or moving the share, which leaves the owner's file in place. After a rename or move the next change locks the file again. When Files reports the file as deleted, which it also does for a move, the editor asks the server whether its session went with the file. Only then does it drop the session instead of trying to save, so a delete no longer reports an expired session and a move keeps the changes. Renaming to or from Markdown stays blocked while the file is edited, as Text then discards the changes that are not saved yet. So does overwriting an edited file with a copy or move. Fixes: #9310 Signed-off-by: Jonas <jonas@freesources.org> Assisted-by: ClaudeCode:claude-opus-5-5
mejo-
force-pushed
the
backport/9696/stable35
branch
from
November 26, 2026 08:47
d1df711 to
acd3137
Compare
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.
Backport of PR #9696