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

When downloading artifact using Nuget api (for example, client requests), the returned client IP value is null.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 3 - High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.10.0
    • Component/s: None
    • Labels:
    • Severity:
      High

      Description

      When downloading artifact using Nuget api (for example, client requests), the returned client IP value is null, downloading using direct link shows the correct IP - this affect user plugins which try to get the downloading client IP.

      Steps to reproduce:
      1. create user plugin using the following template:

      download {
      afterDownload { request, repoPath ->
         String requestIP = request.getClientAddress();
         String fileName = request.getName();
         log.info("requestIP: "+requestIP)
         log.info("requestFileName: "+fileName)
         }
      }
      

      2. try to download artifact using internal api call, for example nuget:
      http://localhost:8081/artifactory/api/nuget/nuget/Download/jQuery/3.2.1

      3. see the printed ip outpu, for example:

      2018-01-10 19:17:38,356 [http-nio-8081-exec-8] [INFO ] (test                :13) - requestIP: null
      2018-01-10 19:17:38,361 [http-nio-8081-exec-8] [INFO ] (test                :15) - requestFileName: jQuery.3.2.1.nupkg
      

        Attachments

          Activity

            People

            Assignee:
            inbart Inbar Tal (Inactive)
            Reporter:
            yehudah Yehuda Hadad
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-15637 -
                SYNCHRONIZED
                • Last Sync Date: