Skip to content

fix(DocumentService): Return 200 steps before saved version in SyncStep2#7703

Merged
max-nextcloud merged 1 commit intomainfrom
fix/syncstep2_200steps
Oct 7, 2025
Merged

fix(DocumentService): Return 200 steps before saved version in SyncStep2#7703
max-nextcloud merged 1 commit intomainfrom
fix/syncstep2_200steps

Conversation

@mejo-
Copy link
Member

@mejo- mejo- commented Sep 30, 2025

When replying to a SyncStep1, which the client sends if it detected a missing step, we now add the 200 steps before the last saved version.

This is done to workaround race conditions where the state with the missing step got persisted in the document state.

See #7692

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

@mejo- mejo- self-assigned this Sep 30, 2025
@mejo- mejo- added bug Something isn't working 3. to review feature: sync labels Sep 30, 2025
When replying to a SyncStep1, which the client sends if it detected
a missing step, we now add the 200 steps before the last saved version.

This is done to workaround race conditions where the state with the
missing step got persisted in the document state.

See #7692

Signed-off-by: Jonas <jonas@freesources.org>
@max-nextcloud
Copy link
Collaborator

/backport to stable32

@max-nextcloud
Copy link
Collaborator

/backport to stable31

@max-nextcloud max-nextcloud merged commit 605cc35 into main Oct 7, 2025
77 of 80 checks passed
@max-nextcloud max-nextcloud deleted the fix/syncstep2_200steps branch October 7, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants