xwikisas / application-collabora

Edit attachments using Collabora
GNU Lesser General Public License v2.1
0 stars 2 forks source link

Display to the user that their Editing Token Timeout has expired #47

Closed LucianCheve closed 1 week ago

LucianCheve commented 5 months ago

Currently, if the Editing Token Timeout expires, there is no way for the user to know. Not having this information, the user continues to edit the document, but even if they click the save icon, no saves are registered and there is no warning presented to the user that this is the case. At the end, the user believes he saved the document, but in reality this is not the case because the Editing Token Timeout expired.

Implement a way for the user to be notified that the Editing Token Timeout has expired.

Edit: After more testing, I wish to add these details: When the Edit Token Timeout expires, the users (I tested with 2) get the following message: image

This message was received by both users that had their token expire.

After you get the warning, you no longer can save, and you basically have 2 options: 1) Wait for the autosave to trigger (from my observations, it happens every 2-3 minutes), then leave the session and access it again to get a new token 2) From Collabora, go to File > Download and save the file on your computer. Exit and re-enter the Collabora session(which generates a new token) and add the not-saved content.