Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-20861

Deleting a nuget package from a proxy repository removes its version from group level metadata

    Details

    • Story Points:
      1
    • Notability:
      3

      Description

      Create a proxy repository to https://www.powershellgallery.com/api/v2/
      Create a nuget group repository "nuget-group" and add the proxy repository into it.

      Download:

      http://localhost:8081/repository/nuget-group/FindPackagesById()?id=%27PowerShellGet%27&$skip=0&$top=40

      Observe that version 2.0.0 is in the metadata.

      Download:

      http://localhost:8081/repository/nuget-group/PowerShellGet/2.0.0

      Now delete the PowerShell-2.0.0.nupkg repository from the proxy, and download the group level metadata again:

      http://localhost:8081/repository/nuget-group/FindPackagesById()?id=%27PowerShellGet%27&$skip=0&$top=40

      Notice that version 2.0.0 is no longer present in the metadata.  This will make subequent download attempts of that version through the group using NuGet client fail.

      Expiring the group level cache fixes this problem.

      Expected:  Removing a nuget package from a proxy repository should not remove its version from the metadata

       

        Attachments

          Activity

            People

            Assignee:
            moncef Moncef Ben-Soula
            Reporter:
            rseddon Rich Seddon
            Last Updated By:
            Michael Prescott Michael Prescott
            Team:
            NXRM - Neo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title