| Tested with local demo Jetty/HSQLDB 17.10.9. And also observed same situation on old version 16.10.17. When upgrading, installing, uninstalling, or downgrading OpenID Connect Authenticator from an older version such as 2.20.3 (this is the version I originally used, the operation can fail because some OIDC/OAuth2 classes cannot be resolved from the current classloader. This prevents components such as OIDCConsentStore, DefaultOAuth2TokenStore, or OIDCUserManager from being initialized properly. As a result, the extension upgrade/downgrade may fail with dependency initialization errors, for example:
A restart of XWiki usually resolves the issue, which suggests that the problem is related to stale extension classloaders or classes/components from the previous OIDC version still being cached during the extension operation. However, in some cases, even restarting does not fully recover the installation state, making it impossible to install the target version. Adding note, this last situation with install I only observed randomly on 17.10.9. on version 16.10.17 install or uninstall operation doesn't have it. |