Skip to content

fix(sync): do not mistake own save requests for outside changes - #9102

Open
silverkszlo wants to merge 1 commit into
mainfrom
fix/saving-last-state
Open

fix(sync): do not mistake own save requests for outside changes#9102
silverkszlo wants to merge 1 commit into
mainfrom
fix/saving-last-state

Conversation

@silverkszlo

Copy link
Copy Markdown
Collaborator

馃摑 Summary

The bug: whenever working on a Text document and after saving a couple of times, the conflict view would appear, although no other user edited the document.

The document is loaded at the start of each request. A sync request compares its etag and checksum against the file only after several other queries. If a save request finishes in between, the file has changed but the loaded document does not reflect that yet, so the sync request then returned 409 and the client showed the conflict view, even though nobody else edited the file.

Reload the document before raising the conflict to compare against the latest saved state. Genuine outside changes still mismatch after the reload and keep raising the conflict.

馃弫 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits
  • Tests (unit, integration and/or end-to-end) passing and the changes are covered with tests
  • Documentation (README or documentation) has been updated or is not required

馃 AI (if applicable)

  • The content of this PR was partly or fully generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

The document is loaded at the start of each request. A sync request
compares its etag and checksum against the file only after several
other queries. If a save request finishes in between, the file has
changed but the loaded document does not reflect that yet, so the sync
request then returned 409 and the client showed the conflict view,
even though nobody else edited the file.

Reload the document before raising the conflict to compare against
the latest saved state. Genuine outside changes still mismatch after
the reload and keep raising the conflict.

Signed-off-by: silver <s.szmajduch@posteo.de>
Assisted-by: ClaudeCode:claude-fable-5
@github-project-automation github-project-automation Bot moved this to 馃Л Planning evaluation (don't pick) in 馃摑 Productivity team Aug 25, 2026
@silverkszlo silverkszlo moved this from 馃Л Planning evaluation (don't pick) to 馃憖 In review in 馃摑 Productivity team Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 馃憖 In review

Development

Successfully merging this pull request may close these issues.

1 participant