This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f955abba-5abc-430b-ba3d-b57656040e0d XWIKI-24436 Open

Duplicated and missing logs when deleting a page with children in certain conditions

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-bc192b08-a163-4697-b3dc-9d123f4d0549 Ilie Andriuta created this issue on 29/May/26 15:53
 
Summary: Duplicated and missing logs when deleting a page with children in certain conditions
Issue Type: cid:jira-generated-image-avatar-f955abba-5abc-430b-ba3d-b57656040e0d Bug
Affects Versions: 17.10.9, 18.4.0
Assignee: Unassigned
Attachments: Deleted_Duplicated_Missing_TestPages.mp4, Test_Pages_Dislayed_in_Page_Index.png
Components: Tree
Created: 29/May/26 15:53
Environment: Windows 11 Pro, Firefox 151, using an instance of XWiki 17.10.9 on MySQL 9.7, Tomcat 11.0.22
Priority: cid:jira-generated-image-static-major-380912cc-090a-4b17-bd18-abc186f1483f Major
Reporter: Ilie Andriuta
Description:

Preconditions: User needs to be Advanced.

Steps to reproduce

  1. Go to Sandbox.WebHome
  2. Create 20 children under this page (Pag1, Pag2, etc), all with Sandbox.WebHome as parent
  3. On Sandbox.WeBHome, click 'More Actions' > 'Delete'
  4. Tick 'Affect children'
  5. Click 'Delete'
  6. Select the entire tree 'Pages that are not mandatory for any extension'
  7. Click 'Confirm' button
  8. Click 'Delete log'
  9. Observe the logs

Expected results

The delete logs start with "Starting job of type [refactoring/delete]..." and end with "Finished job of type [refactoring/delete]..."

All deleted pages are displayed in the logs once.

Actual results

Under some conditions (in my tests I've noticed for ex. right after starting the instance or after some time passed without deleting pages), the deleted pages (Pag1 to Pag 20) are displayed twice (but not all the time, for ex. in the video attached Pag9 isn't duplicated) and the TestPage1, TestPage2 and TestPage3 with last log at the end "Finished job of type [refactoring/delete]..." are missing.

On Page Index though, the TestPage1, TestPage2 and TestPage3 are displayed in the list of deleted pages.

The issue could be reproduced on Jetty/HSQL demo package as well and also on XWiki 18.4.0 and was discovered while testing XWIKI-24145.

 
 

1 update

 
cid:jira-generated-image-avatar-bc192b08-a163-4697-b3dc-9d123f4d0549 Changes by Ilie Andriuta on 29/May/26 15:55
 
Description: Preconditions: User needs to be Advanced.

*Steps to reproduce*
# Go to {{Sandbox.WebHome}}
# Create 20 children under this page ({{{}Pag1{}}}, {{{}Pag2{}}}, etc), all with {{Sandbox.WebHome}} as parent
# On Sandbox.WeBHome, click 'More Actions' > 'Delete'
# Tick 'Affect children'
# Click 'Delete'
# Select the entire tree 'Pages that are not mandatory for any extension'
# Click 'Confirm' button
# Click 'Delete log'
# Observe the logs

*Expected results*

The delete logs start with "{{{}Starting job of type [refactoring/delete]...{}}}" and end with "{{{}Finished job of type [refactoring/delete]...{}}}"

All deleted pages are displayed in the logs once.

*Actual results*

Under some conditions (in my tests I've noticed for ex. right after starting the instance or after some time passed without deleting pages), the deleted pages ({{{}Pag1{}}} to {{{}Pag 20{}}}) are displayed twice (but not all the time, for ex. in the video attached {{Pag9}} isn't duplicated) and the {{{}TestPage1{}}}, {{TestPage2}} and {{TestPage3}} with last log at the end "Finished job of type [refactoring/delete]..." are missing.

On Page Index though, the {{{}TestPage1{}}}, {{TestPage2}} and {{TestPage3}} are displayed in the list of deleted pages.

Please see the attached video with the issue that I was able to capture.

The issue could be reproduced on Jetty/HSQL demo package as well and also on XWiki 18.4.0 and was discovered while testing XWIKI-24145.