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

Platform UI: Creation of a content directly from Studio (eZ Platform V1.7)

    XMLWordPrintable

    Details

      Description

      In Studio UI, if we try to create content from a landing page we will get a blank tab, instead of getting the content creation form.
      The issue seems to be caused by Platform UI, since the wrong language is forced at some point.

      Steps to reproduce:

      Use case #1

      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. Edit app/config/ezplatform.yml, and add the following settings:

      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
                      - fre-FR
              french:
                  languages:
                      - fre-FR
      

      4. Clear the caches:

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

      5. Access to the backend, click on the Page tab, and select the French siteaccess
      6. Click the Create button, then click on Content and create an Article. Make sure the selected language is fre-FR

      Actual behavior:
      We get a blank tab instead of getting the content creation form

      Expected behavior:
      We should get the content creation form, like happens on the Site siteaccess


      Use case #2

      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. Edit app/config/ezplatform.yml, and add the following settings:

      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:
                      - eng-GB
                      - fre-FR
      

      4. Clear the caches:

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

      5. Access to the backend, click on the Page tab, and select the French siteaccess
      6. Click the Create button, then click on Content and create an Article. Make sure the selected language is fre-FR

      Actual behavior:
      I get the following errors:

      TypeError: refList.UrlAlias[0] is undefined
      locationAlias = refList.UrlAlias[0]._href.split('/'),
      

      and

      "NetworkError: 403 Forbidden - http://ezenterprise17-studio-clean.local/api/ezp/v2/content/objects/81/versions/1"
      

      with response

      {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":403,"errorMessage"
      :"Forbidden","errorDescription":"Only version in status DRAFT can be updated"}}
      

      Expected behavior:
      We should be able to publish the content in the desired language without errors

      Also, while navigating the content structure on the Platform UI, I get the following error each time I select my french article:

      refList.UrlAlias[0] is undefined 
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: