[sword-devel] InstallMgr limitation

DM Smith dmsmith555 at yahoo.com
Fri Aug 19 15:16:18 MST 2005

We had a similar problem in JSword. The problem was that WinXP SP2's new 
default firewall settings did not allow us to use FTP to do a listing, 
but it allowed us to do a get.

Our solution was to switch to http and get the files as a whole zip or 
tar.gz from http://www.crosswire.org/ftpmirror/pub/sword. We use 
getContentLength to determine the size of the download.

While our immediate goal was to solve the firewall problem on XP, we got 
similar reports from the Mac world. Also, some companies lock down ftp 
so it cannot be used.

That said, the listing has some advantages:
1) It allows one to know the sizes of the files prior to downloading the 
2) It allows one to know the scope of the work (nt only, ot only, ot and 
nt, apocrypha)

As to a common name, it is frequent to find a file with the name ls-lR 
(often compressed as ls-lR.gz) on unix backed file systems that contains 
a recursive long listing of the directory.

It would be very easy to create a cron job to create the files.

Troy A. Griffitts wrote:

> Joachim,
>     I'm not sure exactly what you are saying, but let me repeat it and 
> see if I kindof understand:
> Someone is using an FTP proxy setup which doesn't allow them to list 
> files on the remote server?  And you'd like us to support that setup 
> by maintaining file list catalog files in each module directory.
> If this is the case.  I don't think I am willing to support such a 
> non-standard FTP setup that can't work with anything else.  How can 
> someone really use FTP efficiently with any other server without being 
> able to show file names?  I guess for grabbing a known file name, but 
> that isn't really a functional FTP proxy.  InstallMgr works over FTP. 
> If you want to use it, then you have to have working FTP access (via a 
> proxy or whatever).  The work to maintain module file lists inside an 
> extra file for every module (even though it can be automated) is more 
> work that I am willing to do to support such a fringe setup.  What do 
> you think?
>     -Troy.
> Joachim Ansorg wrote:
>> Hi guys,
>> I noticed a limitation in the InstallMgr component.
>> If the used FTPTransport instance uses a proxy then dir listing on 
>> the FTP server are not possible if a http proxy is used (which is 
>> most often used, IMHO).
>> Is it possible to have .mod_listing (or whatever name does fit) for 
>> each module in it's data dir which contains the recursive listing 
>> with the file sizes?
>> Joachim
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

More information about the sword-devel mailing list