commit | 2cf5415169fcbdbe82942c409bd5953a0641ffea | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Sat Jan 08 00:27:03 2011 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Sat Jan 08 00:27:03 2011 +0000 |
tree | df79f6a3897727afdc9d8565ed618d774098fc02 | |
parent | 69d8ddf3072c25d00f4c163de144e36a5156824e [diff] |
FELIX-2691 Apply patch by Misha Koshelev (thanks) fixing the name validity check for Resource registration git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1056570 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceImpl.java b/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceImpl.java index c0e684c..fa7954d 100644 --- a/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceImpl.java +++ b/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceImpl.java
@@ -144,7 +144,7 @@ return false; } - if (name.endsWith( "/" )) { + if (!name.equals("/") && name.endsWith( "/" )) { return false; }