Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22539

Fix NPE on mp-add + mp-install of Snapshot studio project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 8.10-HF08
    • Fix Version/s: None
    • Component/s: Dev Tools

      Description

      When a server is not registered, trying to install snapshot studio package after adding it throws an NPE when trying to download the package.

      The issue can be reproduced, from the command line, with an add + install:

      $ ./bin/nuxeoctl mp-add /tmp/test.zip --clid ~/instance.clid
      Added test-quandora-48dec60d457545ee9b0177c3e4de1732-0.0.0-SNAPSHOT
      
      $ ./bin/nuxeoctl mp-install test-quandora-48dec60d457545ee9b0177c3e4de1732 --clid ~/instance.clid
      Dependency resolution:
        Installation order (1):        test-quandora-48dec60d457545ee9b0177c3e4de1732-0.0.0-SNAPSHOT
        Unchanged packages (2):        nuxeo-jsf-ui:8.10.0, nuxeo-dam:6.2.3
        Local packages to install (1): test-quandora-48dec60d457545ee9b0177c3e4de1732:0.0.0-SNAPSHOT
      
      Do you want to continue (yes/no)? [yes] 
      Download of 'test-quandora-48dec60d457545ee9b0177c3e4de1732-0.0.0-SNAPSHOT' will replace the one already in local cache.
      Downloading [test-quandora-48dec60d457545ee9b0177c3e4de1732-0.0.0-SNAPSHOT]...
      Cannot execute command. null
      java.lang.NullPointerException
          at org.nuxeo.launcher.connect.ConnectBroker.downloadPackages(ConnectBroker.java:1123)
          at org.nuxeo.launcher.connect.ConnectBroker.pkgAdd(ConnectBroker.java:807)
          at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1372)
          at org.nuxeo.launcher.connect.ConnectBroker.pkgRequest(ConnectBroker.java:1226)
          at org.nuxeo.launcher.NuxeoLauncher.pkgRequest(NuxeoLauncher.java:2890)
          at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1215)
          at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1103)
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: