This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2c90191d-b5e0-42e9-ad17-c8c397886219 XWIKI-25446 In Progress

Docker tests on the standard flavor with the legacy profile bundle both the legacy and the non-legacy versions of core extensions

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-08fcae40-9458-491c-851f-f52aee9f420f Vincent Massol created this issue on 21/Oct/26 21:15
 
Summary: Docker tests on the standard flavor with the legacy profile bundle both the legacy and the non-legacy versions of core extensions
Issue Type: cid:jira-generated-image-avatar-2c90191d-b5e0-42e9-ad17-c8c397886219 Bug
Affects Versions: 17.10.10
Assignee: Unassigned
Components: Test Framework
Created: 21/Oct/26 21:15
Priority: cid:jira-generated-image-static-major-6afa1e30-9bb3-4c7a-aafb-7716644a9146 Major
Reporter: Vincent Massol
Description:

When a Docker-based functional test runs on the standard flavor (@UITest(standardFlavor = true)) with the legacy profile, the generated WAR bundles both the legacy and the non-legacy version of the core extensions that the legacy distribution replaces. For example WEB-INF/lib contains both xwiki-platform-oldcore and xwiki-platform-legacy-oldcore, and both xwiki-platform-rendering-wikimacro-store and xwiki-platform-legacy-rendering-wikimacro-store. The real distribution WAR only contains the legacy versions.

As a consequence, the tests don't run on the same core extensions as the users get, which defeats the purpose of the standard flavor mode. For example, a security scan of the extensions reports CVE-2025-49581 on xwiki-platform-rendering-wikimacro-store, which isn't part of the distribution WAR.

Cause

ArtifactResolver#getDistributionDependencies resolves the WAR dependencies root artifact (xwiki-platform-distribution-war-legacydependencies) together with some extra artifacts that the test framework needs (xwiki-platform-extension-handler-xar, xwiki-platform-flamingo-skin-resources, xwiki-platform-test-checker, xwiki-platform-search-solr-embedded, etc.). These extra artifacts are resolved next to the dependencies of the root artifact, so the exclusions that xwiki-platform-distribution-war-legacydependencies declares don't apply to them, and their transitive dependencies bring back the excluded JARs. For example:

  • xwiki-platform-flamingo-skin-resources brings xwiki-platform-rendering-wikimacro-store (through xwiki-platform-index-tree-macro)
  • xwiki-platform-extension-handler-xar, xwiki-platform-test-checker and xwiki-platform-search-solr-embedded bring xwiki-platform-oldcore
  • xwiki-platform-extension-handler-xar is itself excluded by the legacy WAR dependencies, which bring xwiki-platform-legacy-extension-handler-xar instead
 
 

3 updates

 
cid:jira-generated-image-avatar-08fcae40-9458-491c-851f-f52aee9f420f Changes by Vincent Massol on 21/Oct/26 21:15
 
Fix Version: 18.10.0-rc-1
Assignee: Vincent Massol
Status: Open In Progress