| 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. 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. |