Skip to content

[stable34] fix(SyncService): Behave like an idle disconnect on 403 responses - #9209

Merged
mejo- merged 1 commit into
stable34from
backport/9192/stable34
Sep 16, 2026
Merged

mejo- merged 1 commit into
stable34from
backport/9192/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 16, 2026

Copy link
Copy Markdown

Backport of #9192

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 added this to the Nextcloud 34.0.5 milestone Sep 16, 2026
@mejo-
mejo- force-pushed the backport/9192/stable34 branch from dbd531c to 13c887d Compare September 16, 2026 09:35
@mejo-
mejo- marked this pull request as ready for review September 16, 2026 09:35
@mejo-
mejo- requested a review from silverkszlo as a code owner September 16, 2026 09:35
When the editing session went invalid (i.e. because a browser or tab was
sleeping and didn't send a heartbeat for more than five minutes), the
server replies with 403 responses to sync/push requests.

The client-side polling backend correctly disconnects but the push side
(sync service) continues to send push requests with awareness state
updates and optionally pending steps.

This commit changes the sync service to stop pushing to the server on
403s as well by invalidating the session client-side.

The UI now handles the `PUSH_FORBIDDEN` error like an idle disconnect:
it sets the `idle` state which causes the status badge with reconnect
button to be displayed.

Fixes: #8950

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-fable-5-1
@mejo-
mejo- force-pushed the backport/9192/stable34 branch from 13c887d to e731edd Compare September 16, 2026 10:02
@mejo-
mejo- merged commit 0014577 into stable34 Sep 16, 2026
75 of 77 checks passed
@mejo-
mejo- deleted the backport/9192/stable34 branch September 16, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant