Uploaded image for project: 'Repository'
  1. Repository
  2. REPOSITORY-299

In some cases, the Open JCR Node action does not work

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.8.10, 4.9.0
    • None
    • None
    • None

      Steps to reproduce :

      1. If the JcrViewTool is opened, close it and restart your app.
      2. At this point, "Ametys.repository.RepositoryApp.getCurrentWorkspace()" would normally return null. (which is the reason of the bug).
      3. Open the AmetysViewTool, select a node and click on the "Open JCR node" action button

      This is due to the combobox of the JcrViewTool which was never initialized and thus Ametys.repository.RepositoryApp.currentWorkspace is still _null

          [REPOSITORY-299] In some cases, the Open JCR Node action does not work

          I'm not able to reproduce the steps as in step 3 after clicking on the ribbon button, nothing happens and I get a JS error:

          Uncaught TypeError: Cannot read property 'open' of undefined
          act @ AmetysActions.js:39
          (anonymous function) @ ext-all-debug.js:6696
          executeFunctionByName @ Ametys.js:409
          onPress @ ButtonController.js:512
          (anonymous function) @ ext-all-debug.js:6696
          callback @ ext-all-debug.js:8497
          fireHandler @ ext-all-debug.js:132238
          onClick @ ext-all-debug.js:132226
          fire @ ext-all-debug.js:20326
          fire @ ext-all-debug.js:32684
          publish @ ext-all-debug.js:32660
          doDelegatedEvent @ ext-all-debug.js:32710
          onDelegatedEvent @ ext-all-debug.js:32697
          (anonymous function) @ ext-all-debug.js:6696
          

          Simon Prieul (Inactive) added a comment - I'm not able to reproduce the steps as in step 3 after clicking on the ribbon button, nothing happens and I get a JS error: Uncaught TypeError: Cannot read property 'open' of undefined act @ AmetysActions.js:39 (anonymous function) @ ext-all-debug.js:6696 executeFunctionByName @ Ametys.js:409 onPress @ ButtonController.js:512 (anonymous function) @ ext-all-debug.js:6696 callback @ ext-all-debug.js:8497 fireHandler @ ext-all-debug.js:132238 onClick @ ext-all-debug.js:132226 fire @ ext-all-debug.js:20326 fire @ ext-all-debug.js:32684 publish @ ext-all-debug.js:32660 doDelegatedEvent @ ext-all-debug.js:32710 onDelegatedEvent @ ext-all-debug.js:32697 (anonymous function) @ ext-all-debug.js:6696

            Unassigned Unassigned
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: