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/11/22 21:37:56 UTC

DO NOT REPLY [Bug 12902] - DocumentRoot not being appended to URL

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=12902>.
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=12902

DocumentRoot not being appended to URL





------- Additional Comments From slipszi@yunord.net  2002-11-22 20:37 -------
The problem lies function hook_uri2line, beginning on line 1285:

1. the module (I think) wants to make sure that the resulting filename starts
with a slash, but it uses the ap_os_is_path_absolute function. If the filename
does indeed start with a slash this call will succeed on Unix, but it will fail
on Windows because ap_os_is_path_absolute will expect a path starting with D:/
or //machine/share. Hence the "400 Bad Request" error.

2. next the module check if the first part ("the prefix") of the path exists.
This is done using the prefix_stat function which works only on Unixes (it
expects the path to start with a slash!)

I think the first part is unnecessary and that the second part should be based
on core.c (as stated in the comments).

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