Author: alessio.soldano(a)jboss.com
Date: 2011-09-20 11:54:26 -0400 (Tue, 20 Sep 2011)
New Revision: 15014
Modified:
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointAddressDeploymentAspect.java
Log:
[JBWS-3288] Prevent double slash in endpoint addresses when using "/"
context-root
Modified:
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointAddressDeploymentAspect.java
===================================================================
---
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointAddressDeploymentAspect.java 2011-09-19
11:22:26 UTC (rev 15013)
+++
common/trunk/src/main/java/org/jboss/ws/common/deployment/EndpointAddressDeploymentAspect.java 2011-09-20
15:54:26 UTC (rev 15014)
@@ -99,7 +99,7 @@
urlPattern = urlPattern.substring(0, urlPattern.length() - 2);
protocol = confidential ? "https://" : "http://";
- String address = protocol + hostAndPort + contextRoot + urlPattern;
+ String address = protocol + hostAndPort + (contextRoot.equals("/")
&& urlPattern.startsWith("/") ? "" : contextRoot) +
urlPattern;
httpEp.setAddress(address);
//JBWS-2957: EJB3 binds the same endpoint class to multiple beans at multiple
JNDI locations;
//generally speaking we can't have multiple endpoints published at the
same address and we
Show replies by date