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

Error in LP editor when using Compound\LogicalAnd - Map\URI siteaccess matcher

    XMLWordPrintable

Details

    • [2.3] Sprint 1

    Description

      It is impossible to edit or go back to view mode in Landing Page editor when Compound\LogicalAnd siteaccess matching used.

      Steps to reproduce

      1. Configure siteaccess matching using Compound\LogicalAnd matcher. See snippet below.
      2. Create Landing Page (or use default one)
      3. Go to Landing Page editor.
      4. For the site (default and admin siteaccess) editor works as expected.
      5. Switch to one of the other siteaccesses, for e.g. ger
      6. If you close the error message bar, and switch to Edit, then you will be able to edit and/or publish LP, but if you want to switch back to view mode, then you will get an exception. See code below.

      Current behaviour
      1. Error message at the bottom, red bar:

      Cannot get page information from the server
      

      2. In console:

      {message: "Cannot get page information from the server", identifier: "get-page-info"}
          identifier:"get-page-info"
          message:"Cannot get page information from the server"
          __proto__:Object
      

      3. In the browser URL bar, you can see that LP editor adds URI prefix twice, for e.g. de-de/de-de for ger siteaccess.
      4. Missing URL and undefined Last edited by in page descripion. See attached screenshots.
      5. Two highlighted siteaccesses. See attached screenshots.
      6.

      Exception when try to switch back to the view mode
      No route found for "GET /de-de/de-de/" (from "http://e12solr.local:8103/ez")
      

      Configuration
      SiteAccess configuration:

      siteaccess:
              list: [site, eng, ger, fre]
              groups:
                  site_group: [site, eng, ger, fre]
              default_siteaccess: site
              match:
                  Compound\LogicalAnd:
                      eng:
                          matchers:
                              Map\URI:
                                  en-gb: true
                              Map\Host:
                                  e12solr.local: true
                          match: eng
                      ger:
                          matchers:
                              Map\URI:
                                  de-de: ger
                              Map\Host:
                                  e12solr.local: true
                          match: ger
                      fre:
                          matchers:
                              Map\URI:
                                  fr-fr: fre
                              Map\Host:
                                  e12solr.local: true
                          match: fre
                  Map\Host:
                      e12solr.local: site
      
      system:
              site_group:
                  cache_pool_name: '%cache_pool%'
                  var_dir: var/site
                  content:
              site:
                  languages:
                      - eng-GB
                      - fre-FR
                      - ger-DE
              eng:
                  languages:
                      - eng-GB
              ger:
                  languages:
                      - ger-DE
              fre:
                  languages:
                      - fre-FR
      

      In 1.7.6
      Using mentioned siteaccess configuration in eZ Platform 1.7.6 it is not reproducible because the whole editor is "frozen" and you can see only infinitive spinner.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: