Authentication failing after removing uninstalling a jar extension from a wiki
Fix Version:
2.30.2
Resolution:
Solved By
Status:
In ProgressClosed
4 comments
Thomas Mortagne on 17/Nov/26 20:24
It's indeed a bug on XCOMMONS side, but nothing to do with XCOMMONS-3530: it's actually a very old mistake in the JAR extension init code which was also reinitializing root namespace components when asked to initialize only a specific wiki namespace (when the extension uninstall/upgrade is done on a specific wiki only). We were just lucky so far that it did not cause more problems (I suspect it's because many JAR extensions tend to be installed on root namespace, or at least have dependencies installed on root namespace, in which case there is no problem).
Thomas Mortagne on 17/Nov/26 20:24
It's indeed a bug on XCOMMONS side (XCOMMONS-3907), but nothing to do with XCOMMONS-3530: it's actually a very old mistake in the JAR extension init code which was also reinitializing root namespace components when asked to initialize only a specific wiki namespace (when the extension uninstall/upgrade is done on a specific wiki only). We were just lucky so far that it did not cause more problems (I suspect it's because many JAR extensions tend to be installed on root namespace, or at least have dependencies installed on root namespace, in which case there is no problem).
Thomas Mortagne on 17/Nov/26 20:25
It's indeed a bug on XCOMMONS side (XCOMMONS-3907), but nothing to do with XCOMMONS-3530: it's actually a very old mistake in the JAR extension init code which was also reinitializing root namespace components when asked to initialize only a specific wiki namespace (when the extension uninstall/upgrade is done on a specific wiki only). We were just lucky so far that it did not cause more problems (I suspect it's because many JAR extensions tend to be installed on root namespace, or at least have dependencies installed on root namespace, in which case there is no problem).
Note that this apparently only reproduce when the authenticator is registered via xwiki.cfg and not when selected in the authenticator UI.
Thomas Mortagne on 17/Nov/26 20:26
It's indeed a bug on XCOMMONS side (XCOMMONS-3907), but nothing to do with XCOMMONS-3530: it's actually a very old mistake in the JAR extension init code which was also reinitializing root namespace components when asked to initialize only a specific wiki namespace (when the extension uninstall/upgrade is done on a specific wiki only). We were just lucky so far that it did not cause more problems (I suspect it's because many JAR extensions tend to be installed on root namespace, or at least have dependencies installed on root namespace, in which case there is no problem).
Note that this apparently only reproduce when the authenticator is registered via xwiki.cfg and not when selected in the authenticator UI. OIDC-339 should help mitigate the problem when you are in an impacted XWiki version.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.