Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-22894

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

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

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

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

      Attachments

        Activity

          People

            surli Simon Urli
            Lucian Chevereseanu Lucian Chevereseanu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: