There are 7 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-9a109b56-365c-48d3-99af-e4a0c1173727 XWIKI-24612 Closed

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

 
View issue   ยท   Add comment
 

7 updates

 
cid:jira-generated-image-avatar-971c35af-6841-4670-911b-785b3b279de3 Changes by Vincent Massol on 23/Jul/26 23:30
 
Documentation in Release Notes: N/A
Documentation: N/A
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 \ ).

Assignee: Vincent Massol
Resolution: Fixed
Status: Open Closed
Labels: regression
 
 

1 comment

 
cid:jira-generated-image-avatar-971c35af-6841-4670-911b-785b3b279de3 Vincent Massol on 23/Jul/26 23:39
 

Need to decide if we merge on older branches.