commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Bojikian Rissi (JIRA)" <>
Subject [jira] [Commented] (NET-649) 227 Entering Passive Mode
Date Mon, 08 Jan 2018 15:55:00 GMT


Filipe Bojikian Rissi commented on NET-649:

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

That's what I did in my production code.
Just thought taking in the commons-net could help others.

> 227 Entering Passive Mode
> -------------------------
>                 Key: NET-649
>                 URL:
>             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

View raw message