There are 4 updates, 4 comments.
 
 
OpenId Connect / cid:jira-generated-image-avatar-a3aa9b61-b673-4455-aa53-baf914ecc43d OIDC-323 Closed

Authentication failing after uninstalling a jar extension from a wiki

 
View issue   ยท   Add comment
 

4 updates

 
cid:jira-generated-image-avatar-2011a157-ddba-4181-a716-f7b70c6eb10b Changes by Thomas Mortagne on 17/Nov/26 20:29
 
Summary: Authentication failing after removing uninstalling a jar extension from a wiki
Fix Version: 2.30.2
Resolution: Solved By
Status: In Progress Closed
 
 

4 comments

 
cid:jira-generated-image-avatar-2011a157-ddba-4181-a716-f7b70c6eb10b 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).

 
cid:jira-generated-image-avatar-2011a157-ddba-4181-a716-f7b70c6eb10b 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).
 
cid:jira-generated-image-avatar-2011a157-ddba-4181-a716-f7b70c6eb10b 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.
 
cid:jira-generated-image-avatar-2011a157-ddba-4181-a716-f7b70c6eb10b 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.