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

Editing Content and assigning its old URL to a different Content will not work properly

    XMLWordPrintable

Details

    Description

      Description:

      When editing certain Content (for example for Folder CT "Short name" attribute is being changed) and URL changes the old URL is stored in browser and Persistence cache (even though it does not exist in the database). The old redirection works, however, when we assign this old URL to different Content it will still point to the previous Content. Clearing browser and persistence cache resolves this problem.

      Note: the cache pool type doesn't matter, so it's not a Redis related problem.

      Steps to reproduce:

      1. Create first Folder Content with attributes:
        "name": aa
        "short name": aa
      2. Create second Folder Content with attributes:
        "name": bb
        "short name": bb
      3. Go to first Folder's URL i.e. http://localhost/aa - you can see proper data
      4. Edit first Folder and chang "name" and "short name" to "a"
      5. Go to the newly created URL: http://localhost/a - you can see proper data of the first folder
      6. Go to the old first Folder's URL: http://localhost/aa - you have been redirected to http://localhost/a
      7. Add new URL to the second Folder: "aa"
      8. Go to the following URL: http://localhost/aa

      Result:
      You have been redirected to http://localhost/a (the first Folder)

      Expected result:
      You should have been redirected to http://localhost/bb (the second Folder)

      Dirty fix:

      1. Clear persistence cache
      2. Clear browser cache
      3. Repeat last step - you have been redirected properly

      Attachments

        Activity

          People

            Unassigned Unassigned
            bartlomiej.wajda@ibexa.co Bartłomiej Wajda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: