Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44007

File Operations Plugin: Cannot download from Nexus, other web servers are fine

      I've been using the fileDownloadOperation step recently which has been working well. Had need to download a file from our local Nexus installation and it failed without error.

      Switched the URL to download a file from the JBoss Nexus installation and it still failed.

      Checking the response headers Nexus does issue additional ones concerning XSS however I did not debug fully. It would seem sensible to record what the fault is, at the very least.

      Workaround: Use the httpRequest plugin (https://jenkins.io/doc/pipeline/steps/http_request/) within a step as follows:

      httpRequest url: 'http://nexus.mycompany.com:8081/nexus/service/local/repositories/thirdparty/content/com/oracle/jre/8u131-windows/jre-8u131-windows-i586.tar.gz', responseHandle: 'NONE', outputFile: 'download.tar.gz'

          [JENKINS-44007] File Operations Plugin: Cannot download from Nexus, other web servers are fine

          James Green created issue -
          James Green made changes -
          Description Original: I've been using the fileDownloadOperation step recently which has been working well. Had need to download a file from our local Nexus installation and it failed without error.

          Switched the URL to download a file from the JBoss Nexus installation and it still failed.

          Checking the response headers Nexus does issue additional ones concerning XSS however I did not debug fully. It would seem sensible to record what the fault is, at the very least.
          New: I've been using the fileDownloadOperation step recently which has been working well. Had need to download a file from our local Nexus installation and it failed without error.

          Switched the URL to download a file from the JBoss Nexus installation and it still failed.

          Checking the response headers Nexus does issue additional ones concerning XSS however I did not debug fully. It would seem sensible to record what the fault is, at the very least.

          Workaround: Use the httpRequest plugin ([https://jenkins.io/doc/pipeline/steps/http_request/)] within a {{step}} as follows:
          httpRequest url: 'http://nexus.mycompany.com:8081/nexus/service/local/repositories/thirdparty/content/com/oracle/jre/8u131-windows/jre-8u131-windows-i586.tar.gz', responseHandle: 'NONE', outputFile: 'download.tar.gz'
          James Green made changes -
          Description Original: I've been using the fileDownloadOperation step recently which has been working well. Had need to download a file from our local Nexus installation and it failed without error.

          Switched the URL to download a file from the JBoss Nexus installation and it still failed.

          Checking the response headers Nexus does issue additional ones concerning XSS however I did not debug fully. It would seem sensible to record what the fault is, at the very least.

          Workaround: Use the httpRequest plugin ([https://jenkins.io/doc/pipeline/steps/http_request/)] within a {{step}} as follows:
          httpRequest url: 'http://nexus.mycompany.com:8081/nexus/service/local/repositories/thirdparty/content/com/oracle/jre/8u131-windows/jre-8u131-windows-i586.tar.gz', responseHandle: 'NONE', outputFile: 'download.tar.gz'
          New: I've been using the fileDownloadOperation step recently which has been working well. Had need to download a file from our local Nexus installation and it failed without error.

          Switched the URL to download a file from the JBoss Nexus installation and it still failed.

          Checking the response headers Nexus does issue additional ones concerning XSS however I did not debug fully. It would seem sensible to record what the fault is, at the very least.

          Workaround: Use the httpRequest plugin ([https://jenkins.io/doc/pipeline/steps/http_request/)] within a {{step}} as follows:
          {code:java}
          httpRequest url: 'http://nexus.mycompany.com:8081/nexus/service/local/repositories/thirdparty/content/com/oracle/jre/8u131-windows/jre-8u131-windows-i586.tar.gz', responseHandle: 'NONE', outputFile: 'download.tar.gz'{code}
          James Green made changes -
          Component/s New: file-operations-plugin [ 22428 ]
          Component/s Original: plugin-proposals [ 15491 ]

          Suresh Kumar added a comment -

          Hi jmkgreen
          According to the issue raised in Jenkins-Users list group, and fixed that issue & released too.
          https://groups.google.com/forum/#!topic/jenkinsci-users/FJMAI1eEE1A

          As I rarely go through the Jenkins Users list didn't reverted back immediately.
          The fix available in 1.6 version, verify and let me know.

          -Suresh

          Suresh Kumar added a comment - Hi jmkgreen According to the issue raised in Jenkins-Users list group, and fixed that issue & released too. https://groups.google.com/forum/#!topic/jenkinsci-users/FJMAI1eEE1A As I rarely go through the Jenkins Users list didn't reverted back immediately. The fix available in 1.6 version, verify and let me know. -Suresh
          Suresh Kumar made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Suresh Kumar made changes -
          Assignee New: Suresh Kumar [ pskumar448 ]

            pskumar448 Suresh Kumar
            jmkgreen James Green
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: