You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/07/12 22:46:32 UTC
DO NOT REPLY [Bug 10760] New: -
empty ftp directory listings from cached ftp directories
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10760>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10760
empty ftp directory listings from cached ftp directories
Summary: empty ftp directory listings from cached ftp directories
Product: Apache httpd-1.3
Version: 1.3.26
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Major
Priority: Other
Component: mod_proxy
AssignedTo: bugs@httpd.apache.org
ReportedBy: ast@domdv.de
mod_proxy uses its own routine named 'send_dir' in proxy_ftp.c to output
the contents in ftp directories. Unfortunately this routine doesn't update
the amount of bytes written so that subsequent requests for the same
directory will result in a directory listing with "Content-Length: 0".
The patch to fix this bug below applies on top of the patch given in bug
report 10747:
--- proxy_ftp.c.orig Fri Jul 12 18:19:04 2002
+++ proxy_ftp.c Fri Jul 12 22:31:31 2002
@@ -1358,7 +1359,7 @@
ap_proxy_send_fb(data, r, c, -1, 0, 0, conf->io_buffer_size);
}
else {
- send_dir(data, r, c, cwd);
+ c->written=send_dir(data, r, c, cwd);
}
/* ap_proxy_send_fb() closes the socket */
data = NULL;
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org