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

Virtual NuGet repositories do not index remote repositories using GitLab

    XMLWordPrintable

    Details

    • Location:
      External

      Description

      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:

      1. Remote repo "A" with v3 feed URL: https://gitlab.com/api/v4/projects/33243006/packages/nuget/index.json
      2. Virtual repo "B" includes remote repo "A".
      3. 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)

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              phillip.cao.fph Phillip Cao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-26765 -
                  SYNCHRONIZED
                  • Last Sync Date: