There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-6ebfbc14-80bc-4692-ac79-aea29e962804 XWIKI-22894 Open

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

 
View issue   ·   Add comment
 

3 updates

 
cid:jira-generated-image-avatar-fb96fbbb-bdca-4483-b73f-39b35e4b5ee2 Changes by Simon Urli on 20/Feb/25 08:55
 
Assignee: Simon Urli
Component: Refactoring
 
cid:jira-generated-image-avatar-42f1d0d4-a649-47d1-9352-585c1485d438 Changes by Lucian Chevereseanu on 20/Feb/25 08:59
 
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 page 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!