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

Npm Info - not including all the artifact metadata that should be collected from the package.json file

    XMLWordPrintable

    Details

    • Location:
      External

      Description

      Description:

      Currently, the information presented in the npm Package Information should include the artifact metadata collected from the package.json file, and Artifactory should lets you view this metadata of an npm package directly in the the UI. 

      Steps to reproduce:

      I pushed to Artifacotry (using 'npm publish command') 2 identical artifacts, however, with 2 different package.json files - one includes the repository section in it and the other one does not. In both cases, the 'Repository' information was not shown in the NPM Info tab.
      **

      Here is an example for package.json: 

      {
          "name": "@npm-example/scopetests",
          "version": "0.0.41",
          "scripts": {
              "start": "node helloworld"
          },
          "dependencies": {
              "send": "^0.16.2"
          },
          "devDependencies": {
              "debug": "^4.1.1"
          },
          "homepage": "https://benwhybrow.com/",
          "repository": {
              "type": "git",
              "url": "git+https://github.com/bwhybrow23/Nginx.git"
          }
      }

      I could observe the same behaiover with public artifacts as well - i.e Nginx

      {
       "name": "nginx",
       "version": "1.0.3",
       "description": "An NPM package used for installing and configuring NGINX virtual hosts.",
       "main": "nginx.js",
       "scripts": {
       "test": "echo \"Error: no test specified\" && exit 1"
       },
       "keywords": [
       "node",
       "nginx",
       "virtual",
       "host",
       "nginx",
       "helper"
       ],
       "author": "Ben Whybrow",
       "license": "LICENSE.md",
       "dependencies": {
       "chalk": "^4.1.0",
       "commander": "^7.2.0"
       },
       "bin": {
       "nginx": "./index.js"
       },
       "homepage": "https://benwhybrow.com/",
       "repository": {
       "type": "git",
       "url": "git+https://github.com/bwhybrow23/Nginx.git"
       },
       "bugs": {
       "url": "https://github.com/bwhybrow23/Nginx/issues"
       }
      }
      

      Expected results:

      As the 'Repository' information is part of the package.json file, we should this infomration under 'npm info' tab. 

      Actual results:

      **We see there is a section Repository, howevr, no data is trnsfered to the UI and not presented in the UI. 

      Further checking this, this is not a frontened bug, as we can see the data was not fully transffered to the UI. 

       

      We see there is a section Repository, however, no data was transferred to the UI and not presented in the UI. 

      Further checking this, this is not a frontend bug, as we can see the data was not fully transferred to the UI. 

      I am also attaching screenshots that demonstrating the issue.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            noyb Noy Badani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Sync Status

                Connection: RTFACT Sync
                RTMID-26432 -
                SYNCHRONIZED
                • Last Sync Date: