Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-13140

eZURLAliasML::storePath() can cause incorrect url entries to be reparented

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 3.10.1, 4.0.1, 4.1.0alpha1
    • 3.10.0, 4.0.0
    • Misc
    • None

    Description

      storePath() might cause url aliases in a "different subtree" to be reparented. That means, if you say have some custom url aliases elsewhere in the tree, those might be updated and put underneath the url element, for which the custom alias points to. Here tree means the nice url paths, not the content tree.

      In the worst case, this might lead to a database error, namely a duplicate key entry.

      Example:

      \
      |-- TheRealFolder
      |   `-- MyNode
      `-- VirtualPath (Virtual path element, a nop:)
          `-- AliasToTheRealFolder (Alias to TheRealFolder)
              `-- AliasToMyNode (Alias to MyNode)
      

      When publishing a new version of TheRealFolder, you don't want that to change the placement of AliasToMyNode, to become a sibling of MyNode.

      Attachments

        Activity

          People

            oms Ole Marius Smestad
            oms Ole Marius Smestad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: