This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-46e7f334-fa2b-4f9d-bdbf-132d118631c4 XWIKI-24612 Open

Backward-compatibility aspect for SkinFileExtensionPluginApi.use() is never woven

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-5cd3274b-092a-463f-be0b-fc2e8684b66d Vincent Massol created this issue on 23/Jul/26 23:19
 
Summary: Backward-compatibility aspect for SkinFileExtensionPluginApi.use() is never woven
Issue Type: cid:jira-generated-image-avatar-46e7f334-fa2b-4f9d-bdbf-132d118631c4 Bug
Assignee: Unassigned
Components: Skin
Created: 23/Jul/26 23:19
Priority: cid:jira-generated-image-static-major-6e5020c0-08d0-4498-856f-2d8706fdcfc2 Major
Reporter: Vincent Massol
Description:

The AspectJ backward-compatibility aspect SkinFileExtensionPluginApiCompatibilityAspect is supposed to remap deprecated skin-file-extension resource paths (for example js/xwiki/editors/fullScreenEdit.js to uicomponents/widgets/fullScreen.js) when they are pulled through SkinFileExtensionPluginApi.use(String).

The advice is never woven: AspectJ reports advice ... has not been applied [Xlint:adviceDidNotMatch]. As a result the compatibility remapping silently does nothing, so code still using the old deprecated paths gets neither the remapping nor the deprecation warning.

The around advice also has a logic bug independent of the weaving: it calls proceed() twice (once with the remapped path, then again with the original path), so even if it had matched it would have registered the extension twice and still used the deprecated path.

Found while promoting AspectJ Xlint warnings to errors so that a non-woven backward-compatibility advice fails the build (XCOMMONS-3728).

 
 

2 updates

 
cid:jira-generated-image-avatar-5cd3274b-092a-463f-be0b-fc2e8684b66d Changes by Vincent Massol on 23/Jul/26 23:20
 
Fix Version: 18.7.0-rc-1
Version: 17.10.10