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

An error ocur when I restores an old version of a document in the resources explorer

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

      How to reproduce :

      • in the resources explorer, upload many times the same document to generate various versions of it.
      • select this document and clic on history button in the ribbon
      • try to restore the first version of the document
        > the old document is well restored but un error appears : 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._onResourceEdited (http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:515: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-10T10:24:05.882+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 ._onResourceEdited@http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:515 .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)	
      
      category: "Ametys.message.MessageBus"
      
      Messag...i18n.js (ligne 153)
      TypeError: rootIds is undefined
      
      for (var i = 0; i < rootIds.length; i++)

          [CMS-4722] An error ocur when I restores an old version of a document in the resources explorer

          Raphaël Franchet made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Laurence Aumeunier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Laurence Aumeunier made changes -
          Assignee New: Laurence Aumeunier [ laurence ]
          Laurence Aumeunier made changes -
          Fix Version/s New: 3.7_LTE [ 11927 ]
          Laure Lopez made changes -
          Description Original: How to reproduce :
          - in the resources explorer, upload many times the same document to generate various versions of it.
          - select this document and clic on history button in the ribbon
          - try to restore the first version of the document
          > the old document is well restored but un error appears : A component had an exception during the process of a message from the bus

          {code}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._onResourceEdited (http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:515: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{code}
          New: How to reproduce :
          - in the resources explorer, upload many times the same document to generate various versions of it.
          - select this document and clic on history button in the ribbon
          - try to restore the first version of the document
          > the old document is well restored but un error appears : A component had an exception during the process of a message from the bus

          {code}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._onResourceEdited (http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:515: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{code}

          Firebug logs :
          {code}2013-09-10T10:24:05.882+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 ._onResourceEdited@http://localhost:8101/cms/plugins/cms/resources/js/Ametys/plugins/cms/explorer/SimpleResourcesExplorerTool.i18n.js:515 .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)

          category: "Ametys.message.MessageBus"

          Messag...i18n.js (ligne 153)
          TypeError: rootIds is undefined

          for (var i = 0; i < rootIds.length; i++){code}
          Laure Lopez made changes -
          Laure Lopez created issue -

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

              Created:
              Updated:
              Resolved: