httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 10760] New: - empty ftp directory listings from cached ftp directories
Date Fri, 12 Jul 2002 20:46:32 GMT
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


Mime
View raw message