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

The in-memory NuGet cache is case-insensitive, while the NuGet API is case sensitive

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: 5.6.1
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:

      Description

      We populate the in-memory NuGet cache in a way that isn't case sensitive. For example,

      If you upload a .nupkg with the ID "FOO", and then upload another package (to a different location) with the Id "foo", then the latter would be overwriting the former in the in-memory nuget cache, leaving you with a cache entry just for "foo". The problem is that this is inconsistent with how the search APIs work (i.e /Packages(Id='packageId',Version='packageVer'), as they are case-sensitive, so in this case, you will only be able to find "FOO" if you search for it like this:

      http://localhost:8080/artifactory/api/nuget/nuget-local/Packages(Id='foo',Version='1.0.0') -> 200

      And not like this:
      http://localhost:8080/artifactory/api/nuget/nuget-local/Packages(Id='FOO',Version='1.0.0') -> 404

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                uriahl Uriah Levy
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: