This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f67a2913-04ed-40a9-9906-8d3130d578d9 XWIKI-25020 Open

The extension descriptors generated by the Docker test framework don't contain the JAR classifier

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-9b136085-da1a-4a99-bd13-6fd285f740c0 Thomas Mortagne created this issue on 18/Sep/26 11:03
 
Summary: The extension descriptors generated by the Docker test framework don't contain the JAR classifier
Issue Type: cid:jira-generated-image-avatar-f67a2913-04ed-40a9-9906-8d3130d578d9 Bug
Affects Versions: 17.10.13
Assignee: Unassigned
Components: Test Framework
Created: 18/Sep/26 11:03
Priority: cid:jira-generated-image-static-major-457a688f-c8e3-44af-af93-e4b811f85e8e Major
Reporter: Thomas Mortagne
Description:

The Docker based functional test framework builds its own WAR and generates the .xed extension descriptor of each JAR itself, in WARBuilder#generateXEDForJAR:

File targetXEDFile =
    new File(targetDirectory, artifact.getArtifactId() + '-' + artifact.getBaseVersion() + ".xed");

The Maven classifier is not part of the generated name, while the core extension scanner looks for a descriptor named exactly like the JAR it describes (it takes the JAR URL, removes the extension and appends .xed, see DefaultCoreExtensionScanner#loadCoreExtensionFromXED). As a result no descriptor is found for any JAR with a classifier. For example in the WAR built for xwiki-platform-image-lightbox-test-docker:

  • guice-4.2.1-no_aop.jar (only guice-4.2.1.xed is generated)
  • netty-tcnative-boringssl-static-2.0.81.Final-linux-x86_64.jar and the 4 other platform variants
  • netty-transport-native-epoll-4.1.137.Final-linux-x86_64.jar
  • xmlresolver-6.0.23-data.jar

XWiki then falls back to guessing the extension from the META-INF/maven///pom.xml embedded in the JAR, which produces a wrong extension id when that POM is not the resolved one.

The standard WAR is not affected: the xwiki-commons-tool-extension-plugin WAR goal has been generating artifactId-baseVersion[-classifier].xed since XCOMMONS-1486.

 
 

2 updates

 
cid:jira-generated-image-avatar-9b136085-da1a-4a99-bd13-6fd285f740c0 Changes by Thomas Mortagne on 18/Sep/26 11:03
 
Fix Version: 18.9.0-rc-1
Assignee: Thomas Mortagne