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.
- is duplicated by
-
RTFACT-10628 feedContextPath, downloadContextPath properties are not available through API for Nuget remote repository
- Done