This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-422c1c03-8044-408b-81b9-c20fa52cb068 XWIKI-25035 Open

Move the deprecated updateLinksOnFarm APIs of the refactoring requests to legacy

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-9f4e43ad-f089-491b-b279-9ad7e75dc573 Vincent Massol created this issue on 27/Sep/26 15:32
 
Summary: Move the deprecated updateLinksOnFarm APIs of the refactoring requests to legacy
Issue Type: cid:jira-generated-image-avatar-422c1c03-8044-408b-81b9-c20fa52cb068 Improvement
Assignee: Unassigned
Components: Development Issues only
Created: 27/Sep/26 15:32
Priority: cid:jira-generated-image-static-major-ed170f14-8957-4eda-a4d1-8ccec3a25de5 Major
Reporter: Vincent Massol
Description:

The updateLinksOnFarm accessors of DeleteRequest and AbstractCopyOrMoveRequest, and the DeleteRequest.UPDATE_LINKS_ON_FARM constant, have been deprecated since 14.8RC1 and are no-ops (the flag is not taken into account anymore). Nothing in xwiki-commons, xwiki-rendering or xwiki-platform uses them.

Move them to xwiki-platform-legacy-refactoring-api, which already weaves xwiki-platform-refactoring-api, so that the main module no longer exposes them while existing extensions keep working with the legacy module (distributed by default).

  • The methods are re-added by AspectJ inter-type declarations.
  • The constant is re-added through a CompatibilityDeleteRequestConstants interface that the aspect makes DeleteRequest implement, since a static final field added by an aspect is neither final nor a compile-time constant.
  • AbstractCopyOrMoveRequest gets an explicit serialVersionUID (the value previously computed by the JVM), required by AspectJ to add public methods to a serializable class.
 
 

2 updates

 
cid:jira-generated-image-avatar-9f4e43ad-f089-491b-b279-9ad7e75dc573 Changes by Vincent Massol on 27/Sep/26 15:34
 
Fix Version: 18.9.0-rc-1
Assignee: Vincent Massol