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

NuGet v3 proxy repository will not serve cached content if remote is blocked

    XMLWordPrintable

    Details

      Description

      Create a NuGet proxy repository in Nexus Repo 3.22.0 with remote of:

      https://api.nuget.org/v3/index.json

      Pull down the index page from the proxy:

      http://localhost:8081/repository/nuget-proxy-v3/index.json

      Now set "Block outbound connections on the repository" in the proxy's configuration, save.

      Invalidate the proxy's cache, and try to download the index page again:

      http://localhost:8081/repository/nuget-proxy-v3/index.json

      This will fail with a 502 response.

       Expected: If the remote is not available, the proxy repository should serve cached content.
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mjohnson Matt Johnson
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Peter Lynch
              Team:
              NXRM - Trinity
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title

                    PagerDuty