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

Document: Content becomes unavailable if you rename secondary name

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: High High
    • None
    • 5.4.6
    • None

    Description

      This issue was converted to the documentation issue as the result of investigation, see discussion for more details. Original description:

      From EZP-26069.

      If you have a multi language site and rename the name of a translation, the old URL won't be accessible any more.

      Steps to reproduce

      Create the folder "In ENG #001" in English:

      http://5-4.ezpublish.dev/In-ENG-001

      SELECT action, id, is_alias, is_original, lang_mask, text
      FROM ezurlalias_ml WHERE action_type = "eznode" AND id >= 112
      ORDER BY id DESC LIMIT 20;
      +------------+-----+----------+-------------+-----------+------------+
      | action     | id  | is_alias | is_original | lang_mask | text       |
      +------------+-----+----------+-------------+-----------+------------+
      | eznode:127 | 112 |        0 |           1 |         3 | In-ENG-001 |
      +------------+-----+----------+-------------+-----------+------------+
      Translate the folder "In ENG #001" based on "None" to Portuguese and name it "In POR #001"

      http://5-4.ezpublish.dev/In-POR-001

      SELECT action, id, is_alias, is_original, lang_mask, text
      FROM ezurlalias_ml WHERE action_type = "eznode" AND id >= 112
      ORDER BY id DESC LIMIT 20;
      +------------+-----+----------+-------------+-----------+------------+
      | action     | id  | is_alias | is_original | lang_mask | text       |
      +------------+-----+----------+-------------+-----------+------------+
      | eznode:127 | 112 |        0 |           1 |         3 | In-ENG-001 |
      | eznode:127 | 112 |        0 |           1 |         5 | In-POR-001 |
      +------------+-----+----------+-------------+-----------+------------+
      Edit in Portuguese the folder "In ENG #001" and rename "In POR #001" to "In POR #002"

      http://5-4.ezpublish.dev/In-POR-002

      SELECT action, id, is_alias, is_original, lang_mask, text
      FROM ezurlalias_ml WHERE action_type = "eznode" AND id >= 112
      ORDER BY id DESC LIMIT 20;
      +------------+-----+----------+-------------+-----------+------------+
      | action     | id  | is_alias | is_original | lang_mask | text       |
      +------------+-----+----------+-------------+-----------+------------+
      | eznode:127 | 113 |        0 |           0 |         4 | In-POR-001 |
      | eznode:127 | 112 |        0 |           1 |         3 | In-ENG-001 |
      | eznode:127 | 112 |        0 |           1 |         5 | In-POR-002 |
      +------------+-----+----------+-------------+-----------+------------+
      "In POR #001" does not work anymore (404).

      http://5-4.ezpublish.dev/In-POR-001

      "In POR #002" works fine

      http://5-4.ezpublish.dev/In-POR-002

      Attachments

        Activity

          People

            Unassigned Unassigned
            eduardo.fernandes-obsolete@ez.no Eduardo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h