There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-1e509c28-1360-4c22-bf8d-abd9339de7ee XWIKI-22894 Open

Moving or renaming the Home page on a subwiki copies pages from the main wiki

 
View issue   ·   Add comment
 

1 update

 
cid:jira-generated-image-avatar-410af973-adf5-42e1-a231-50cbe022c8d5 Changes by Lucian Chevereseanu on 19/Feb/25 16:55
 
Description: Issue: moving / renaming the Home page on a subwiki causes some hidden pages from the main wiki to be copied into the subwiki.

Anca discovered this and said it looks like a bug. I reproduced it on 16.4.4, 16.10.3, 14.10.3 (did not try on other versions as well)

Steps to reproduce:
1. Create a page on the main wiki with the wiki as a parent (no parent) with some random content.

2. Create a subwiki

3. Move, or rename the Home page on the subwiki.

Expected result:
The Home pages is moved / renamed and nothing else

Actual result:
The Home page is moved / renamed and some of the pages from the main wiki are copied  (including the page you created at step 1.) on the subwiki as well without the content and having the author and creator as "Last modified by XWikiGuest on 2025/02/18 17:28" and "Created by XWiki Guest on ...."

!Screenshot From 2025-02-18 17-29-32.png|width=641,height=330!

Anca used the following code to find the pages which are pulled from the main wiki:


{code:java}
{{velocity}}
|=Page|=Crée le|=Auteur|=Version|=Commentaire|=Parent
#foreach($p in $services.query.hql("select doc.fullName,doc.creationDate,doc.author,doc.version,doc.comment,doc.parent from XWikiDocument doc where doc.comment='Updated parent field.' and doc.author = 'XWiki.XWikiGuest' and doc.version = '1.1' and doc.content=''").execute())
  |[[$p[0]]]|$p[1]|$p[2]|$p[3]|$p[4]|$p[5]
#end
{{/velocity}}
{code}

!Screenshot From 2025-02-17 17-50-58.png|thumbnail!
{{}}