[ http://issues.apache.org/jira/browse/FELIX-54?page=all ]
Rob Walker reassigned FELIX-54:
-------------------------------
Assign To: Rob Walker
> Problem when registering a servlet with "/" context
> ---------------------------------------------------
>
> Key: FELIX-54
> URL: http://issues.apache.org/jira/browse/FELIX-54
> Project: Felix
> Type: Bug
> Components: HTTP Service
> Reporter: Rob Walker
> Assignee: Rob Walker
>
> Bug reported by Mikhail Kotelnikov with proposed solution:
> I found a small bug in your code: when I tried to register a servlet with "/"
> context it does not work... The reason is that the method
> org.ungoverned.osgi.bundle.http.HttpServiceImpl#aliasWildcard(String)
> directly adds a jetty-search mask to the given alias - like this: return
> alias+"/*"; And with alias "/" it gives an incorrect mask - "//*".
> The modified code is:
> private String aliasWildcard(String alias)
> {
> // add wilcard filter at the end of the alias to allow servlet to
> // get requests which include sub-paths
> return "/".equals(alias) ? "/*" : alias + "/*";
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira