Author: antelder
Date: Sun Jun 12 07:26:14 2011
New Revision: 1134878

URL: http://svn.apache.org/viewvc?rev=1134878&view=rev
Log:
Fix so that registering servlets with a * suffix in the path works

Modified:
    
tuscany/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java?rev=1134878&r1=1134877&r2=1134878&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/host-http-osgi/src/main/java/org/apache/tuscany/sca/http/osgi/OSGiServletHost.java
 Sun Jun 12 07:26:14 2011
@@ -116,6 +116,11 @@ public class OSGiServletHost implements 
             suri = contextPath + suri;
         }
 
+        // The OSGi HTTP service doesn't use an aster for sub-paths so strip 
it off
+        if (suri.endsWith("/*")) {
+            suri = suri.substring(0, suri.length()-2);
+        }
+
         // In a webapp just use the given path and ignore the host and port
         // as they are fixed by the Web container
         try {


Reply via email to