This issue has been created
There are 4 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-88e21486-e0c1-4c5b-8a32-f2e09d0da23f XWIKI-22894 Open

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

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-ccf984a3-1690-4a03-8c09-271c6fc503dc Lucian Chevereseanu created this issue on 19/Feb/25 16:41
 
Summary: Moving or renaming the Home page on a subwiki copies pages from the main wiki
Issue Type: cid:jira-generated-image-avatar-88e21486-e0c1-4c5b-8a32-f2e09d0da23f Bug
Assignee: Unassigned
Attachments: Screenshot From 2025-02-17 17-50-58.png, Screenshot From 2025-02-18 17-29-32.png
Created: 19/Feb/25 16:41
Priority: cid:jira-generated-image-static-major-cb3d9079-5a79-403c-8816-bf55aabff930 Major
Reporter: Lucian Chevereseanu
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 ...."

43342_Screenshot+From+2025-02-18+17-29-32.png

Anca used the following code to find the pages which are pulled from the main wiki:
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}

}

 
 

4 updates

 
cid:jira-generated-image-avatar-ccf984a3-1690-4a03-8c09-271c6fc503dc Changes by Lucian Chevereseanu on 19/Feb/25 16:42
 
Version: 14.10.3
Version: 16.10.3
Version: 16.4.4
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!
{{}}