You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Peter Naber (JIRA)" <ji...@apache.org> on 2012/09/13 13:17:07 UTC

[jira] [Comment Edited] (NET-480) Wrong passivHost by using FTPHTTPClient with EPSV

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

Peter Naber edited comment on NET-480 at 9/13/12 10:16 PM:
-----------------------------------------------------------

Own testet SquidProxy Class with working EPSV Protocol.
A new class variable is add : host
This variable contain the original destination Address.
At _openDataConnection_ the variable __passivHost will set to the destination address.
By using PASV the variable is set to "this.getPassiveHost()", by using EPSV to this.host
                
      was (Author: triumvir):
    Own testet SquidProxy Class with working EPSV Protocol
                  
> Wrong passivHost by using FTPHTTPClient with EPSV
> -------------------------------------------------
>
>                 Key: NET-480
>                 URL: https://issues.apache.org/jira/browse/NET-480
>             Project: Commons Net
>          Issue Type: Bug
>          Components: FTP
>    Affects Versions: 3.1
>         Environment: All Systems with ftp Access over ftp
>            Reporter: Peter Naber
>         Attachments: FTPSquidProxyClient.java
>
>
> At the FTPHTTPClient Class in line 99 the Answer from the EPSV Command will parse to receive the Data port and the passiv Host.
> \_parsePassiveModeReply(\_replyLines.get(0))
> In this function the \_\_passivHost is set to the remoteAddress, but this address is determine by "this.\_socket\_.getInetAddress();" and the socket is the socket of the proxy Server and NOT of the ftp Server.

--
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