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 39944] New: - Wrong/Bad filename in ErrorLog when trying to access files in non existing directories
Date Sun, 02 Jul 2006 13:04:58 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39944>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39944

           Summary: Wrong/Bad filename in ErrorLog when trying to access
                    files in non existing directories
           Product: Apache httpd-2
           Version: 2.2.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: user23ksws@zerbrechlich.de


When you are trying to access a non-existent file in a non-existent directory
apache will notice this in the specified ErrorLog in a very bad way:

It only shows 'File does not exist: <DOCROOT>/<FIRST-DIR-WHICH-DOES-NOT-EXIST>'

In apache 1.3.X you see the full path of the non-existent file!

In the code (server/core.c, Line 3592) I found:
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
                          "File does not exist: %s (for URI %s) rest: %s",
r->filename)

while in Line 3610 there is:
ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
                          "File does not exist: %s",
                          apr_pstrcat(r->pool, r->filename, r->path_info, NULL));
The first code doesn't show the whole filename while the second does!


Whow to reproduce:

./configure --prefix=/tmp/httpd
make
make install
/tmp/httpd/bin/httpd
wget http://localhost/this/dirs/do/not/exists.html
tail -1 /tmp/httpd/logs/error_log

gives:

[Sun Jul 02 14:58:22 2006] [error] [client 127.0.0.1] File does not exist:
/tmp/httpd/htdocs/this

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message