Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-19905

npm group repository fails to display metadata for package

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.16.0, 3.16.1, 3.16.2
    • Fix Version/s: 3.17.0
    • Component/s: NPM
    • Labels:
      None
    • Environment:
      Docker container run on AWS ECS

      Description

      npm group repository configuration:

      • registry.npmjs.org proxy
      • a hosted npm repository

      When a user tries to install a package from the group repository, he is greeted with "javax.servlet.ServletException: java.lang.NullPointerException".
      Nexus Log:
      2019-05-09 12:48:20,194+0000 ERROR [qtp2078370204-166] admin org.sonatype.nexus.repository.npm.internal.NpmGroupFacet - Unable to use Cooperation to merge pagerduty for repository npm-group
      com.fasterxml.jackson.databind.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: java.util.HashMap["readme"])
      So far, we've been able to discover two packages hosted on npmjs that trigger this issue:

      It would appear that both of those packages have their "readme" field in the medatada empty, as seen here:
      http://registry.npmjs.org/pagerduty
      http://registry.npmjs.org/build

      Steps to reproduce
      1. Set up a fresh Nexus (3.16.0 or later) instance
      2. Create a proxy repository for registry.npmjs.org
      3. Create a hosted npm repository
      4. Create an npm group repository consisting of two previously created repositories
      5. Try to install one of the above packages using the npm repository group

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              wiget Artur Frysiak
              Last Updated By:
              Rich Seddon Rich Seddon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title