Skip to content

[stable35] fix(save): do not lose changes when two saves run at the same time - #9703

Merged
mejo- merged 1 commit into
stable35from
backport/9695/stable35
Nov 26, 2026
Merged

mejo- merged 1 commit into
stable35from
backport/9695/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Backport of #9695

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot
backportbot Bot requested review from max-nextcloud and mejo- November 26, 2026 11:16
@backportbot backportbot Bot added bug Something isn't working 3. to review labels Nov 26, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.4 milestone Nov 26, 2026
Two saves of the same document at the same time, for example Ctrl+S
followed by closing the editor, both failed to write the file. Each
write blocked the other one, and Text answered both requests as if
nothing needed saving, so the file kept its old content.

Saves of a document now run one after another. A manual save waits up
to three seconds for a running save to finish, an autosave gives up
and is retried by the client as before. This replaces the cache flag
that was meant to prevent overlapping saves, as it was not atomic.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo-
mejo- force-pushed the backport/9695/stable35 branch from f976c10 to dd8ae5e Compare November 26, 2026 11:28
@mejo-
mejo- marked this pull request as ready for review November 26, 2026 11:29
@mejo-
mejo- requested a review from silverkszlo as a code owner November 26, 2026 11:29
@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mejo-
mejo- merged commit 3018bd3 into stable35 Nov 26, 2026
72 checks passed
@mejo-
mejo- deleted the backport/9695/stable35 branch November 26, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant