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

Map\URI siteaccess matcher is greedy

    XMLWordPrintable

    Details

      Description

      test case:

      setup the ezpublish.yml with a matcher such as:

              match:
                  Map\URI:
                      eng: eng
                      the_admin: the_admin
      

      with this configuration, the result is these broken behaviors:

      • content that begins with the same string as the siteaccess will result in a kernel error.
        example: site.host.name/eng/eng-content
      • the siteaccess name is repeatable. for example, given an object named "test", these are accepted urls:
        • site.host.name/eng/test
        • site.host.name/eng/eng/test
        • site.host.name/eng/eng/eng/eng/eng/test
          they all point to the same object
      • usage of twig operator path( location ) or other other path() variants with a location where the url has this structure:
        site.host.name/<SA_name>/<string that includes SA_name>, will result in urls lacking the <SA_name> part.
        example: calling a path(...) for an object with url:
        site.host.name/eng/an-eng-article
        will result in a url:
        site.host.name/an-eng-article

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              paulo.bras@ez.no Paulo Bras (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 7 hours
                  7h