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

Legacy Storage URL alias design problems: moving a Location (subtree) resutls in conflict





      1. Aliases are stored one DB row for each part of the path, eg. /planes/passenger/jumbo will be stored in 3 DB rows.
      2. key for the ezurlalias_ml table is composite (parent, text_md5)
      3. Creating custom alias reuses existing autogenerated rows and creates NOP rows if necessary.
      4. Autogenerated alias is an alias that is implicitly created for the Location.
      5. NOP rows are "inert" - they do not point to anything, paths that point to a NOP row are not generated by the system and if user tries to load a path pointing to NOP row redirect to root Location will be performed.
      6. NOP rows can be reused - if Location is published on the same level and with the same name, NOP row will be reused. This will not affect custom alias that originally created NOP row.
      7. When Location is moved this is what happens with URL aliases:
        1. Alias for the Location is created under new parent.
        2. Old alias for the Location is marked as history.
        3. Subtree of the Location is reparented, meaning all 1st level children aliases are updated to have newly published alias as parent.


      If Location is moved under an other Location under whose NOP entries exists that mirror the subtree aliases under a Location the is being moved, a conflict will happen when reparenting. The reason is id is already occupied by the NOP row.

      This could be solved by replacing or amending reparenting logic with publishing aliases for the Locations in the subtree that is being moved.
      This would be quite complex and in some cases DB intensive. Also, in some cases aliases of Locations in the subtree would be changed due to conflicts with custom aliases existing there.


          Issue Links



              • Assignee:
                petar.spanja@ez.no Petar Spanja (Inactive)
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Created:

                  Time Tracking

                  Original Estimate - Not Specified
                  Not Specified
                  Remaining Estimate - 0 minutes
                  Time Spent - 20 minutes