You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2016/03/10 19:01:29 UTC

tomee git commit: TOMEE-1730 /.../* should map /.../.* as regex in openejb embedded http layer

Repository: tomee
Updated Branches:
  refs/heads/master 1cbdedba7 -> e8eacb5ef


TOMEE-1730 /.../* should map /.../.* as regex in openejb embedded http layer


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/e8eacb5e
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/e8eacb5e
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/e8eacb5e

Branch: refs/heads/master
Commit: e8eacb5ef5818217b6744b985ae3b4e4fa696710
Parents: 1cbdedb
Author: Romain manni-Bucau <rm...@gmail.com>
Authored: Thu Mar 10 19:01:01 2016 +0100
Committer: Romain manni-Bucau <rm...@gmail.com>
Committed: Thu Mar 10 19:01:01 2016 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/openejb/server/httpd/util/HttpUtil.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/e8eacb5e/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/util/HttpUtil.java
----------------------------------------------------------------------
diff --git a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/util/HttpUtil.java b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/util/HttpUtil.java
index 65b8576..9bc31b0 100644
--- a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/util/HttpUtil.java
+++ b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/util/HttpUtil.java
@@ -233,7 +233,7 @@ public final class HttpUtil {
         path += mapping.startsWith("*.") ? WILDCARD + "\\" + mapping.substring(1) : mapping;
 
         if (path.endsWith("*")) {
-            path = path.substring(0, path.length()) + WILDCARD;
+            path = path.substring(0, path.length() - 1) + WILDCARD;
         }
         return path;
     }