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

Landing Page preview doesn't work correctly when using Host Siteaccess Matcher for admin siteaccess

    Details

      Description

      If the Platform UI is accessed via Host (using Map\Host siteaccess matcher), then Landing Page preview doesn't work correctly.

      After clicking "Page" tab in the Admin UI, the preview iframe is loaded, but inside the iframe there is another instance of Admin UI loaded instead of correct Landing Page preview.
      From the menu on top, it is still possible to click on another siteaccess (different than the default one) or on "eZ Studio presentation" button and then the preview will work correctly.

      If the Editor goes to "Content"/"Content structure" first, selects a Landing Page, and then clicks on "Page", the following error is displayed (in dev mode):

      Twig_Error_Runtime:
      Variable "siteaccess" does not exist.
       
        at vendor\ezsystems\studio-ui-bundle\Resources\views\page\page.html.twig:63
      

      The issue might also happen when using other siteaccess matchers.

      Steps to reproduce

      1. Create a new eZ Platform v2 installation.
      2. Add the following configuration to your ezplatform.yml file:

        ezpublish:
            siteaccess:
                match:
                    URIElement: 1
                    Map\Host:
                        admin.your-site.example: admin
        

      3. Access your site via admin.your-site.example. Admin UI should be shown. Log in.
      4. Click on "Page". The loaded iframe will have another Admin UI instance instead of Landing Page preview.
      5. Go to "Content"/"Content structure" and then click on "Page" again. The error described above will be shown (in dev mode). In prod mode, there will be the same symptoms as in step 4

        Activity

        Jacek Foremski (Inactive) created issue -
        Jacek Foremski (Inactive) made changes -
        Field Original Value New Value
        Link This issue relates to CS-6596 [ CS-6596 ]
        Jacek Foremski (Inactive) made changes -
        Status Open [ 1 ] Confirmed [ 10037 ]
        Jacek Foremski (Inactive) made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        Show
        Adam Wójs added a comment - PR: https://github.com/ezsystems/StudioUIBundle/pull/881
        Adam Wójs made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Assignee Adam Wójs [ adam.wojs@ez.no ]
        Adam Wójs made changes -
        Description If the Platform UI is accessed via Host (using Map\Host siteaccess matcher), then Landing Page preview doesn't work correctly.

        After clicking "Page" tab in the Admin UI, the preview iframe is loaded, but inside the iframe there is another instance of Admin UI loaded instead of correct Landing Page preview.
        From the menu on top, it is still possible to click on another siteaccess (different than the default one) or on "eZ Studio presentation" button and then the preview will work correctly.

        If the Editor goes to "Content"/"Content structure" first, selects a Landing Page, and then clicks on "Page", the following error is displayed (in dev mode):
        {code}
        Twig_Error_Runtime:
        Variable "siteaccess" does not exist.

          at vendor\ezsystems\studio-ui-bundle\Resources\views\page\page.html.twig:63
        {code}
        The issue might also happen when using other siteaccess matchers.

        *Steps to reproduce*
        # Create a new eZ Platform v2 installation.
        # Add the following configuration to your {{ezplatform.yml}} file:
        {code}
        ezpublish:
            siteaccess:
                match:
                    URIElement: 1
                    Map\Host:
                        admin.your-site.example: admin
        {code}
        # Access your site via {{admin.your-site.example}}. Admin UI should be shown. Log in.
        # Click on "Page". The loaded iframe will have another Admin UI instance instead of Landing Page preview.
        # Go to "Content"/"Content structure" and then click on "Page" again. The error described above will be shown (in dev mode). In prod mode, there will be the same symptoms as in step 4.
        If the Platform UI is accessed via Host (using Map\Host siteaccess matcher), then Landing Page preview doesn't work correctly.

        After clicking "Page" tab in the Admin UI, the preview iframe is loaded, but inside the iframe there is another instance of Admin UI loaded instead of correct Landing Page preview.
        From the menu on top, it is still possible to click on another siteaccess (different than the default one) or on "eZ Studio presentation" button and then the preview will work correctly.

        If the Editor goes to "Content"/"Content structure" first, selects a Landing Page, and then clicks on "Page", the following error is displayed (in dev mode):
        {code}
        Twig_Error_Runtime:
        Variable "siteaccess" does not exist.

          at vendor\ezsystems\studio-ui-bundle\Resources\views\page\page.html.twig:63
        {code}
        The issue might also happen when using other siteaccess matchers.

        *Steps to reproduce*
        # Create a new eZ Platform v2 installation.
        # Add the following configuration to your {{ezplatform.yml}} file:
        {code}
        ezpublish:
            siteaccess:
                match:
                    URIElement: 1
                    Map\Host:
                        admin.your-site.example: admin
        {code}
        # Access your site via {{admin.your-site.example}}. Admin UI should be shown. Log in.
        # Click on "Page". The loaded iframe will have another Admin UI instance instead of Landing Page preview.
        # Go to "Content"/"Content structure" and then click on "Page" again. The error described above will be shown (in dev mode). In prod mode, there will be the same symptoms as in step 4
        Adam Wójs made changes -
        Status Development [ 3 ] Development Review [ 10006 ]
        Michał Szołtysek made changes -
        Status Development Review [ 10006 ] Documentation Review done [ 10011 ]
        Assignee Adam Wójs [ adam.wojs@ez.no ]
        Michał Szołtysek made changes -
        Status Documentation Review done [ 10011 ] QA [ 10008 ]
        Hide
        Michał Szołtysek added a comment -

        QA Approved on eZ Platform EE v2.0.2 with patch.

        Show
        Michał Szołtysek added a comment - QA Approved on eZ Platform EE v2.0.2 with patch.
        Michał Szołtysek made changes -
        Status QA [ 10008 ] QA Done [ 10007 ]
        Fix Version/s 2.1.0-beta1 [ 14896 ]
        Assignee Michał Szołtysek [ michal.szoltysek@ez.no ]
        Michał Szołtysek made changes -
        Assignee Michał Szołtysek [ michal.szoltysek@ez.no ]
        Hide
        Florian ALEXANDRE added a comment -

        Hi,

        Looking at the v2.1.0-beta1 release notes (https://github.com/ezsystems/ezplatform-ee/releases/tag/v2.1.0-beta1), it seems that this bug fix wasn't included. Can you give me the confirmation that it will be included in the next release ?

        Thx

        Show
        Florian ALEXANDRE added a comment - Hi, Looking at the v2.1.0-beta1 release notes ( https://github.com/ezsystems/ezplatform-ee/releases/tag/v2.1.0-beta1 ), it seems that this bug fix wasn't included. Can you give me the confirmation that it will be included in the next release ? Thx
        Hide
        Łukasz Serwatka added a comment -

        It will be included in RC-1 on March 19th.

        Show
        Łukasz Serwatka added a comment - It will be included in RC-1 on March 19th.
        Michał Szołtysek made changes -
        Assignee Michał Szołtysek [ michal.szoltysek@ez.no ]
        Status QA Done [ 10007 ] Closed [ 6 ]
        Fix Version/s 2.1.0-rc1 [ 14897 ]
        Fix Version/s 2.1.0-beta1 [ 14896 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        4m 6s 1 jacek.foremski@ez.no 24/Jan/18 1:18 PM
        Confirmed Confirmed InputQ InputQ
        4s 1 jacek.foremski@ez.no 24/Jan/18 1:18 PM
        InputQ InputQ Development Development
        32d 19h 38m 1 Adam Wójs 26/Feb/18 8:57 AM
        Development Development Development Review Development Review
        3d 5h 24m 1 Adam Wójs 01/Mar/18 2:21 PM
        Development Review Development Review Documentation Review done Documentation Review done
        18h 32m 1 Michał Szołtysek 02/Mar/18 8:54 AM
        Documentation Review done Documentation Review done QA QA
        6s 1 Michał Szołtysek 02/Mar/18 8:54 AM
        QA QA QA Done QA Done
        3h 18m 1 Michał Szołtysek 02/Mar/18 12:12 PM
        QA Done QA Done Closed Closed
        20d 9m 1 Michał Szołtysek 22/Mar/18 12:22 PM

          People

          • Assignee:
            Unassigned
            Reporter:
            Jacek Foremski (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: