commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomas Mysik (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NET-422) FTP using HTTP proxy not working
Date Tue, 20 Nov 2012 16:38:58 GMT

    [ https://issues.apache.org/jira/browse/NET-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501288#comment-13501288
] 

Tomas Mysik commented on NET-422:
---------------------------------

Could anyone please explain me the following error which happens to us [1]? It happens in
NetBeans if one sets proxy for all protocols; if one sets only HTTP proxy, everything works.
Feel free to update the NetBeans issue as well, if you want to. Thanks a lot in advance for
any comment.

INFO [org.netbeans.modules.php.project.connections.ftp.FtpClient]: Exception while connecting
java.net.SocketException: Malformed reply from SOCKS server
	at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:128)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
	at java.net.Socket.connect(Socket.java:579)
	at java.net.Socket.connect(Socket.java:528)
	at java.net.Socket.<init>(Socket.java:425)
	at java.net.Socket.<init>(Socket.java:208)
	at org.apache.commons.net.ftp.FTPHTTPClient.connect(FTPHTTPClient.java:122)


[1] http://netbeans.org/bugzilla/show_bug.cgi?id=222481

                
> FTP using HTTP proxy not working
> --------------------------------
>
>                 Key: NET-422
>                 URL: https://issues.apache.org/jira/browse/NET-422
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 3.0.1
>         Environment: java version "1.6.0_26"
>  Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
>  Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> Linux cattie 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64
x86_64 GNU/Linux
>            Reporter: Tomas Mysik
>             Fix For: 3.1
>
>         Attachments: FtpHttpClient.patch, http_proxy_magnus.patch
>
>
> I know that FTPHTTPClient is experimental, but - I have discovered 2 bugs in it:
> - response from proxy is taken only if username and password are set
> - username and response are not correctly provided to Base64.encode() method
> I will attach a patch with proposed fix, feel free to apply it if you think it's correct.
> One more note: I'm not expert in this area so sorry if this question is nonsense but
- shouldn't it be possible to connect to the encrypted FTP over HTTP proxy as well? Or am
I completely wrong and this can't be ever possible.
> Thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message