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

Using querystring-stringify as ezs-studionavigationhubplugin dependency causes errors

    XMLWordPrintable

Details

    Description

      If we add querystring-stringify as a ezs-studionavigationhubplugin dependency we will get errors while accessing content objects on the Platform UI.
      The issue itself is related to eZ Studio, even if it happens on the Platform UI side.

      Using querystring-stringify will make the following calls to be done:

      /api/ezp/v2/content/locations/1/2/urlaliases?custom=0&siteaccessName=
      

      The correct should be:

      /api/ezp/v2/content/locations/1/2/urlaliases?custom=false&siteaccessName=undefined
      

      In resume, using querystring-stringify will make custom to be 0, and that will cause the following error:
      On Chrome:

      Cannot read property '_href' of undefined
      

      On Firefox:

      refList.UrlAlias[0] is undefined
      

      Steps to reproduce:

      Edit vendor/ezsystems/studio-ui-bundle/Resources/config/yui.yml to add querystring-stringify as follows:

                      ezs-studionavigationhubplugin:
                          requires: ['ez-viewservicebaseplugin', 'ezs-dynamicnavigationitemview', 'ez-pluginregistry', 'querystring-stringify']
                          dependencyOf: ['ez-navigationhubviewservice']
                          path: %ezstudioui.public_dir%/js/views/services/plugins/ezs-studionavigationhubplugin.js
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: