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

Already cached NuGet v2 proxy repository content will return 502 if Component Max Age expires and the remote is not available

    XMLWordPrintable

    Details

      Description

      Reproduce:

      1. Start 3.20.1
      2. Make a request to cache a Nuget package:
      curl -v -u admin:admin123 http://localhost:8081/repository/nuget.org-proxy/jQuery/3.4.1 -o /dev/null
      Request should be 200 response of jQuery.3.4.1.nupkg
      3. Stop 3.20.1
      4. Start 3.21.2 against the previous work dir ( upgrade )
      5. Make a request for jquery again - this will still work ( 200 response)
      6. Block NXRMs access to nuget.org. The way I did this was configure NXRM to use a local Charles HTTP Proxy which handles SSL connections but not let NXRM trust the Charles SSL Root cert.
      7. Go to nuget.org-proxy settings and click Invalidate Cache button.
      8. Make an identical request for jquery again. This will fail with 502 response.

      Expected

      Already cached Nuget proxy repository packages should continue to be served successfully even if a remote is not available.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mjohnson Matt Johnson
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Wes Wannemacher
              Team:
              NXRM - Trinity
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title