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

Incorrect NuGet server API implementation: 405 error for OData searches

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 4.3.3, 4.5.0
    • Fix Version/s: 4.7.2
    • Component/s: NuGet
    • Labels:
      None
    • Environment:

      Artifactory on Win7x64 behind Apache 2.4

      Description

      If we run the following command in Visual Studio's Package Manager Console:

      update-Package MyPackage -reinstall -Source rnd-nuget
      

      then nuget client will send a GET request something like this:

      https://myartifactory/api/nuget/rnd-nuget/Packages%28Id='MyPackage',Version='1.19.1'%29/Id
      

      But Artifactory (4.3.3 rev 40071) returns an 405 error "Method Not Allowed".

      The same thing happens with some other requests containing OData queries.
      For example:
      https://myartifactory/api/nuget/nuget-virtual/Packages?%24filter=Id%20eq%20%27moq%27%20

      So currently users can not reinstall packages from NuGet sources in our Artifactory.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Shrike Sergei Dorogin
              Votes:
              9 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: