-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty session content with single step in the database and file content preserved #5215
Comments
As mentioned in the call we should check if this is reproducible somehow by manually resetting the document state and steps. Another thing to check is if the cleanup of steps/document state is save-guarded to also cleanup sessions so at least a new session would be created then on reconnect? |
I just tried the following:
Text fails to reconnect automatically as the session is gone So that seemed okay - not sure if it will always work that way though. |
I think we will need to separate the sync service session and the yjs session conceptually and in practice. Sync service sessionConnects all users that are editing the document at the same time.
Yjs session
|
Even if we keep the yjs doc around there's still a way to be missing steps from one peer:
Possible solutionWhen reconnecting:
We could even compute this regularly to make sure everyone stays in sync. |
Given that we guess this is fixed with Nextcloud 27.1.6 and 28.0.2, let's close the issue for now. We can reopen it later on if there's new reports about this missbehaviour. |
Describe the bug
We observed on two different instances that the content of a file turned empty.
Investigating it in more detail we found the following:
.vue
file in the documents app folder.To Reproduce
We are still to find reliable steps to reproduce the behavior.
In one case this is what triggered it:
Expected behavior
The file content in the editing session should still exist.
Screenshots
Imagine an empty editor view here. 😉
Server details:
The text was updated successfully, but these errors were encountered: