There are 5 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-a5589a99-a487-4901-9553-8e08a45de25c XWIKI-16331 Closed

Ghost entries are leftover in the page tree when a page with underscore in name is deleted, if another page with a similar name exists

 
View issue   ยท   Add comment
 

5 updates

 
cid:jira-generated-image-avatar-2281776b-65bf-4ded-8891-a1a60ee2268f Changes by Manuel Leduc on 17/Sep/26 12:37
 
Fix Version: 13.4-rc-1
Fix Version: 12.10.7
Assignee: Manuel Leduc
Resolution: Solved By
Status: Reopened Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-2281776b-65bf-4ded-8891-a1a60ee2268f Manuel Leduc on 17/Sep/26 12:37
 

This can no longer be reproduced on 17.10.x, 18.4.x and master. The LIKE query in XWikiHibernateStore#hasDocuments() is still not escaped, so for a space a_b it still returns the children of a-b, but since XWIKI-18525 (fixed in 13.4) the results are filtered in Java (result.equals(space) || result.startsWith(space + '.')), which discards these wrong matches. The space row is thus correctly deleted and no ghost entry remains in the page tree.

The missing escaping still causes the opposite problem for pages with a dot in their name on PostgreSQL, MySQL and MariaDB (children are missed and the parent space row is wrongly deleted), which is reported in XWIKI-25012.