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

Map\URI matcher containing umlauts generates broken URLs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.4.6
    • Fix Version/s: Customer request, 5.4.7
    • Component/s: Legacy stack
    • Labels:
      None

      Description

      When you define a Map\URI matcher that contains umlauts, such as "flüchtlinge", and then try to access content on a frontend siteaccess (non-legacy), it fails, because the matcher's umlauts are replaced by underscores.

      Example:

      example.com/fl_chtlinge/myfolder/myarticle

      Steps to reproduce:

      1. Prepare a test installation of eZ Publish 5.4, updated to 5.4.6;
      2. Create the following content structure:

      Home
          MyFolder
              MyArticle
      

      3. Modify ezpublish.yml:

      ezpublish:
          siteaccess:
              ...
              match:
                  Compound\LogicalAnd:
                      my_compound_rule_1:
                          matchers:
                              Map\URI:
                                  'flüchtlinge': true
                              Map\Host:
                                  example.com: true
                          match: ezdemo_site
      

      4. Accessing the following link will work:

      http://example.com/flüchtlinge/MyFolder

      5. However, when you access the "MyFolder" page and click on the "MyArticle" link, you will be re-directed to "http://example.com/fl_chtlinge/MyFolder/MyArticle", instead of "http://example.com/flüchtlinge/MyFolder/MyArticle", and a "Module not found" error will be displayed.

      All links to contents directly under the root node are OK, but all contents under that level will have broken links if the siteaccess matcher has umlauts in it.

      Note: although I'm accessing a siteaccess that is in non-legacy mode, the problem seems to originate in this legacy template:

      /ezpublish_legacy/extension/ezdemo/design/ezdemo/override/templates/full/folder.tpl

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Confirmed Confirmed
          7m 25s 1 nuno.oliveira@ez.no 19/May/16 7:59 PM
          Confirmed Confirmed InputQ InputQ
          5s 1 nuno.oliveira@ez.no 19/May/16 7:59 PM
          InputQ InputQ Development Development
          14h 59m 1 joao.inacio@ez.no 20/May/16 10:58 AM
          Development Development Development Review Development Review
          20m 58s 1 joao.inacio@ez.no 20/May/16 11:19 AM
          Development Review Development Review Documentation Review done Documentation Review done
          26d 14m 1 joao.inacio@ez.no 15/Jun/16 11:33 AM
          Documentation Review done Documentation Review done QA QA
          14s 1 miguel.jacinto@ez.no 15/Jun/16 11:33 AM
          QA QA Closed Closed
          2m 3s 1 miguel.jacinto@ez.no 15/Jun/16 11:35 AM

            People

            • Assignee:
              Unassigned
              Reporter:
              Nuno Oliveira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: