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 8880] - AcceptPathInfo fails on DirectoryIndex files
Date Tue, 14 May 2002 23:02:47 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=8880>.
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=8880

AcceptPathInfo fails on DirectoryIndex files





------- Additional Comments From jwoolley@apache.org  2002-05-14 23:02 -------
To what extent does this violate the documentation?  The existing behavior seems to match
   
what is documented as far as I can tell.  In particular,   
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo states:   
  
"This directive controls whether requests that contain trailing pathname information that
 
follows an actual filename (or non-existent file in an existing directory) will be  
accepted or rejected. The trailing pathname information can be made available to scripts 

in the PATH_INFO environment variable.  
  
For example, assume the location /test/ points to a directory that contains only the   
single file here.html. Then requests for /test/here.html/more and /test/nothere.html/more
  
both collect /more as PATH_INFO. "  
  
This follows what I'm seeing in debugging, which is that a request for  
  
/existingdirectory/foo/bar (where /foo/bar is supposed to be the PATH_INFO) actually  
looks for /existingdirectory/foo with a PATH_INFO of /bar.  
  
Note that this also matches the behavior in Apache 1.3 (which seems to always allow 
PATH_INFO): 
 
root@deepthought:/root/apache/httpd-test/perl-framework$ telnet localhost 8529 
Trying 127.0.0.1... 
Connected to localhost. 
Escape character is '^]'. 
GET /apache/acceptpathinfo/index.shtml/foo/bar HTTP/1.0 
Host: localhost 
 
HTTP/1.1 200 OK 
Date: Tue, 14 May 2002 22:59:05 GMT 
Server: Apache/1.3.25-dev (Unix) 
Connection: close 
Content-Type: text/html 
 
_/foo/bar_ 
Connection closed by foreign host. 
root@deepthought:/root/apache/httpd-test/perl-framework$ telnet localhost 8529 
Trying 127.0.0.1... 
Connected to localhost. 
Escape character is '^]'. 
GET /apache/acceptpathinfo/foo/bar HTTP/1.0 
Host: localhost 
 
HTTP/1.1 404 Not Found 
Date: Tue, 14 May 2002 22:59:37 GMT 
Server: Apache/1.3.25-dev (Unix) 
Connection: close 
Content-Type: text/html; charset=iso-8859-1 
 
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> 
<HTML><HEAD> 
<TITLE>404 Not Found</TITLE> 
</HEAD><BODY> 
<H1>Not Found</H1> 
The requested URL /apache/acceptpathinfo/foo/bar was not found on this server.<P> 
</BODY></HTML> 
Connection closed by foreign host.

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


Mime
View raw message