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

Got 403 forbidden error when connect remote npm repo to another artifactory instance.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.16.1, 5.11.0
    • Fix Version/s: 6.0.0
    • Component/s: None
    • Labels:
      None

      Description

      When connecting a remote npm repo ( in 5.11.0 ) to a target local repo in another artifactory instance ( 4.16.0 ), if authentication credentials are set, got 403 forbidden error when test connection.

      On the target instance logs, found the following error:

      Request:

      20180516165244|4|REQUEST|12.244.40.18|admin|PUT|/api/npm/target/-/user/org.couchdb.user:admin|HTTP/1.1|403|38

      Artifactory:

      2018-05-16 16:47:11,399 [http-nio-8081-exec-4] [ERROR] (o.a.a.n.r.NpmResource:101) - No oauth2.npm.default set in oauth2.properties file

      On source instance 

      20180516095244|63|REQUEST|0:0:0:0:0:0:0:1|admin|POST|/ui/admin/repositories/testremote|HTTP/1.1|400|1276

       

      This cannot be reproduced when:

      1. from 5.11.0 to another 5.11.0 instance
      2. from 5.4.1 to 4.16.0
      3. other package types from 5.11.0 to 4.16.0

      Steps to reproduce:

      1. Setup a local repo in 4.16.0
      2. Setup a remote repo in version 5.11.0 that points to the local in 4.16.0
      3. Setup remote auth credentials and click test
      4. Saw 403 forbidden error

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              paulp Paul Pan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: