From: markt Date: Wed, 30 Mar 2011 23:09:10 +0000 (+0000) Subject: Don't append the jvmRoute to a session ID if the jvmRoute is a zero length string. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b08dc79846afd5c26210e6cf249f683f4e243713;p=tomcat7.0 Don't append the jvmRoute to a session ID if the jvmRoute is a zero length string. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1087128 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/util/SessionIdGenerator.java b/java/org/apache/catalina/util/SessionIdGenerator.java index 49ce6b76f..0e6b1150b 100644 --- a/java/org/apache/catalina/util/SessionIdGenerator.java +++ b/java/org/apache/catalina/util/SessionIdGenerator.java @@ -168,7 +168,7 @@ public class SessionIdGenerator { } } - if (jvmRoute != null) { + if (jvmRoute != null && jvmRoute.length() > 0) { buffer.append('.').append(jvmRoute); } diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml index a74e36389..9af035c4d 100644 --- a/webapps/docs/changelog.xml +++ b/webapps/docs/changelog.xml @@ -128,6 +128,10 @@ name ending in .jar to be treated as an expanded JAR file by the default JarScanner. Based on patch by Rodion Zhitomirsky. (markt) + + Don't append the jvmRoute to a session ID if the jvmRoute is a zero + length string. (markt) +