-
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
[Bug]: Read only shared text file is not up-to-date with saved file #2388
Comments
Dear @niowniow, thanks for your report. I was able to reproduce the behaviour that you describe. The problem is that the editor session of the shared file is not cleaned up when closing the tab. So when opening the share link again fast enough (with the file having been altered via file sync in the meantime), the version from the session and the file as stored in Nextcloud differ and the conflict dialog is displayed. We definitely should improve user experience here. I wonder whether we could detect that the file in session had been written to the filesystem and thus any subsequent changes are legit newer versions of the file. @max-nextcloud as you're working on this field at the moment. |
Code wise this seems to be related to the check to only reset the document when no active sessions are there in text/lib/Service/ApiService.php Lines 93 to 97 in f5a34ce
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
The same behavior is observable also when changing a file with the Notes app, with the same message being issued by the Text Editor afterwards: "The document has been changed outside of the file editor. The changes cannot be applied." |
Idea: When connecting to a read only document:
|
For now #6094 fixes two related bugs:
This does not get us all the way there - as the content is not automatically updated. |
Bug description
Offline edits of a shared text file (shared as non-editable) which are then synced are not updated in the in-browser view of the shared file
Steps to reproduce
The warning appears:
and I can choose "use current version" or "use saved version".
Expected behavior
Any changes to the file saved in the nextcloud are reflected in the shared file. The saved text file (i.e. the file that is in the nextcloud filesystem) is shown in the shared in-browser text file view, not any other version that may be in some cache of the nextcloud text editor (or somewhere else).
Installation method
Other
Operating system
Other
PHP engine version
Other
Web server
Other
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
I don't have access to the command-line
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
hosted by webo.hosting
The text was updated successfully, but these errors were encountered: