Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-14141

Upstream packages w/o a "time" closure in the package.json will fail metadata merge in Virtual NPM repos

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.6.0
    • Component/s: NPM
    • Labels:
      None

      Description

      Artifactory will throw a NPE when trying to merge metadata of a package that has no "time" closure in it. It will happen only with virtual repositories.
      See the fully attached stack trace.

      To reproduce:

      1.Create a virtual NPM repository, a local repository, and a remote repository to registry.npmjs.org (put both under the virtual)
      2.Create an NPM package and call it "logger" (by running the npm init command from the client). Push the package to the local NPM repo you created.
      3. Try to resolve http://localhost:8080/artifactory/api/npm/npm-virtual/logger from the virtual repository -> observe the 500 response and the NPE on the log.

        Attachments

          Activity

            People

            • Assignee:
              tomerma Tomer Mayost (Inactive)
              Reporter:
              uriahl Uriah Levy
              Assigned QA:
              Inbar Tal
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: