Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2924

Using Map\Host and Compund\LogicalAnd to match admin SiteAccess can result in broken page preview

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • Customer request
    • 2.5.6
    • Page Builder
    • None

    Description

      Using a specific combination of Map\Host and Compound\LogicalAnd matchers can result in broken Page Preview in Page.

      Steps to reproduce
      1. Clean installation of eZ Platform 2.5.6
      2. In ezplatform.yml set:

      ezpublish:
          #...
          siteaccess:
              list: [site, admin]
              groups:
                  site_group: [site]
                  admin_group: [admin]
              default_siteaccess: site
              match:
                  Compound\LogicalAnd:
                      admin_matcher:
                          matchers:
                              Map\Host: { localhost: true }
                              Map\URI:
                                  admin: admin
                          match: admin
                      site_matcher:
                          matchers:
                              Map\Host: { localhost: true }
                          match: site
                  Map\Host:
                      admin.localhost: admin
      

      3. Log into the Backoffice as admin under http://admin.localhost.
      4. Go to /Home. Click on "Page" tab, and then on site SiteAccess.

      Result

      Cannot display this page in Page Builder app. Sorry!

      Expected Result
      Page preview load normally.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mateusz.bieniek@ibexa.co Mateusz Bieniek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: