[vfs] New Properties for FtpFileSystemConfigBuilder

2015-12-07 Thread Roger Membreno
Hello Apache Community, how are you doing?

We use Commons VFS in our FTP connection projects, and for a recent project
we only able to connect to our FTP site when using Passive mode.  If we
used Active mode we could login to the FTP site but all files in the
directory did not exist and could not be accessed.

Since our server is behind a firewall with NAT translation we determined
that the data connection could not be established even if we opened up some
ports on the firewall.  We were able to connect to the FTP site using a
stanadalone FTPClient by setting the following properties to match our NAT
security settings:
setReportActiveExternalIPAddress()
client.setActivePortRange()

With these properties set the PORT command issued by our client to the FTP
site will create a valid data connection.  What I'd like to do is submit a
change via GitHub that does the following:
1. Add "reportActiveExternalIPAddress" and "activePortRange" properties to
the class org.apache.commons.vfs2.provider.ftp.FtpFileSystemConfigBuilder
2. Ehance createConnection in
org.apache.commons.vfs2.provider.ftp.FtpClientFactory to read these new
FtpFileSystemConfigBuilder properties from the config instance and set them
on the FTPClient.

Let me know if you have any questions.  If you think this is a good change
I'll make a new issue in JIRA for this enhancement.  I also think that
these changes could help resolve VFS-201 (
https://issues.apache.org/jira/browse/VFS-201)

-- 
-Thanks,
Roger


*Roger Membreno *| Senior Software Engineer
Celigo, Inc

O 650.579.0210 x101
F 650.240.0143
E roger.membr...@celigo.com
W www.celigo.comFollow Us <http://celigo.com/blog/>
<http://www.linkedin.com/company/celigo-inc>
<https://plus.google.com/101644332205934540197/posts>
<https://twitter.com/celigoinc>  <http://www.youtube.com/user/CeligoInc>


Re: [vfs] New Properties for FtpFileSystemConfigBuilder

2015-12-07 Thread Roger Membreno
Hi Bernd,

For now I was using a max and min property so I could pass int values
directly from my adaptor layer to VFS.  What do you recommend?  A string
range's only issue that I can see is parsing, but something simple could
work.

On Mon, Dec 7, 2015 at 1:54 PM, Bernd Eckenfels <e...@zusammenkunft.net>
wrote:

> Hello Roger,
>
> sounds useful to me. Do you plan to parse a string range ("1-100") or
> define a min and max property?
>
> Gruss
> Bernd
>
>  Am Mon, 7 Dec 2015 13:26:35 -0800
> schrieb Roger Membreno <roger.membr...@celigo.com>:
>
> > Hello Apache Community, how are you doing?
> >
> > We use Commons VFS in our FTP connection projects, and for a recent
> > project we only able to connect to our FTP site when using Passive
> > mode.  If we used Active mode we could login to the FTP site but all
> > files in the directory did not exist and could not be accessed.
> >
> > Since our server is behind a firewall with NAT translation we
> > determined that the data connection could not be established even if
> > we opened up some ports on the firewall.  We were able to connect to
> > the FTP site using a stanadalone FTPClient by setting the following
> > properties to match our NAT security settings:
> > setReportActiveExternalIPAddress()
> > client.setActivePortRange()
> >
> > With these properties set the PORT command issued by our client to
> > the FTP site will create a valid data connection.  What I'd like to
> > do is submit a change via GitHub that does the following:
> > 1. Add "reportActiveExternalIPAddress" and "activePortRange"
> > properties to the class
> > org.apache.commons.vfs2.provider.ftp.FtpFileSystemConfigBuilder 2.
> > Ehance createConnection in
> > org.apache.commons.vfs2.provider.ftp.FtpClientFactory to read these
> > new FtpFileSystemConfigBuilder properties from the config instance
> > and set them on the FTPClient.
> >
> > Let me know if you have any questions.  If you think this is a good
> > change I'll make a new issue in JIRA for this enhancement.  I also
> > think that these changes could help resolve VFS-201 (
> > https://issues.apache.org/jira/browse/VFS-201)
> >
>
>


-- 
-Thanks,
Roger


*Roger Membreno *| Senior Software Engineer
Celigo, Inc

O 650.579.0210 x101
F 650.240.0143
E roger.membr...@celigo.com
W www.celigo.comFollow Us <http://celigo.com/blog/>
<http://www.linkedin.com/company/celigo-inc>
<https://plus.google.com/101644332205934540197/posts>
<https://twitter.com/celigoinc>  <http://www.youtube.com/user/CeligoInc>