This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-dab71b90-41c5-42ac-8315-d4e06fa02b34 XWIKI-24638 Open

Ensure empty space rename/move set move request deep to true

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-dcfea3f3-669a-48fa-8679-a4aa56dd62ba Simon Urli created this issue on 28/Jul/26 15:59
 
Summary: Ensure empty space rename/move set move request deep to true
Issue Type: cid:jira-generated-image-avatar-dab71b90-41c5-42ac-8315-d4e06fa02b34 Improvement
Affects Versions: 17.10.10
Assignee: Unassigned
Components: Web - Templates & Resources
Created: 28/Jul/26 15:59
Priority: cid:jira-generated-image-static-major-a20aa62b-fbe3-4a64-9c17-49be04c1a30a Major
Reporter: Simon Urli
Description:

When renaming a space with children page, we opt-in by default the checkbox to rename children: this translates in the API by having a request with a deep parameter set to true.
However, the API returns false by default when the deep parameter is not set.
And if there's no children page, currently we don't set that parameter at all: so any rename request of a space without children ends up having the deep parameter set to false.

This is a problem for Change Request where I'm using this parameter to know if it's the rename of a full space or not, to also refactor the request for creation in that space.

IMO we should always have the deep parameter set to true in such case: it shouldn't have any impact for standard pages in XWiki, but would avoid hack-ish checks in Change Request.

 
 

1 update

 
cid:jira-generated-image-avatar-dcfea3f3-669a-48fa-8679-a4aa56dd62ba Changes by Simon Urli on 28/Jul/26 16:00
 
Assignee: Simon Urli