perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: mystery subrequest being generated after fixup
Date Mon, 22 Oct 2007 07:17:28 GMT
On Sunday 21 October 2007, John ORourke wrote:
> 1. do Fixup for /image/12345/something.gif (return OK or DECLINE -
> doesn't matter which)
> 2. (other modules fixup handlers run because fixup is RUN_ALL)
> 3. do Trans for subrequest /something.gif
> 4. do MapToStorage, Access, Authen, Authz, Type, and Fixup for
> /something.gif (not Response!)
> 5. do Response for /image/12345/something.gif

looks like the result of a lookup_uri("/something.gif"). I would suspect 
mod_cgi calculating PATH_TRANSLATED, see (Apache src server/util_script.c):

AP_DECLARE(void) ap_add_cgi_vars(request_rec *r)
{
[...]
    if (r->path_info && r->path_info[0]) {
        /*
         * To get PATH_TRANSLATED, treat PATH_INFO as a URI path.
         * Need to re-escape it for this, since the entire URI was
         * un-escaped before we determined where the PATH_INFO began.
         */
        request_rec *pa_req;

        pa_req = ap_sub_req_lookup_uri(ap_escape_uri(r->pool, r->path_info), 
r,
                                       NULL);
[...]
}

To avoid that set $r->path_info to an empty string.

Torsten

Mime
View raw message