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

          Nuno Oliveira (Inactive) created issue -
          Nuno Oliveira (Inactive) made changes -
          Field Original Value New Value
          Link This issue relates to EZP-25783 [ EZP-25783 ]
          Nuno Oliveira (Inactive) made changes -
          Status Open [ 1 ] Confirmed [ 10037 ]
          Nuno Oliveira (Inactive) made changes -
          Status Confirmed [ 10037 ] InputQ [ 10001 ]
          Joao Inacio (Inactive) made changes -
          Status InputQ [ 10001 ] Development [ 3 ]
          Assignee Joao Inacio [ joao.inacio@ez.no ]
          Joao Inacio (Inactive) made changes -
          Status Development [ 3 ] Development Review [ 10006 ]
          André Rømcke made changes -
          Labels SilverBullet
          Yannick Roger (Inactive) made changes -
          Labels SilverBullet
          Joao Inacio (Inactive) made changes -
          Status Development Review [ 10006 ] Documentation Review done [ 10011 ]
          Fix Version/s 5.4.7 [ 14519 ]
          Assignee Joao Inacio [ joao.inacio@ez.no ]
          Miguel das Neves Jacinto (Inactive) made changes -
          Status Documentation Review done [ 10011 ] QA [ 10008 ]
          Miguel das Neves Jacinto (Inactive) made changes -
          Assignee Miguel das Neves Jacinto [ miguel.jacinto@ez.no ]
          Status QA [ 10008 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Alex Schuster made changes -
          Workflow EZ* Development Workflow [ 98889 ] EZEE Development Workflow [ 125713 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: