This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-0a1b2562-0bbe-4f66-a67a-cadd4febfc9d XWIKI-24145 Open

Wrong behavior when deleting a page with its children

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-39e8e619-8b30-4479-b4eb-db46fbbd4587 Raluca Stavro created this issue on 19/Mar/26 16:11
 
Summary: Wrong behavior when deleting a page with its children
Issue Type: cid:jira-generated-image-avatar-0a1b2562-0bbe-4f66-a67a-cadd4febfc9d Bug
Affects Versions: 14.10.20, 17.10.4
Assignee: Unassigned
Attachments: DeleteLogs_Duplication.png, Delete_MissingPages.png
Components: Tree
Created: 19/Mar/26 16:11
Labels: deleting tree
Priority: cid:jira-generated-image-static-major-2cb2c7ba-bcf7-4ea2-a4ef-6b130281db96 Major
Reporter: Raluca Stavro
Description:

I. There are missing pages in the selection tree when choosing the option to "Affect children" :

To reproduce this issue :

  1. Create a range of pages in the Sandbox space, from Page-0 to Page-20
  2. Go to Sandbox.WebHome, choose to delete the page
  3. Select the "Affect children" option
  4. Open the tree of "Pages that do not belong to any extension"
  5. Click on "N more" to expand the tree

Expected result : all the child pages are being displayed in the tree

Actual result : some child pages are missing from the tree. In the example below, Page-3 is missing :

44663_Delete_MissingPages.png

This means that it is impossible to delete a page with all its children.

 

II. When selecting "Pages that do not belong to any extension", the pages that are missing from the tree (see point I. above) are being deleted at confirmation.

When looking at the logs of the delete job, some documents are being displayed twice. With the example above, where Page-3 is not displayed in the selection tree, Page-12 shows up twice in the delete logs :

44662_DeleteLogs_Duplication.png

It turns out that Page-3 was actually deleted, so the duplication is probably a wrong display of Page-3.