commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NET-649) 227 Entering Passive Mode
Date Mon, 08 Jan 2018 15:48:00 GMT

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

Sebb commented on NET-649:
--------------------------

It's just occurred to me that there's no need to patch the code.

You can just subclass FTPClient, and override the _parsePassiveModeReply method.
If the parameter matches 0,0,0,0,m,n then replace the IP address as required.
Then call the original method.


> 227 Entering Passive Mode
> -------------------------
>
>                 Key: NET-649
>                 URL: https://issues.apache.org/jira/browse/NET-649
>             Project: Commons Net
>          Issue Type: New Feature
>          Components: FTP
>    Affects Versions: 3.6
>         Environment: Fedora, Java 8
>            Reporter: Filipe Bojikian Rissi
>             Fix For: 3.7
>
>
> In a situation where I passed, the FTP server is restoring 227 Entering Passive Mode
(0,0,0,0,156,126), so it was obvious to me that the problem is on the server side and not
on the API, but using the File Zila client and analyze the log precebi that the same problem
was also happening, so he changed the route to use the IP of the server that returned this
information and thus manages to make the route correctly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message