-
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
Backend does not return current content of file #2729
Comments
Thanks for the dump, do you still know which file was affected? |
it is |
I noticed that this is a combination of two different bugs, the first one is the reported one, the second is only the exception thrown and (by luck) allowed me to discover the first one:
I fixed locally the second bug, but now the file is opened as "empty" and instantly saved back so the file content is overwritten and the backend responses the "correct" content again. |
The backend would return a copy of the file at the point when it was opened, in case there are still unsaved steps applied on top. This base file version is stored in appdata_*/text/. So maybe with the broken plaintext serializer it ended up not saving the file but also wasn't able to restore the state on reopening from the steps. |
Hm but the file was saved, as the files app can download the files containing the content. Is it possible that the backend saved the file but not updated its state of the file? |
Nothing I could think of without throwing an error that should have landed in the logs: text/lib/Service/DocumentService.php Lines 313 to 330 in 7739cab
|
Describe the bug
Discovered while testing using the (cypress) docker image:
I created a file and wrote some text into it, (quickly) closed it and tried to reopen it again.
When trying to reopen it the text app does not load it but throw an error:
I have added some debug outputs to the
EditorFactory
and theSyncService
and discovered the file is never loaded, as the call to_fetchDocument
in theopen
function of theSyncService
always just returns an empty string.I can download the file using the
files
app and there the content is correct.I tried to rename the file / logout / reload / try an other browser and even to use another user and open that file but that does not work either (same error).
To Reproduce
I could not reproduce it with an other file...
But I have attached a backup of the data directory (including the sqlite database) so you should be able to reproduce by creating the docker image and replace the data directory with the attached one. backup.zip
Client details:
The text was updated successfully, but these errors were encountered: