This issue has been created
There are 2 updates.
 
 
XWiki Commons / cid:jira-generated-image-avatar-145abd13-256a-472b-92dd-0e0ee8c6236c XCOMMONS-3832 Open

Move the deprecated component-overrides.txt support to legacy

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-906ed996-542b-4e8d-a170-9ec37dbcf257 Manuel Leduc created this issue on 13/Oct/26 09:29
 
Summary: Move the deprecated component-overrides.txt support to legacy
Issue Type: cid:jira-generated-image-avatar-145abd13-256a-472b-92dd-0e0ee8c6236c Task
Affects Versions: 18.8.0
Assignee: Unassigned
Components: Component
Created: 13/Oct/26 09:29
Priority: cid:jira-generated-image-static-major-44bccf9d-dd17-4a96-90c7-4fd0002c63ca Major
Reporter: Manuel Leduc
Description:

The META-INF/component-overrides.txt file and the ComponentAnnotationLoader#COMPONENT_OVERRIDE_LIST constant have been deprecated since 3.3M1 in favor of component priorities declared in META-INF/components.txt (e.g. 500:org.example.MyComponent).

This task moves them to the xwiki-commons-legacy-component-default module:

  • COMPONENT_OVERRIDE_LIST is removed from ComponentAnnotationLoader in xwiki-commons-component-default and re-added through an aspect in the legacy module.
  • The support for META-INF/component-overrides.txt (components declared there being registered with the highest priority of 0) is only provided when the legacy module is installed, which is the case in XWiki Standard.

Impact for extension developers

Extensions still using a META-INF/component-overrides.txt file keep working in XWiki Standard, but should declare a priority in META-INF/components.txt instead. Code running without the legacy modules will not see COMPONENT_OVERRIDE_LIST anymore and will ignore component-overrides.txt files.

 
 

2 updates

 
cid:jira-generated-image-avatar-906ed996-542b-4e8d-a170-9ec37dbcf257 Changes by Manuel Leduc on 13/Oct/26 09:29
 
Fix Version: 18.9.0-rc-1
Assignee: Manuel Leduc