On Apr 17, 2008, at 10:48 AM, Jess Holle wrote:
Jim Jagielski wrote:
Can you try:

Index: modules/proxy/mod_proxy_ajp.c
===================================================================
--- modules/proxy/mod_proxy_ajp.c    (revision 648735)
+++ modules/proxy/mod_proxy_ajp.c    (working copy)
@@ -72,8 +72,13 @@
        search = r->args;

    /* process path */
-    path = ap_proxy_canonenc(r->pool, url, strlen(url), enc_path, 0,
-                             r->proxyreq);
+    if (apr_table_get(r->notes, "proxy-nocanon")) {
+        path = url;   /* this is the raw path */
+    }
+    else {
+        path = ap_proxy_canonenc(r->pool, url, strlen(url),
+                                 enc_path, 0, r->proxyreq);
+    }
    if (path == NULL)
        return HTTP_BAD_REQUEST;
I don't do our Apache builds any more (and don't have things set up to do so), but our engineer who does is slated to test the patch attached to the bug soon.

Is this the same as the patch attached to the bug report -- or a different one?


This section is the same as that in the bug report (make mod_proxy_ajp
aware of the nocanon EnvVar), but the attached patch also includes
a workaround for the doubling of any query strings. This 2nd part
needs to be addressed but the real fix may not be done by
this patch. If you have no query args, then either is fine.

Reply via email to