-
Type:
Bug
-
Status: Open
-
Resolution: Unresolved
-
Affects Version/s: 7.31.10
-
Fix Version/s: None
-
Component/s: Artifactory, NuGet, Virtual Repositories
-
Labels:
-
Location:External
It appears that NuGet virtual repositories do index remote NuGet repositories that point to GitLab. From the logs, it appears artifactory is looking for "RegistrationsBaseUrl/3.6.0" at the feed URL but GitLab returns "RegistrationsBaseUrl/3.0.0-rc"
Setup example:
- Remote repo "A" with v3 feed URL: https://gitlab.com/api/v4/projects/33243006/packages/nuget/index.json
- Virtual repo "B" includes remote repo "A".
- NuGet config has a virtual repo "B" as a v3 source.
Below are logs from our Artifactory Pro instance:
2022-01-29T10:48:15.537Z [jfrt ] [ERROR] [6b21e7049cff81d3] [etV3VirtualAndRemoteCommon:493] [http-nio-8081-exec-2] - Failed to extract url for type: RegistrationsBaseUrl/3.6.02022-01-29T10:48:15.537Z [jfrt ] [ERROR] [6b21e7049cff81d3] [etV3VirtualAndRemoteCommon:493] [http-nio-8081-exec-2] - Failed to extract url for type: RegistrationsBaseUrl/3.6.0java.lang.IllegalStateException: Failed to extract url for type: RegistrationsBaseUrl/3.6.0 at org.artifactory.addon.nugetv3.repo.NuGetV3VirtualAndRemoteCommon.lambda$extractRemoteUrlFromFeedByType$12(NuGetV3VirtualAndRemoteCommon.java:488) at java.base/java.util.Optional.orElseThrow(Optional.java:408) at org.artifactory.addon.nugetv3.repo.NuGetV3VirtualAndRemoteCommon.extractRemoteUrlFromFeedByType(NuGetV3VirtualAndRemoteCommon.java:488) at org.artifactory.addon.nugetv3.repo.NuGetV3VirtualAndRemoteCommon.convertToOriginalUrl(NuGetV3VirtualAndRemoteCommon.java:299) at org.artifactory.addon.nugetv3.repo.NuGetV3VirtualAndRemoteCommon.downloadRemoteRegistration(NuGetV3VirtualAndRemoteCommon.java:131) at org.artifactory.addon.nugetv3.repo.NuGetV3VirtualRepoHandler.extractOrFetchRegistrationResultPageItems(NuGetV3VirtualRepoHandler.java:418) at org.artifactory.addon.nugetv3.repo.NuGetV3VirtualRepoHandler.lambda$processRemoteRepos$15(NuGetV3VirtualRepoHandler.java:397) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)