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

Deleted NuGet packages returned from FindPackagesById

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 6.16.0
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:
    • Environment:

      Windows Server 2012 R2

      Description

      I am getting this issue after deploying NuGet packages with the same version but different build metadata (as per semver2.0). 

      For example:

      Org\Org.Module\Org.Module.1.0.0+20200829102020.nupkg
      Org\Org.Module\Org.Module.1.0.0+20200829103020.nupkg
      Org\Org.Module\Org.Module.1.0.0+20200829104020.nupkg 
      

      If I delete the first one of these, or it is deleted automatically in my case because Max Unique Snapshots is set to 2 (in this example), then calling:

      [http://ukfavwjavarepo.org.com:8081/artifactory/api/nuget/org-dotnet-local/FindPackagesById()?id='Org.Module'&semVerLevel=2.0.0|http://ukfavwjavarepo.org.com:8081/artifactory/api/nuget/org-dotnet-local/FindPackagesById()?id=%27Org.Module%27&semVerLevel=2.0.0]
      

      Continues to return the first one, which then causes a NuGet restore to fail as the following:

      http://ukfavwjavarepo.org.com:8081/artifactory/api/nuget/org-dotnet-local/Download/Org.Module/7.0.0-snapshot+20200829102020
      

      returns NotFound.

      This is breaking all our Continuous Integration builds when packages are removed, and is only resolved by restating the Artifactory service.

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Harper Theo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: