Closed wkloucek closed 1 year ago
From what I could observe, Collabora does automatically save the document after some time after editing (30 Seconds or so?). If the tab gets closed before that it won't be saved. OnlyOffice seems to save a few seconds after the last keystroke. Maybe there is a setting or something to have something similar in Collabora?
The Cannot overwrite unlocked file
part is highly suspicious (see above logs). I think Collabora saves on close.
Ah, I see! Now whose behavior needs to change? Collabora or Wopi?
Probably WOPI server, I don't see a reason why we shouln't save on a unlocked file. But still it's weird that Collabora seems to perform an unlock before saving the file.
I have a local debug setup. Happy to share!
I can confirm that the file gets unlocked before saving the file.
Onlyoffice does that differently.
How could this ever work?
@pmaier1 Who can help us talk with the collabora people?
IMO this is ugly. Nothing meaningful we could do IMO.
We could allow to write to an unlocked file, but .... well that opens soo many ugly possibilities.
@pmaier1 Who can help us talk with the collabora people?
I can do that. Maybe it works directly here. Otherwise I'll start an email thread.
Who can help us with this? @timar @kendy @merttumer @Ashod
@pmaier1 Seems that we need the email thread.
Can I remove it from the GA Blocker list?
@pmaier1 Seems that we need the email thread.
Ok.
Can I remove it from the GA Blocker list?
Agreed.
@pmaier1 @timar pinging
Fixed with collabora/code:22.05.8.4.1
Tested on ocis.team.owncloud.works
Thanks for confirming the fix, @micbar.
Describe the bug
If you open a file in Collabora, do some changes and just close the tab without saving first, your changes will be lost.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
Changes are persisted
Actual behavior
Changes are lost
Setup
oCIS with WOPI deployment example
Additional context
Collabora seems to first unlock a file before saving it when the user closes the session. The WOPI server only uploads the file if it is still locked. -> We need to debug the behavior. Collabora should NOT unlock before saving the file. But the WOPI server also should allow to save to a unlocked file?
WOPI server logs: