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

Error in UDW when displaying 25 or more objects per container

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7.0-beta1, 1.6.2-rc1
    • Fix Version/s: QA tracked issues, 1.7.0, 1.6.2
    • Labels:
    • Environment:

      Operating System: Ubuntu 14.04
      PHP Version: PHP 5.5.9-1ubuntu4.20 (cli)
      Database and version: 5.5.37
      Browser (and version): Firefox 49
      Env: Prod

      Description

      This issue might be a regression of EZP-24695

      If we have 25 or more objects per container, the UDW raises the following error in developer tools:

      _ezcombo?/tpl/handlebars/usermenuitemview-ez-template.js&/bundles/ezplatformui/js/views/ez-usermenu…:2104 Uncaught TypeError: Cannot read property 'toJSON' of undefined(…)(anonymous function) @ _ezcombo?/tpl/handlebars/usermenuitemview-ez-template.js&/bundles/ezplatformui/js/views/ez-usermenu…:2104E.each @ yui-min.js:10(anonymous function) @ _ezcombo?/tpl/handlebars/usermenuitemview-ez-template.js&/bundles/ezplatformui/js/views/ez-usermenu…:2103m.each.m.forEach.p._isNative.i @ yui-min.js:10_nodeToJson @ _ezcombo?/tpl/handlebars/usermenuitemview-ez-template.js&/bundles/ezplatformui/js/views/ez-usermenu…:2100_renderNodeChildren @ _ezcombo?/tpl/handlebars/usermenuitemview-ez-template.js&/bundles/ezplatformui/js/views/ez-usermenu…:2075_uiLoad @ _ezcombo?/tpl/handlebars/usermenuitemview-ez-template.js&/bundles/ezplatformui/js/views/ez-usermenu…:2003(anonymous function) @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:8_notify @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:17notify @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:17_notify @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:16_procSubs @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:16u.fireComplex @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:26_fire @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:16fire @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:17(anonymous function) @ _ezcombo?/tpl/handlebars/usermenuitemview-ez-template.js&/bundles/ezplatformui/js/views/ez-usermenu…:1328(anonymous function) @ _ezcombo?/tpl/handlebars/usermenuitemview-ez-template.js&/bundles/ezplatformui/js/views/ez-usermenu…:1443(anonymous function) @ _ezcombo?/bundles/ezplatformui/js/views/dashboard/ez-dashboardblockallcontentview.js&/tpl/handlebar…:2726(anonymous function) @ _ezcombo?/bundles/ezplatformui/js/views/dashboard/ez-dashboardblockallcontentview.js&/tpl/handlebar…:2879test @ _ezcombo?app-base/app-base-min.js&querystring-stringify-simple/querystring-stringify-simple-min.js&…:48(anonymous function) @ _ezcombo?app-base/app-base-min.js&querystring-stringify-simple/querystring-stringify-simple-min.js&…:48(anonymous function) @ _ezcombo?/bundles/ezplatformui/js/views/dashboard/ez-dashboardblockallcontentview.js&/tpl/handlebar…:2983(anonymous function) @ _ezcombo?oop/oop-min.js&event-custom-base/event-custom-base-min.js&event-custom-complex/event-custo…:8XHR.onreadystatechange @ _ezcombo?app-base/app-base-min.js&querystring-stringify-simple/querystring-stringify-simple-min.js&…:1586
      

      Steps to Reproduce

      -Create 25 objects (folders, for instance)
      -Open UDW and view the container of the 25 previously created objects
      -Se see an infinite spinning whell and developer tools present the error mentioned above

      The content tree displays the objects without any problem.

        Issue Links

          Activity

          Show
          André Rømcke added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/764
          Hide
          André Rømcke added a comment -

          PR ready for testing.

          Show
          André Rømcke added a comment - PR ready for testing.
          Hide
          Paulo Nunes (Inactive) added a comment -

          PR verified by QA and the PR seems to fix the issue.

          tested in master and the PR was also applied in 1.7.0-rc just to verify if everything would be on on 1.7.0 once merged.
          Tested with <100; =100 and > 100 objects per container (despite UDW being limited to display the maximum of 100 objects).

          I'll send this issue back to DEV to that the merge may proceed.

          Show
          Paulo Nunes (Inactive) added a comment - PR verified by QA and the PR seems to fix the issue. tested in master and the PR was also applied in 1.7.0-rc just to verify if everything would be on on 1.7.0 once merged. Tested with <100; =100 and > 100 objects per container (despite UDW being limited to display the maximum of 100 objects). I'll send this issue back to DEV to that the merge may proceed.
          Hide
          André Rømcke added a comment - - edited

          Merged (1.6 & master): https://github.com/ezsystems/PlatformUIBundle/commit/c89fccf1af9ab5644d840e399f8dd8a6485e7963

          Also made part of v1.6.2.1 tag which just adds this fix to the existing v1.6.2 tag.

          Show
          André Rømcke added a comment - - edited Merged (1.6 & master) : https://github.com/ezsystems/PlatformUIBundle/commit/c89fccf1af9ab5644d840e399f8dd8a6485e7963 Also made part of v1.6.2.1 tag which just adds this fix to the existing v1.6.2 tag.
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Paulo Nunes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: