]> granicus.if.org Git - apache/commitdiff
* Fix PR36906 by not lower caseing the whole worker name. Only lower case the
authorRuediger Pluem <rpluem@apache.org>
Tue, 25 Oct 2005 19:54:11 +0000 (19:54 +0000)
committerRuediger Pluem <rpluem@apache.org>
Tue, 25 Oct 2005 19:54:11 +0000 (19:54 +0000)
  schema when storing the worker url. Thus preventing case sensitive URI's in
  BalancerMembers to get broken.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@328463 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/proxy/mod_proxy.c
modules/proxy/proxy_util.c

diff --git a/CHANGES b/CHANGES
index e5d9600916711cd2139d84dd195416ed5db5c2fc..9851c89b913a1b146f60d64524dc8e57ad1141ac 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -40,6 +40,9 @@ Changes with Apache 2.3.0
 
 Changes with Apache 2.1.9
 
+  *) mod_proxy: Do not lowercase the entire worker name of a BalancerMember
+     since this breaks case sensitive URI's. PR36906.  [Ruediger Pluem]
+
   *) core: AddOutputFilterByType is ignored for proxied requests. PR31226.
      [Joe Orton, Ruediger Pluem]
 
index 568c9be777e2b8d8a8890a3fed90cef3c9b535e2..1ee15ba13ea077f7cd070d770ef3f23afaa98c08 100644 (file)
@@ -1435,7 +1435,6 @@ static const char *add_member(cmd_parms *cmd, void *dummy, const char *arg)
         return "BalancerMember must define remote proxy server";
     
     ap_str_tolower(path);   /* lowercase scheme://hostname */
-    ap_str_tolower(name);   /* lowercase scheme://hostname */
 
     /* Try to find existing worker */
     worker = ap_proxy_get_worker(cmd->temp_pool, conf, name);
index 9470b59fdc85c70672c68f4eefb977843476293c..b78d019708b38af06be1b9e11c9cea94b7970f4f 100644 (file)
@@ -1290,6 +1290,7 @@ PROXY_DECLARE(const char *) ap_proxy_add_worker(proxy_worker **worker,
     }
 
     ap_str_tolower(uri.hostname);
+    ap_str_tolower(uri.scheme);
     *worker = apr_array_push(conf->workers);
     memset(*worker, 0, sizeof(proxy_worker));
     (*worker)->name = apr_uri_unparse(p, &uri, APR_URI_UNP_REVEALPASSWORD);