[jboss-cvs] JBossAS SVN: r60083 - branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Jan 28 00:25:11 EST 2007


Author: bstansberry at jboss.com
Date: 2007-01-28 00:25:11 -0500 (Sun, 28 Jan 2007)
New Revision: 60083

Modified:
   branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/JBossCacheService.java
Log:
[JBAS-3941] Handle '/' in a context path

Modified: branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/JBossCacheService.java
===================================================================
--- branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/JBossCacheService.java	2007-01-28 05:24:12 UTC (rev 60082)
+++ branches/Branch_4_0/tomcat/src/main/org/jboss/web/tomcat/tc5/session/JBossCacheService.java	2007-01-28 05:25:11 UTC (rev 60083)
@@ -143,6 +143,10 @@
       } else {
          webAppPath_ = path;
       }
+      // JBAS-3941 -- context path can be multi-level, but we don't
+      // want that turning into a multilevel Fqn, so escape it
+      // Use '?' which is illegal in a context path
+      webAppPath_ = webAppPath_.replace('/', '?');
       log_.debug("Old and new web app path are: " +path + ", " +webAppPath_);
       
       String host = webapp.getParent().getName();




More information about the jboss-cvs-commits mailing list