Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
http-2.0.4
-
None
-
Not relevant
Description
Filing bug per:
http://www.mail-archive.com/dev@felix.apache.org/msg19853.html
The R4.2 enterprise spec from
http://www.osgi.org/Download/File?url=/download/r4v42/r4.enterprise.pdf
on page 48 clearly states:
The name parameter must also not end with slash ('/') with the
exception that a name of the form "/" is used to denote the root of
the bundle.
The relevant code, in trunk, is, from
http://svn.apache.org/repos/asf/felix/trunk/http/base/src/main/java/org/apache/felix/http/base/internal/service/HttpServiceImpl.java
public void registerResources(String alias, String name, HttpContext context)
throws NamespaceException
{
if (!isNameValid(name))
...
and
private boolean isNameValid(String name)
{
if (name == null)
if (name.endsWith( "/" )) { return false; }
return true;
}