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

Legacy Storage URL alias design problems: deleting Location potentially destroys custom alias

    XMLWordPrintable

Details

    Description

      Context:

      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. Creating custom alias reuses existing autogenerated rows and creates NOP rows if necessary.
      3. autogenerated alias is an alias that is implicitly created for the Location.
      4. 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.

      Problem:

      Deleting a Location whose alias row was reused by custom alias will delete its alias row, which will effectively mangle custom alias.

      This would be possible to fix by replacing deletion of aliases with conversion to NOP rows, if not for the problem described in https://jira.ez.no/browse/EZP-20775

      Attachments

        Activity

          People

            Unassigned Unassigned
            petar.spanja-obsolete@ez.no Petar Spanja (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m