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
- is duplicated by
-
RTFACT-14478 Nuget Search should be case in-sensitive
-
- Done
-