You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Rob Walker (JIRA)" <ji...@apache.org> on 2006/04/19 12:32:17 UTC
[jira] Assigned: (FELIX-54) Problem when registering a servlet with
"/" context
[ 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