-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing "ForceNugetAuthentication" in repository template #330
Comments
I have been provided with a workaround for this issue. Create the following json : {
"key" : "ych-dotnet-release-local",
"packageType" : "nuget",
"rclass" : "local",
"description" : "created by automation",
"notes" : "test",
"includesPattern" : "**/*",
"excludesPattern" : "",
"repoLayoutRef" : "nuget-default",
"forceNugetAuthentication" : true
} jfrog rt curl -XPUT -T nuget-test.json -H "Content-Type: application/json" api/repositories/ych-dotnet-release-local Which works for local repositories, but not for virtual repositories where I get the error: PS c:\jfrog> jfrog rt curl -XPUT -T templates\nuget\virtual.json -H "Content-Type: application/json" api/repositories/nuget-repository {
"errors" : [ {
"status" : 400,
"message" : "Cannot invoke org.artifactory.repo.VirtualRepositoryConfigurationImpl.setRepositories on bean class 'class org.artifactory.repo.VirtualRepositoryConfigurationImpl' - [java.lang.ClassCastException@7ec47b87](mailto:java.lang.ClassCastException@7ec47b87) - had objects of type \"java.lang.String\" but expected signature \"java.util.List\"\n"
} ] |
@cyan21 and @bthharper - |
@cyan21 @bthharper |
Describe the bug
Not possible to create a nuget local or remote repository with the "ForceNugetAuthentication" option enabled.
When running jfrog rt rpt, it doesn't offer this option in the "wizard"
To Reproduce
jfrog rt rtc nuget-template.json
Expected behavior
Being able to create a Nuget repository with all the option available on the UI
Screenshots
If applicable, add screenshots to help explain your problem.
Versions
Additional context
After investigating, it might be related to a typo error here
shouldn't it be "ForceNugetAuthentication" instead of "ForceMavenAuthentication"
The text was updated successfully, but these errors were encountered: