-
Notifications
You must be signed in to change notification settings - Fork 2
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
Connexion with the Collabora server is lost for all ongoing edit sessions if an extension is uninstalled while the editing is ongoing #36
Comments
The cause for this is the same as the one for the providers invalidation for azure sso, the fact that, upon reinstallation, all components loaded through the extension manager are reloaded and whatever state they're storing is lost upon this reload xwikisas/integration-azure-oauth#16 (comment) . In this case, the tokens are stored in the component and thus they are lost upon reload. |
Note: any other situation in which the classloaders/components are reloaded will result in the same 'broken session' because of lost token. |
Workaround for the lost session to avoid losing the work that was done in the the collabora editor:
|
Another workaround for this issue is to install the collabora connector in the WEB-INF/lib of the jar instead of as an extension. |
The problem comes from the fact that the list of tokens, needed to validate a save, is kept on a component. At a jar uninstall, this component is reinitialized, so the list of tokens is lost. So we need a solution that would either renew this token, or will give the option to reassemble the list of tokens when it's emptied. I propose the following options:
I would choose the first option, the second could have some problems. |
Steps to reproduce:
Expected result:
Actual result:
The text was updated successfully, but these errors were encountered: