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

Rest API shouldn't allow to create Nuget remote repository without mandatory parameter "downloadContextPath"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 6.18.0
    • Fix Version/s: 7.8.1
    • Component/s: None
    • Labels:
    • Severity:
      Medium

      Description

      While creating a Nuget remote repository using Artifactory UI, then "NuGet Download Context Path" is mandatory configuration else it will diable the "Save & Finish" option and will not allows users to create a remote repository.

      Whereas  Rest API CreateRepository allowing to create Nuget remote repository without  "downloadContextPath":"api/v2/package" path setting. However, when user navigates to the created repository on Artifactory UI, the "Save and Finish" button will be grayed out and we will not be able to modify the repository settings until user specify NuGet Download Context Path.

      Below is example JSON which shoudnl't allow with '/api/repositories/<repo-key>' REST call:

      {"key": "nuget-remote-test", "packageType": "nuget", "synchronizeProperties": true, "bypassHeadRequests": true, "blockMismatchingMimeTypes": true, "rclass": "remote", "url": "https://art-bobcat.autodesk.com/artifactory/team-verticals-3p-enable-nuget", "username": "RESTRICTED_USERNAME, "password": "REDACTED*", "contentSynchronisation": {"enabled": true, "statistics":

      {"enabled": true}

      , "properties": {"enabled": true}, "source": {"originAbsenceDetection": true}}}

      Expected BehaviorAsk:

      Don't allow REST API to create a Nuget remote repository without "downloadContextPath":"api/v2/package" path setting in the input body.

       

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                tomern Tomer Nir
                Reporter:
                sankark Sankar Kumar
                Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: