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

Unable to restore nuget package from the proxy repository for case, when there are more than 100 older versions published.

    XMLWordPrintable

    Details

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

      Server on Red Hat Linux, x64 Java 8

    • Severity:
      Medium
    • Requirement Status:

      UNCOVERED

      Description

      Steps idea:

      1. Install Artifactory Professional v6.1.0 rev 60100900
      2. Find any package on the nuget.org, which has at least 101 versions published (for example - use NLog package)
      3. Create .Net Core project which references this package and (which is important) use proxy repositories only
      4. Set package restoring URL to see to the local Artifactory installation
      5. Try to restore this package: from nuget.exe, from msbuild or from Visual Studio.

      Expected result:
      Package is restored

      Actual result:
      Package was not restored, nuget writes something like this:

      Errors in D:\temp\22\2. NLogWhichCouldNotBeRestored\NLogWhichCouldNotBeRestored\NLogWhichCouldNotBeRestored.csproj
       NU1103: Unable to find a stable package nlog with version (>= 4.5.1)
       - Found 100 version(s) in 3rdParty [ Nearest version: 5.0.0-beta01 ]
      

      Please see attached zip file, which has concrete examples:

      1. Preconditions:
        1. Install Visual Studio 2017 (Community edition is ok)
        2. Download the latest nuget - for example, 4.7.1 - https://www.nuget.org/downloads
      2. Go to the folder "1. NLogWhichCanBeRestored"
      3. Patch file "restore.bat" - fix url to the workable Artifactory instance, which is able to proxy requests to the nuget.org
      4. Execute "restore.bat"
      5. What was happened:
        1. Project references NLog 4.5.0, which has 99 older versions uploaded. So, it can be restored without any issues.
        2. All NLog versions newer than 4.5.0 could not be restored
      6. Go to the folder "2. NLogWhichCouldNotBeRestored"
      7. Patch bat file "1_restore_by_using_internal_artifactory.bat" by the same way with patching above (see item "2")
      8. Execute file "1_restore_by_using_internal_artifactory.bat"
        1. It will fail, because of describing issue. I see warning from the nuget with the text "Found 100 version(s) in 3rdParty [ Nearest version: 5.0.0-beta01 ]"
      9. Execute file "2_restore_by_using_nuget.org.bat"
        1. Restore will be completed without Errors

        Attachments

          Issue Links

            Forms

              Activity

                  People

                  Assignee:
                  Unassigned
                  Reporter:
                  igor.manushin Igor Manushin (Inactive)
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                    Dates

                    Created:
                    Updated: