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

Nexus Repo 2 makes outbound requests from npm proxy repositories that are marked "out of service"

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.14.15
    • Fix Version/s: None
    • Component/s: NPM
    • Labels:
      None
    • Notability:
      4

      Description

      1. Create an npm proxy repository. 
      2. Right click on it and mark it as "out of service".  
      3. Go "administration/logging" and add a DEBUG logger for: remote.storage.outbound
      4. Make a request for npm metadata through the proxy:

      http://localhost:8081/nexus/content/repositories/npm-proxy/lodash

      Check the logs, and observe that an outbound request is made.

      jvm 1 | 2020-02-19 13:49:14,938-0600 INFO [proxy-3-thread-2] admin org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage - Initializing remote transport for proxy repository "npm-proxy" [id=npm-proxy]...
      jvm 1 | 2020-02-19 13:49:49,115-0600 DEBUG [qtp2014765845-81] admin remote.storage.outbound - [npm-proxy] GET https://registry.npmjs.org/lodash
      jvm 1 | 2020-02-19 13:49:49,174-0600 DEBUG [qtp2014765845-81] admin remote.storage.outbound - [npm-proxy] GET https://registry.npmjs.org/lodash -> HTTP/1.1 200 OK; 58.98 ms

      Expected: Out of service proxy repositories should not make outbound requests.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Date of First Response:

                  tigCommentSecurity.panel-title