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: [email protected] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
