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

Unable to install from remote NuGet repository

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: NuGet
    • Environment:
      • Tested version 3.0.2 standalone with java-1.7.0-openjdk on Centos 6.3
      • Also reproduced using 3.0.1 WAR running inside Tomcat 7.0.41 with JDK 1.7.0u25 on Windows 2008 R2

      Description

      Steps to reproduce

      1. "Install" artifactory-powerpack-standalone-3.0.2 per wiki
      2. ./artifactory.sh
      3. Install license
      4. Log in as admin
      5. Go to Admin > Repositories
      6. Under Remote Repositories click [New]
      7. Provide the following values:
        1. Basic Settings:
          1. Repository Key: nuget-official
          2. URL: *https://nuget.org*
          3. Public Description: NuGet official package source
            The NuGet Gallery is the central package repository used by all package authors and consumers.
        2. Packages:
          1. Enable NuGet Support
          2. NuGet Feed Context Path: api/v2
          3. NuGet Download Context Path: api/v2/package
      8. Click [Test]
      9. Click [Create]
      10. Let's see if it works, by comparing against the official source (I'm using NuGet 2.6 - version 2.6.40619.9041):
        E:\source\test>nuget list yaml -source https://nuget.org/api/v2
        ConfigGeneration 1.0.5
        FsYaml 1.1.2
        PowerYaml 1.0.3
        SquishIt.Config 1.0.23.0
        SquishIt.Config.Mvc 1.0.23.0
        YamlDotNet.Converters 2.0.0
        YamlDotNet.Core 2.1.0
        YamlDotNet.RepresentationModel 2.1.0
        YamlSerializer 1.0
        
        E:\source\test>nuget list yaml -source http://192.168.59.130:8081/artifactory/api/nuget/nuget-official
        ConfigGeneration 1.0.5
        FsYaml 1.1.2
        PowerYaml 1.0.3
        SquishIt.Config 1.0.23.0
        SquishIt.Config.Mvc 1.0.23.0
        YamlDotNet.Converters 2.0.0
        YamlDotNet.Core 2.1.0
        YamlDotNet.RepresentationModel 2.1.0
        YamlSerializer 1.0
        
        
      11. Let's try to install YamlDotNet.Converters (make sure you have never installed it before or you have deleted it from your NuGet cache under %LocalAppData%/Nuget/Cache/):
        E:\source\test>nuget install YamlDotNet.Converters -source http://192.168.59.130:8081/artifactory/api/nuget/nuget-official

      Expected result:

      Attempting to resolve dependency 'YamlDotNet.Core (= 2.0.0)'.
      Attempting to resolve dependency 'YamlDotNet.RepresentationModel (= 2.0.0)'.
      Installing 'YamlDotNet.Core 2.0.1'.
      Successfully installed 'YamlDotNet.Core 2.0.1'.
      Installing 'YamlDotNet.RepresentationModel 2.0.1'.
      Successfully installed 'YamlDotNet.RepresentationModel 2.0.1'.
      Installing 'YamlDotNet.Converters 2.0.0'.
      Successfully installed 'YamlDotNet.Converters 2.0.0'.
      
      E:\source\test>
      

      Actual result:

      1. The following console output:
        Attempting to resolve dependency 'YamlDotNet.Core (= 2.0.0)'.
        The remote server returned an error: (404) Not Found.
        
        E:\source\test>
        
      2. A zero-byte YamlDotNet.Core.2.0.1.nupkg file in the NuGet cache (this file will have to be deleted to repeat the test).
      3. request.log contains the following:
        20130722124324|1|REQUEST|192.168.59.1|non_authenticated_user|GET|/api/nuget/nuget-official|HTTP/1.0|200|0
        20130722124324|2|REQUEST|192.168.59.1|non_authenticated_user|GET|/api/nuget/nuget-official/$metadata|HTTP/1.0|200|0
        20130722124325|1019|REQUEST|192.168.59.1|non_authenticated_user|GET|/api/nuget/nuget-official/FindPackagesById()|HTTP/1.1|200|0
        20130722124326|413|REQUEST|192.168.59.1|non_authenticated_user|GET|/api/nuget/nuget-official/FindPackagesById()|HTTP/1.1|200|0
        20130722124326|402|REQUEST|192.168.59.1|non_authenticated_user|GET|/api/nuget/nuget-official/Download/YamlDotNet.Core/2.0.1|HTTP/1.0|204|0
        
      4. Attempting to hit the download URL (http://192.168.59.130:8081/artifactory/api/nuget/nuget-official/Download/YamlDotNet.Core/2.0.1) with my browser:

        HTTP Status 404 - Not Implemented

        type Status report

        message Not Implemented

        description The requested resource is not available.

        Apache Tomcat/7.0.39

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shayy Shay Yaakov (Inactive)
                Reporter:
                oli_at_jsi Olivier Dagenais
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: