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

Move/Rename: Links on child pages with their own children not updated when pointing to their own children

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 15.5
    • Refactoring
    • Ubuntu 20.04.6 LTS, XWiki Debian 15.5
    • Unknown
    • N/A
    • N/A

    Description

      When moving a page with children, if a child page has its own children and links to them, the links to the child pages are not updated, but all other links are.

      Let's say we have the following structure:

      ├─ A.WebHome
      │   └─ A.B.WebHome
      │       ├─ A.B.C.WebHome
      │       │   ├─ A.B.C.C1.WebHome
      │       │   └─ A.B.C.C2.WebHome
      │       └─ A.B.D.WebHome
      │           ├─ A.B.D.D1.WebHome
      │           └─ A.B.D.D2.WebHome

      On page 'A.B.C.WebHome', we have two links:

      • [[Label>>doc:A.B.C.C1.WebHome]]
      • [[Label>>doc:A.B.D.WebHome]]

      Now, we move 'A.B.WebHome' up to the same level as 'A' and select 'Preserve Children' and 'Update Links', so that it is now 'B.WebHome'.

      ├─ A.WebHome
      ├─ B.WebHome
      │   ├─ B.C.WebHome
      │   │   ├─ B.C.C1.WebHome
      │   │   └─ B.C.C2.WebHome
      │   └─ B.D.WebHome
      │       ├─ B.D.D1.WebHome
      │       └─ B.D.D2.WebHome

      All the pages move correctly (except for one - seems like an 'off by one error', but that is another issue).  Now on page 'B.C.WebHome' (formerly 'A.B.C.WebHome'), the links look like this:

      • [[Label>>doc:A.B.C.C1.WebHome]]
      • [[Label>>doc:B.D.WebHome]]

      All links pointing to a child page of 'B.C.WebHome' (like the first link) are NOT updated and still point to the original location (the 'A.' should not be there).  But links pointing to other pages that were part of the move and are NOT children of 'B.C.WebHome' are updated correctly (the second link).  The same problem exists for all child pages with their own children, like 'B.D.WebHome'.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            Redhorse Rob Ostapiuk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: