You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Roy T. Fielding" <fi...@kiwi.ICS.UCI.EDU> on 1997/05/10 06:29:10 UTC

Re: [PATCH] internal redirect must inherit the_request

>I thought of it because of an old bug report, which I can't seem
>to find in the bugdb.  It would cause a segv on any error that
>logged the_request.
>
>....Roy

Found the bug report:

---------- Forwarded message ----------
Date: Fri Mar  7 16:43:12 1997
From: frank@digitalcomet.com
To: apache-bugs%apache.org@organic.com
Subject: [BUG]: "index request causes request_rec *r->the_request to be nil" on 
Solaris 2.x

Submitter: frank@digitalcomet.com
Operating system: Solaris 2.x, version: 
Version of Apache Used: 1.2b7
Extra Modules used: none
URL exhibiting problem: 

Symptoms:
--
In our Handler module, r->the_request is nil if the
browser request is of the form
http://www.foo.com/, i.e. if the default index file
is to be returned.

The same thing occurs for any sub-folder, e.g.
http://www.foo.com/bar/.

This does *not* happen when you request the index.html
file directly, i.e. http://www.foo.com/index.html, or
http://www.foo.com/foo/index.html.

The value of r->the_request should never be nil,
and in the above cases should be "GET / HTTP/1.0"
and "GET /foo/ HTTP/1.0" respetively.