Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-21681

Normalize Nuget Proxy Requests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.19.0
    • Fix Version/s: None
    • Component/s: NuGet
    • Labels:

      Description

      Currently, nuget requests don't appear to be normalized before they are proxied to the remote e.g. nuget.org

      For example, the following request to a proxy repository returns a 404:

      curl -u admin:admin123 -I http://localhost:8081/repository/nuget.org-proxy/NuGet.Frameworks/5.0.0+42a8779499c1d1ed2488c2e6b9e2ee6ff6107766

      This is due to the proxied request containing version metadata (+42a8779499c1d1ed2488c2e6b9e2ee6ff6107766):

      2019-10-09 09:03:05,212+0000 DEBUG [qtp889901887-20645]  *UNKNOWN org.apache.http.headers - http-outgoing-6481 >> GET /api/v2/Packages(Id='NuGet.Frameworks',Version='5.0.0+42a8779499c1d1ed2488c2e6b9e2ee6ff6107766') HTTP/1.1
      2019-10-09 09:03:05,212+0000 DEBUG [qtp889901887-20645]  *UNKNOWN org.apache.http.headers - http-outgoing-6481 >> Host: www.nuget.org
      ...
      2019-10-09 09:03:05,364+0000 DEBUG [qtp889901887-20645]  *UNKNOWN org.apache.http.headers - http-outgoing-6481 << HTTP/1.1 404 Not Found
      

      Expected:
      The request should be normalized (per https://github.com/NuGet/Home/wiki/SemVer-2.0.0-support) before it is proxied to the remote.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hardeepn Hardeep Nagra
              Reporter:
              hardeepn Hardeep Nagra
              Last Updated By:
              Hardeep Nagra Hardeep Nagra
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title