]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Revert the code causing lost path_info/query_args.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 18 Dec 2001 15:09:47 +0000 (15:09 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 18 Dec 2001 15:09:47 +0000 (15:09 +0000)
  The potentially correct solution is to test the URI with recombined
  path_info and args, but I'd rather see this reverted for 1.3 and
  corrected in 2.0 with appropriate optimizations and user testing.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@92514 13f79535-47bb-0310-9956-ffa450edef68

src/modules/standard/mod_negotiation.c

index f32be3b342a982fb7634875ad81e6f34cb8864aa..3fad90dd6f6a05c5fb2a2327acd9505d611a6577 100644 (file)
@@ -2710,8 +2710,19 @@ static int handle_multi(request_rec *r)
      */
     ap_pool_join(r->pool, sub_req->pool);
     r->mtime = 0; /* reset etag info for subrequest */
-    r->uri = sub_req->uri;
-    r->args = sub_req->args;
+    /* XXX: uri/args/path_info are all retained from the original request.
+     *      It is entirely possible, but not common, for a handler to choke
+     *      on some expectation based on the uri (or more commonly, args) that 
+     *      the file subrequest was prepared to handle, but a lookup_uri would
+     *      have considered an error.  This leaves an improbable possibility 
+     *      that the user might fail a mod_dir request later, and the server 
+     *      may respond with a mod_autoindex response.  However, this has been
+     *      the behavior throughout much of the Apache 1.3 era with minimal
+     *      side effects, mostly caused by obscure configuration bugs.
+     *  r->uri = sub_req->uri;
+     *  r->args = sub_req->args;
+     *  r->path_info = sub_req->path_info;  
+     */
     r->filename = sub_req->filename;
     r->handler = sub_req->handler;
     r->content_type = sub_req->content_type;