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

RPM group settings will not be returned when using the get repository configuration REST API

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.10.2
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:
      None

      Description

       

      We should have the option to update/set RPM Group File Names via the REST API.

      Currently, it is not working in the expected behavior. We have two issues with the API

       

      1. The repository configuration REST API does not provide details on the RPM group file names of the particular repository. 
      Steps to reproduce :

      • Add a rpm group file in rpm-local repository inside the repodata folder
      • Edit rpm-local repository configuration and add the group file name in rpm-local repository settings.
      • Artifactory will create the corresponding .gz file and deploy it next to the deployed group XML file.
      • Use the Repository configuration REST API to get the details of Repository. The group file name details are not given in the json as shown below 

      curl -u admin:password -X GET http://mill.jfrog.info:12248/artifactory/api/repositories/rpm-local
      -d '

      { "key": "rpm-local", "packageType": "rpm", "description": "", "notes": "", "includesPattern": "**/*", "excludesPattern": "", "repoLayoutRef": "simple-default", "enableComposerSupport": false, "enableNuGetSupport": false, "enableGemsSupport": false, "enableNpmSupport": false, "enableBowerSupport": false, "enableCocoaPodsSupport": false, "enableConanSupport": false, "enableDebianSupport": false, "debianTrivialLayout": false, "enablePypiSupport": false, "enablePuppetSupport": false, "enableDockerSupport": false, "dockerApiVersion": "V2", "forceNugetAuthentication": false, "enableVagrantSupport": false, "enableGitLfsSupport": false, "enableDistRepoSupport": false, "checksumPolicyType": "client-checksums", "handleReleases": true, "handleSnapshots": true, "maxUniqueSnapshots": 0, "maxUniqueTags": 0, "snapshotVersionBehavior": "unique", "suppressPomConsistencyChecks": true, "blackedOut": false, "propertySets": [], "archiveBrowsingEnabled": false, "calculateYumMetadata": true, "enableFileListsIndexing": false, "yumRootDepth": 0, "xrayIndex": false, "enabledChefSupport": false, "rclass": "local" }

      '

      2. On using the same json file with the Update Repository Configuration API, the group file name configuration is updated and it removes the previously added group file name. Here is the API call :

      curl -uadmin:password -X POST http://mill.jfrog.info:12248/artifactory/api/repositories/rpm-local
      -d '

      { "key": "rpm-local", "packageType": "rpm", "description": "", "notes": "", "includesPattern": "**/*", "excludesPattern": "", "repoLayoutRef": "simple-default", "enableComposerSupport": false, "enableNuGetSupport": false, "enableGemsSupport": false, "enableNpmSupport": false, "enableBowerSupport": false, "enableCocoaPodsSupport": false, "enableConanSupport": false, "enableDebianSupport": false, "debianTrivialLayout": false, "enablePypiSupport": false, "enablePuppetSupport": false, "enableDockerSupport": false, "dockerApiVersion": "V2", "forceNugetAuthentication": false, "enableVagrantSupport": false, "enableGitLfsSupport": false, "enableDistRepoSupport": false, "checksumPolicyType": "client-checksums", "handleReleases": true, "handleSnapshots": true, "maxUniqueSnapshots": 0, "maxUniqueTags": 0, "snapshotVersionBehavior": "unique", "suppressPomConsistencyChecks": true, "blackedOut": false, "propertySets": [], "archiveBrowsingEnabled": false, "calculateYumMetadata": true, "enableFileListsIndexing": false, "yumRootDepth": 0, "xrayIndex": false, "enabledChefSupport": false, "rclass": "local" }

      '

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hezic Hezi Cohen
                Reporter:
                prasannan Prasanna Narayana
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: