You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I noticed some 403 responses to sync requests during a conflict e2e test. Looks like they are triggered by calls to the autosave function in the SyncService even after the session was closed.
This probably happens because autosave gets triggered by an onChange handler that persists even after closing the session.
To Reproduce
Steps to reproduce the behavior:
Run the cypress tests for conflict handling - in particular noticed it during the 'keep the server version' one.
Open the console while the test runs and keep the window open after it finished
Watch the network requests and see error some seconds after the test ended.
Expected behavior
No 403 responses, no dangling handlers from an old session.
Screenshots
Will add them later.
The text was updated successfully, but these errors were encountered:
This would normally happen in the save call before closing.
However if that call fails
(for example due to a conflict)
we still clear the pending autosync calls to prevent 403s.
Fixes#4080.
Signed-off-by: Max <max@nextcloud.com>
This would normally happen in the save call before closing.
However if that call fails
(for example due to a conflict)
we still clear the pending autosync calls to prevent 403s.
Fixes#4080.
Signed-off-by: Max <max@nextcloud.com>
This would normally happen in the save call before closing.
However if that call fails
(for example due to a conflict)
we still clear the pending autosync calls to prevent 403s.
Fixes#4080.
Signed-off-by: Max <max@nextcloud.com>
Describe the bug
I noticed some 403 responses to
sync
requests during a conflict e2e test. Looks like they are triggered by calls to theautosave
function in theSyncService
even after the session was closed.This probably happens because
autosave
gets triggered by anonChange
handler that persists even after closing the session.To Reproduce
Steps to reproduce the behavior:
Expected behavior
No 403 responses, no dangling handlers from an old session.
Screenshots
Will add them later.
The text was updated successfully, but these errors were encountered: