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

Nuget V3 failed to install due to case sensitivity (same work on V2)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.8.2
    • Fix Version/s: 6.17.0
    • Component/s: None
    • Labels:
    • Sprint:
      Pam - Quality 5

      Description

      Steps to reproduce:

      -create local nuget repository, deploy package EntityFramework

      -set up nuget to use v3 in NuGet.config file:

      <add key="ArtifactoryNuGetV3" value="http://localhost:8081/artifactory/api/nuget/v3/nuget-local" protocolVersion="3" />

      -Clear all Nuget cache (nuget locals all -clear), then try nuget install EntityFramework (nuget install entityframework), see that the request fails:

      GET http://localhost:8081/artifactory/api/nuget/nuget-local/Download/entityframework/6.1.0

      NotFound http://localhost:8081/artifactory/api/nuget/nuget-local/Download/entityframework/6.1.0

      -Change casing to camel case (nuget install EntityFramework), and see that the request will work now:

      curl http://localhost:8081/artifactory/api/nuget/nuget-local/Download/EntityFramework/6.1.0

      -This issue due to the metadata file containing the wrong casing:

      curl http://localhost:8081/artifactory/api/nuget/v3/nuget-local/registration-semver2/entityframework/page/6.1.0/6.1.0.json
      "packageContent":"http://localhost:8081/artifactory/api/nuget/nuget-local/Download/entityframework/6.1.0"

      -See that with nuget v2, the casing is correct:

      curl http://localhost:8081/artifactory/api/nuget/nuget-local/FindPackagesById()?id=%27EntityFramework%27

      <content type="application/zip" src="http://localhost:8081/artifactory/api/nuget/nuget-local/Download/EntityFramework/6.1.0"/>

      The issue seems to not occur for packages with just one word in the name, such as jquery

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              barh Bar Haim
              Reporter:
              mattheww Matthew Wang
              Assigned QA:
              Rotem Kfir
              Votes:
              16 Vote for this issue
              Watchers:
              22 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: