STEPS TO REPRODUCE
- Login as Admin
- Create the following page structure: a/b/c/d/
- Go to page 'a'
- Click More Actions > Delete
- Select 'Affect children'
- Click 'Delete'
- Go to Page Index > Deleted Pages
- Click on the red 'X' for each of the 4 pages to permanently delete them (start from top to bottom: 'a', 'b', 'c', 'd')
- Refresh the page (CTRL + F5)
None of the four pages are displayed in the Livetable, as they are all permanently deleted.
Although the message 'Page permanently deleted' was displayed on the bottom of the page, it seems that deleting page 'b' (second from the top) does not really delete it, continuing to be displayed in the Livetable.
On the next step, if deleting page 'b', it actually deletes page 'c', then if deleted again, it deletes page 'd' (screenshots attached).
When the page 'b' is finally deleted, after refresh, the last 2 pages (initially placed on the bottom of the Livetable - 'c' and 'd') are not deleted and can be restored. However, they can be permanently deleted if clicked the red 'X' from the Actions column once again.
I noticed that the issue is reproducing if the pages are deleted starting from the top of the Livetable to the bottom for some reason, if they are deleted from the bottom to the top, none of the 4 pages appear after refresh.
I couldn't reproduce the issue on XWiki 10.6.1 or on XWiki 9.11.7.