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

Studio UI displays content even if the siteaccess doesn't contain the language

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: High High
    • Customer request
    • 1.7.0
    • Studio UI
    • None

    Description

      Studio UI displays content even if the siteaccess doesn't contain the language.

      Steps to reproduce:

      1. Install a studio-clean 1.7.0 environment in prod:

      php -d memory_limit=-1 app/console ezplatform:install --env prod studio-clean
      

      2. Log in to the admin interface and created a new language, "fre-FR"
      3. Add the following settings in ezplatform.yml:

      ezpublish:
          # Repositories configuration, setup default repository to support solr if enabled
          repositories:
              default:
                  storage: ~
                  search:
                      engine: %search_engine%
                      connection: default
      
          # Siteaccess configuration, with one siteaccess per default
          siteaccess:
              list:
                - site
                - french
              groups:
                  site_group:
                      - site
                      - french
              default_siteaccess: site
              match:
                  URIElement: 1
      
          # System settings, grouped by siteaccess and/or siteaccess group
          system:
              site_group:
                  # Pool to use for cache, needs to be differant per repository (database).
                  cache_pool_name: '%cache_pool%'
                  # These reflect the current installers, complete installation before you change them. For changing var_dir
                  # it is recommended to install clean, then change setting before you start adding binary content, otherwise you'll
                  # need to manually modify your database data to reflect this to avoid exceptions.
                  var_dir: var/site
              site:
                  languages:
                      - eng-GB
              french:
                  languages:
                      - fre-FR
      

      4. Clear the caches:

      php app/console cache:clear --env=prod
      

      5. On the "Content" tab create and navigate to the content structure
      6. Create a new landingpage under Home, and make sure to change the language to fre-FR before publishing

      7. After publishing, click on the "Page" tab

      Studio will load the content (which is only translated in fre-FR) no the site siteaccess, and it shouldn't, since the language is not defined in the siteaccess.

      This will lead to other issues, since studio also allows switching to edit mode.

      The expected result would be not loading the content at all, and maybe load the Home instead, just like happens be default.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ricardo.correia-obsolete@ez.no Ricardo Correia (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: