Author: thomas.diesler(a)jboss.com
Date: 2007-10-10 06:18:46 -0400 (Wed, 10 Oct 2007)
New Revision: 4720
Modified:
framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/BackwardCompatibleURLPatternDeploymentAspect.java
Log:
[JBWS-1808] BackwardCompatibleURLPatternDeploymentAspect is mangling valid URLpatterns
Modified:
framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/BackwardCompatibleURLPatternDeploymentAspect.java
===================================================================
---
framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/BackwardCompatibleURLPatternDeploymentAspect.java 2007-10-10
10:14:16 UTC (rev 4719)
+++
framework/trunk/src/main/java/org/jboss/wsf/framework/deployment/BackwardCompatibleURLPatternDeploymentAspect.java 2007-10-10
10:18:46 UTC (rev 4720)
@@ -56,7 +56,7 @@
urlPattern = "/" + urlPattern;
StringTokenizer st = new StringTokenizer(urlPattern, "/");
- if (st.countTokens() > 1 && urlPattern.startsWith(contextRoot))
+ if (st.countTokens() > 1 && urlPattern.startsWith(contextRoot +
"/"))
{
urlPattern = urlPattern.substring(contextRoot.length());
}