]> granicus.if.org Git - apache/commitdiff
PR53218
authorJim Jagielski <jim@apache.org>
Fri, 29 Aug 2014 19:17:45 +0000 (19:17 +0000)
committerJim Jagielski <jim@apache.org>
Fri, 29 Aug 2014 19:17:45 +0000 (19:17 +0000)
Allow for longer worker names and make truncation a non-fatal
error...

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

CHANGES
docs/log-message-tags/next-number
modules/proxy/mod_proxy.h
modules/proxy/proxy_util.c

diff --git a/CHANGES b/CHANGES
index 68e605dd18f6d6753b355304c57e7fc5d4caa5c9..cbdf8ef556f46d9ae280223265317d530cca8037 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
-  
+
+  *) mod_proxy: Now allow for 191 character worker names, with non-fatal
+     errors if name is truncated. PR53218. [Jim Jagielski]
+
   *) mod_ssl: Add optional function "ssl_get_tls_cb" to allow support
      for channel bindings.  [Simo Sorce <simo redhat.com>]
 
index 0b17f236568da38536a8831adeeee3b120e5ed8c..8834186ecfc54bab0b0b6b5b28c729b4583bccb6 100644 (file)
@@ -1 +1 @@
-2808
+2809
index 2f4e5ef6447ec1a640cc98b962949f13021783d6..9bf61f890c554c56bcdfa195eb7f4e6118a14170 100644 (file)
@@ -317,7 +317,7 @@ PROXY_WORKER_DISABLED | PROXY_WORKER_STOPPED | PROXY_WORKER_IN_ERROR )
 #define PROXY_WORKER_MAX_SCHEME_SIZE     16
 #define PROXY_WORKER_MAX_ROUTE_SIZE      96
 #define PROXY_BALANCER_MAX_ROUTE_SIZE    64
-#define PROXY_WORKER_MAX_NAME_SIZE       96
+#define PROXY_WORKER_MAX_NAME_SIZE      192
 #define PROXY_BALANCER_MAX_NAME_SIZE     64
 #define PROXY_WORKER_MAX_HOSTNAME_SIZE   96
 #define PROXY_BALANCER_MAX_HOSTNAME_SIZE 64
index 726e56ad21fb4de165bae29ee90f9d5690922bcb..3f1746a2c854a3e8396fd4086978ba1e2174c284 100644 (file)
@@ -1733,7 +1733,8 @@ PROXY_DECLARE(char *) ap_proxy_define_worker(apr_pool_t *p,
 
     ptr = apr_uri_unparse(p, &uri, APR_URI_UNP_REVEALPASSWORD);
     if (PROXY_STRNCPY(wshared->name, ptr) != APR_SUCCESS) {
-        return apr_psprintf(p, "worker name (%s) too long", ptr);
+        ap_log_error(APLOG_MARK, APLOG_ALERT, 0, ap_server_conf, APLOGNO(2808)
+        "Alert! worker name (%s) too long; truncated to: %s", ptr, wshared->name);
     }
     if (PROXY_STRNCPY(wshared->scheme, uri.scheme) != APR_SUCCESS) {
         return apr_psprintf(p, "worker scheme (%s) too long", uri.scheme);