httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Snow <>
Subject mod_proxy_ftp relative directory bug
Date Tue, 22 Aug 2006 11:26:34 GMT


I am running forward proxies using 2.2.0 and 2.2.2. Using diff I have 
determined there are no differences in the mod_proxy_ftp.c files related to 
the following.

When going to an ftp site:

mod_proxy_ftp determines a directory exists through the SIZE command and 
updates the "Directory of" HREF accordingly. The browser is unsure whether 
the dir2 is a file or directory so it's base_href location stays at:

The relative HREF directories and files returned in the directory listing of are subsequently relative to ftp:// and they break in the client browser. This occurs when 
a site provides a URL ending in a directory without a trailing slash to a 
user and the user clicks directly on it. Tested using late IE and Firefox.

In http a redirect would have been returned to the browser with a trailing 
slash once the directory is detected. Should the ftp proxy also return a 
redirect with a trailing slash at the point it has determined a directory 

e.g. -> 302

Jon Snow

View raw message