Bug 10760 - empty ftp directory listings from cached ftp directories
Summary: empty ftp directory listings from cached ftp directories
Status: RESOLVED WONTFIX
Alias: None
Product: Apache httpd-1.3
Classification: Unclassified
Component: mod_proxy (show other bugs)
Version: 1.3.26
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2002-07-12 20:46 UTC by ast
Modified: 2011-03-21 10:52 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ast 2002-07-12 20:46:31 UTC
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;
Comment 1 Malte S. Stretz 2011-03-21 10:52:17 UTC
Apache HTTP Server 1.3.x is not supported anymore and no bugs will be fixed in the old codebase (cf. <http://mail-archives.apache.org/mod_mbox/httpd-announce/201002.mbox/%3C20100203000334.GA19021@infiltrator.stdlib.net%3E>). Since this bug seems to affect only 1.3.x, I'm closing it as WONTFIX.

If this bug still affects you in a recent version (version 2.2.x or the upcoming version 2.4), please open a new bug.

Thank you for reporting the bug.