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

Set Me Up for NPM package has incorrect settings shown for Scoped setting

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 4.14.0
    • Fix Version/s: 5.0.0
    • Component/s: Web UI
    • Labels:
      None
    • Sprint:
      Leap 2

      Description

      Set Me Up for NPM generates a wrong setting for scoped. It is missing a forward slash and context path on URIs. For example, Set Me Up shows this:

      @joshua:registry=http://172.16.183.1/artifactory/api/npm/npm-virtual/
      /172.16.183.1/api/npm/npm-virtual/:_password=QVAzV3NwbzRlVU5vaDVCTm9HQ3FpSjdvWFFo
      /172.16.183.1/api/npm/npm-virtual/:username=admin
      /172.16.183.1/api/npm/npm-virtual/:email=youremail@email.com
      /172.16.183.1/api/npm/npm-virtual/:always-auth=true

      As a result, npm publish fails with an error like

      npm ERR! Darwin 16.0.0
      npm ERR! argv "/usr/local/Cellar/node5/5.12.0/bin/node" "/usr/local/bin/npm" "publish" "--verbose"
      npm ERR! node v5.12.0
      npm ERR! npm v3.8.6
      npm ERR! code ENEEDAUTH

      npm ERR! need auth auth required for publishing
      npm ERR! need auth You need to authorize this machine using `npm adduser`
      npm verb exit [ 1, true ]

      And the request does not reach Artifactory.

      Kriheli: the above example needs to be changed into:
      @joshua:registry=http://172.16.183.1/artifactory/api/npm/npm-virtual/
      //172.16.183.1/artifactory/api/npm/npm-virtual/:_password=QVAzV3NwbzRlVU5vaDVCTm9HQ3FpSjdvWFFo
      //172.16.183.1/artifactory/api/npm/npm-virtual/:username=admin
      //172.16.183.1/artifactory/api/npm/npm-virtual/:email=youremail@email.com
      //172.16.183.1/artifactory/api/npm/npm-virtual/:always-auth=true

        Attachments

          Activity

            People

            • Assignee:
              dannyr Danny Reiser (Inactive)
              Reporter:
              joshuah Joshua Han
              Assigned QA:
              Mor Iluz (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: