-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FTP connections through URLConnection fail from within private network / firewall #14
Comments
Get stack in this: |
We decided to push this to "Low Priority" status |
I changed all ftp:// to http:// it seems work on my linux version. Please check it on Mac System |
http: downloads are working on mac. Still, the "bug" is present if someone decides to point their machine at an ftp:: resource for download in the application.properties file. I will leave this issue open with low priority, but unassign it for now. We can get back to this in the future if we have time. |
hello,I also encountered how to solve the problem |
Code in PdbScriptsPipelineRunCommand.java may attempt to access files through a URLConnection object from the standard java library. If the url specifies the "ftp:" protocol, and if the program is running inside a private network or behind a firewall, the data connection for the ftp transfer may fail.
Luckily, all URLs in use currently come from servers which offer dual ftp/http protocol services, so we can avoid the exceptions by specifying in the URL to use http protocol. But it would be better if the code used an FTP client which had proper support for passive mode file transfers such as org.apache.commons.net.ftp.FTPClient.
Example of the error as observed:
[SHELL] Weekly Update: Create deleted list
java.io.IOException: sun.net.ftp.FtpProtocolException: PORT 172,18,233,39,194,100:500 Illegal command, EPSV ALL in effect.
(local machine on wireless network was assigned IP address 172.18.233.39)
The text was updated successfully, but these errors were encountered: