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

Nuget virtual repository does not retrieve the package correctly (in case it has versions like "n.n.n-beta")

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 6.6.0
    • Fix Version/s: None
    • Component/s: NuGet, Virtual Repositories
    • Labels:
      None
    • Regression:
      Yes

      Description

      From Artifactory version 6.6.0, when working with a PowerShell client to request a package from a virtual repository (which aggregate a remote repository to https://www.powershellgallery.com) in case there is a latest version of the package like "2.0.0-beta" the request will fail on the client side. for example: https://www.powershellgallery.com/packages/PSReadLine/2.0.0-beta4

       

      In case same request executed directly to the remote repository the latest stable version (e.g "1.2") will be retrieved. 

       

      In case the latest version is stable (e.g 1.2) the request will be successful from both virtual and remote repository. for example: https://www.powershellgallery.com/packages/Carbon/2.8.1

       

      Steps to reproduce:

      On Artifactory side:

      1. Artifactory version 6.6.0 and above
      2. Create a Nuget remote repository to https://www.powershellgallery.com/
      3. Create a Nuget virtual repository which aggregate the Nuget remote repository

      On the PowerShell client side:

      Add the Nuget repositories to the PowerShell client:

      1. Register-PSRepository -Name "art-remote" -SourceLocation "http://localhost:8081/artifactory/api/nuget/powershell-remote" -InstallationPolicy Trusted
      2. Register-PSRepository -Name "art-virtual" -SourceLocation "http://localhost:8081/artifactory/api/nuget/powershell-virtual" -InstallationPolicy Trusted

       

      Try to $find module via the remote:

      Find-Module PSReadLine -Repository art-remote

      Notice it will succeed and retrieve the artifact version.

       

      Try to $find module via the virtual:

      Find-Module PSReadLine -Repository art-virtual
      

      Notice the request will fail and no results returned.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                kfira Kfir Avraham
              • Votes:
                7 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated: