CollaboraOnline / online

Collabora Online is a collaborative online office suite based on LibreOffice technology. This is also the source for the Collabora Office apps for iOS and Android.
https://collaboraonline.com
Other
1.83k stars 698 forks source link

Cleanup service URLs #3087

Open mmeeks opened 3 years ago

mmeeks commented 3 years ago

To make our service URL (for eg. websocket, clipboard etc.) much cleaner we should:

This should be more proxy friendly, yield much shorter URLs and be easier on the eye. We should default to this in CO 21.06 + but I don't believe we need it as an option in 6.4.

Thanks !

mmeeks commented 3 years ago

See also bug #3086 for some more pre-requisites.

Ashod commented 2 years ago

One tricky case is when a user/view idles and the document is unloaded. Without the full URL, the token will have expired and we won't be able to transparently reload the document. We will somehow need to reload the page so we service loleaflet.html all over. Indeed caching the token is not the issue here, since this scenario will still play out when the server is restarted. So this isn't a matter of caching the token as much as it is a matter of saying "please reload the page" (or doing it seamlessly).

mmeeks commented 2 years ago

Oh - that is an interesting case =) hmm; not clear how best to handle that really. Possibly it would be cleaner to pass the access token down the websocket as the 1st command, rather than having it in the URL; and handle that on the WSD side somehow cleanly (?) Urk =)