There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d6b0cdf3-8318-43a7-b949-8a724227e3c8 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-0bfbe725-e099-4a1a-826e-d2b5ca3c28f7 Changes by Lucian Chevereseanu on 20/Feb/25 08:11
 
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 ...."
This does not happen when moving / renaming other spaces, for example, the Sandbox space in the Home > Crypto space

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