httpd-dev mailing list archives

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

Hi,

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:

ftp://ftp.example.com/dir1/dir2

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:

ftp://ftp.example.com/dir1/

The relative HREF directories and files returned in the directory listing of 
ftp://ftp.example.com/dir1/dir2 are subsequently relative to ftp://
ftp.example.com/dir1/ 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 
exists?

e.g. ftp://ftp.example.com/dir1/dir2 -> 302 ftp://ftp.example.com/dir1/dir2/

Regards,
Jon Snow


Mime
View raw message