Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-4725

An error appears when deleting a file in the resources explorer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.9
    • 3.9
    • None
    • Chrome, FF

      How to reproduce :

      • select a file in the resource explorer panel
      • clic on delete button of the ribbon
        > the document seems to be well deleted but a error message appears : Error: Message bus error A component had an exception during the process of a message from the bus
      TypeError: Cannot read property 'length' of undefined
      TypeError: Cannot read property 'length' of undefined
      at Ext.define._isOnTree (http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:383:30)
      at Ext.define._onResourceDeleted (http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:442:14)
      at Ext.define.fire (http://localhost:8101/cms/resources/js/Ametys/message/MessageBus.i18n.js:145:14)
      at http://localhost:8101/cms/plugins/extjs4/resources/js/ext-all-debug.js:2088:27

      Firebug logs :

      2013-09-10T11:03:16.087+02:00 ERROR [Ametys.message.MessageBus] Un composant a rencontré une exception lors du traitement d'un message du bus (TypeError: rootIds is undefined) ._isOnTree@http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:383 ._onResourceDeleted@http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:442 .fire@http://localhost:8101/cms/resources/js/Ametys/message/MessageBus.i18n.js:145 Ext.Function.bind/<@http://localhost:8101/cms/plugins/extjs4/resources/js/ext-all-debug.js:2088
      anonymous()Messag...i18n.js (ligne 153)
      anonymous()ext-all-debug.js (ligne 2088)
      
      category: "Ametys.message.MessageBus"
      
      Messag...i18n.js (ligne 153)
      TypeError: rootIds is undefined
      
      for (var i = 0; i < rootIds.length; i++)

            laurence Laurence Aumeunier
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: