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 2008/06/27 17:05:59 UTC

DO NOT REPLY [Bug 45297] mod_dir does not manage correctly the user (r-> user) in the response handler

https://issues.apache.org/bugzilla/show_bug.cgi?id=45297


Torsten F <to...@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |torsten.foertsch@gmx.net




--- Comment #1 from Torsten F <to...@gmx.net>  2008-06-27 08:05:58 PST ---
I have verified it without mod_perl with apache 2.2.9:

DirectoryIndex index.shtml
Options Includes Indexes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

<Location /index.shtml>
    Require valid-user
    AuthType basic
    AuthName "Something very secret"
    AuthUserFile /path/to/htpasswd
</Location>

My index.shtml reads:

<html>
<body>
<h1>Hello <!--#echo var="REMOTE_USER" --></h1>
<pre>
<!--#printenv -->
</pre>
</body>
</html>

If /index.shtml is requested all works normal. If only / is requested I get 
the password prompt. Then it shows the page but the REMOTE_USER variable is 
unset. This variable is r->user.


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

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