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

Old parent (of parent-child relation) is set fully prefixed when a page is moved

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.4.1, 7.4.6, 9.0-rc-1
    • Fix Version/s: 9.11.8, 10.10-rc-1, 10.8.2
    • Component/s: Refactoring
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      When the parent value of the old parent-child relation is set upon the move of a page ( XWIKI-13493 ), apparently the parent value is set as the fully prefixed reference of the parent, including wiki name.
      In order to match the backwards compatibility need (as expressed by XWIKI-13493), it should not be set fully prefixed, as it was not the case before (when parents were set manually for pages and automatically upon rename of the parent page).
      None of the code that is querying pages by the parent name (old style) is querying for prefixed value, as it was never stored prefixed before.

      Also, a sort-of principle of XWiki storage is that the name of a database is never stored inside that same database, as much as possible (excepting content of documents where users could write whatever they want) in order to increase flexibility of data move.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                surli Simon Urli
                Reporter:
                lucaa Anca Luca
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: