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

The parent-child relationship of a page is not updated during a move

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 8.4.1, 7.4.6, 9.0-rc-1
    • 7.4.2, 8.1
    • Refactoring
    • None
    • Unknown
    • N/A
    • N/A

    Description

      The ancien parent field is updated during creation process, and thanks to XWIKI-13106, the children are also updated during a rename of the parent page. But, when a page is moved, the parent field of the page itself is not updated according to its new parent.
      Moreover, the NS Migrator App also update that parent field in addition to the normal rename process. Issue linked to parent field get notice very late in legacy application, since the parent field is properly maintained in all cases but this one. So I believe this is a bug that need to be fix, or there is no point to have manage all the other use cases.

      Step to reproduce:
      1) Create page A(.WebHome)
      2) Create page A.B(.WebHome)
      3) Create page A.B.C(.WebHome)
      4) Create page A.B.C.D(.WebHome)
      5) Move page A.B.C(.WebHome) to page A.C(.WebHome)
      5) Export all these pages to XAR, and check their <parent> tags.

      Page Storage parent Parent field Comment
      A (null) Main.WebHome Curious...
      B A(.WebHome) A.WebHome Ok
      C A(.WebHome) A.B.WebHome Wrong
      D A.C(.WebHome) A.C.WebHome Ok

      Attachments

        Issue Links

          Activity

            People

              gdelhumeau Guillaume Delhumeau
              softec Denis Gervalle
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: