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

Renaming level 3 (and higher) pages moves them to a wrong (automatically created) parent page

Details

    • Integration
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE:

      1. Login as Admin
      2. Create a document with 3 levels (Pag1.Pag2.Pag3/) (all pages must be created)
      3. Click on 'Move / Rename' on 'Pag3'
      4. Fill in the new title (e.g. 'Pag4')
      5. Click 'Rename'

      EXPECTED RESULTS

      The page Pag3 (Pag1.Pag2.Pag3) is renamed successfully to Pag4 (Pag1.Pag2.Pag4).

      ACTUAL RESULTS

      The page Pag3 is renamed to Pag4, but is moved under a new (automatically created) parent page named 'Pag1/Pag2', instead on keeping its original location (which was not changed) Pag1.Pag2.Pag4.

      The issue could not be reproduced on XWiki 10.11.2.

      Attachments

        Issue Links

          Activity

            [XWIKI-16170] Renaming level 3 (and higher) pages moves them to a wrong (automatically created) parent page

            AWM rename is affected also because I copied the location picker config from the rename step. I'll fix it.

            mflorea Marius Dumitru Florea added a comment - AWM rename is affected also because I copied the location picker config from the rename step. I'll fix it.
            vmassol Vincent Massol added a comment -

            Test added

            vmassol Vincent Massol added a comment - Test added
            vmassol Vincent Massol added a comment -

            Thanks for catching iandriuta!

            vmassol Vincent Massol added a comment - Thanks for catching iandriuta !
            vmassol Vincent Massol added a comment - - edited

            Note: We need a test for this. I'm closing FTM since we need this to release 11.1 final but we need a test so that it doesn't happen again.

            We should actually adapt the tests we have and ensure there's more than 1 level deep in the use case as otherwise serialization of PageReference is the same as serialization of EntityReference.

            vmassol Vincent Massol added a comment - - edited Note: We need a test for this. I'm closing FTM since we need this to release 11.1 final but we need a test so that it doesn't happen again. We should actually adapt the tests we have and ensure there's more than 1 level deep in the use case as otherwise serialization of PageReference is the same as serialization of EntityReference.
            vmassol Vincent Massol added a comment -

            Regression caused by XWIKI-16009

            vmassol Vincent Massol added a comment - Regression caused by XWIKI-16009
            surli Simon Urli added a comment -

            Apparently the rename request is created with a new reference such as

            xwiki:Page1/Page2.Page4.WebHome

            . It looks like the problem is located in the template then. Still investigating.

            surli Simon Urli added a comment - Apparently the rename request is created with a new reference such as xwiki:Page1/Page2.Page4.WebHome . It looks like the problem is located in the template then. Still investigating.

            People

              vmassol Vincent Massol
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: