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

Issues with creating smart remote repository using REST API on Edge node

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Not a Bug
    • Affects Version/s: 7.18.6, 7.19.9
    • Fix Version/s: None
    • Labels:
      None
    • Location:
      External

      Description

      Problem Description:

      While trying to create a smart remote repository through a REST API on a Edge node, we do get an error indicating "Only smart remote repositories are supported with Artifactory Edge license"

      However, its possible to create the smart remote repository through UI without any issues.

      Steps to Reproduce:

      Use the below REST API to create the smart remote repository on a Edge node

      $ curl -uadmin http://artifactory.edge/artifactory/api/repositories/edge-generic-remote -d '{"key":"edge-generic-remote","username":"admin","password":"Password@2021","rclass":"remote","url":"http://artifactory.source/artifactory/jfrog-generic-local","packageType":"generic","contentSynhronisation":{"enabled":"true"}}' -H "Content-Type: application/json" -XPUT

      It will indicate an error as below

      Enter host password for user 'admin':
      { "errors" : [ \{ "status" : 400, "message" : "Only smart remote repositories are supported with Artifactory Edge license\n" } ]
      }

      However the same REST API to create a smart remote repository on a Artifactory node which doesn't have an EDGE license, able to create the repository

      $curl -uadmin http://artifactory.source/artifactory/api/repositories/jfrog-generic-remote -d '{"key":"jfrog-generic-remote","username":"admin","password":"password","rclass":"remote","url":"http://artifactory.target/artifactory/jfrog-generic-local","packageType":"generic","contentSynhronisation":{"enabled":"true"}}' -H "Content-Type: application/json" -XPUT

      Enter host password for user 'admin':

      Successfully created repository 'jfrog-generic-remote'

      Expected Results: Since, it is possible to create the smart remote repository on a Edge node using UI, while using the REST API should help in creating the smart remote repository.

       

      Pain Level:  High as they use terraform as well as REST APIs to create the things

      Affected versions:

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              vigneshs Vignesh S
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

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