www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gilmartin <andrewgilmar...@pobox.com>
Subject mod_autoindex/8745: DirectoryIndex using absolute CGI does not get PATH_INFO or PATH_TRANSLATED
Date Mon, 12 Nov 2001 19:19:48 GMT

>Number:         8745
>Category:       mod_autoindex
>Synopsis:       DirectoryIndex using absolute CGI does not get PATH_INFO or PATH_TRANSLATED
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Nov 12 11:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     andrewgilmartin@pobox.com
>Release:        1.3.20 (Unix)
>Organization:
apache
>Environment:
Linux cx21715-a.sking1.ri.home.com 2.2.19-4.1mdk
>Description:
When using DirectoryIndex with a CGI script at an absolute URI the script is called without
PATH_INFO and PATH_TRANSLATED information. Without this it is impossible for the script to
present a directory idex. (Note that no arguments with path informaton are passed to the script.
Nor is the working directory set to the path.)
>How-To-Repeat:
Configure DirectoryIndex for a given location. Eg,

<Location />
Options Indexes
DirectoryIndex /cgi-bin/index.pl
</Location>

Created index.pl with the code

#!/usr/bin/perl
use Data::Dumper;
print "content-type: text/html\n\n<pre>", Dumper( \@ARGV, \%ENV ), "</pre>";

Now use the URL

http://localhost/

and you will see that the environment variable dump does not include the PATH_INFO or PATH_TRANSLATED
variables.
>Fix:
No. I am happy to look into fixing it if this would help. I assume the problem is in mod_autoindex,
but I do not know enough about the Apache code base to debug this further without quite some
effort.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message