[ 
https://issues.apache.org/jira/browse/FELIX-4451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler resolved FELIX-4451.
-------------------------------------

    Resolution: Fixed

Fixed in trunk, I also had to fix the test case which was working on this wrong 
assumption
Reference: Table 102.1 in the OSGi Compendium Spec (chapter 102.4)

> HttpContext#getResource is called with a relative path
> ------------------------------------------------------
>
>                 Key: FELIX-4451
>                 URL: https://issues.apache.org/jira/browse/FELIX-4451
>             Project: Felix
>          Issue Type: Bug
>          Components: HTTP Service
>    Affects Versions: http-2.3.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: http-2.3.0
>
>
> When a resource is registered through the HttpService with an HttpContext, 
> the getResource() method is called with a relative path, stripping off the 
> leading slash, e.g.
> httpService.registerResources("/foo", "/foo", myContext)
> If /foo/a is requested myContext.getResource("foo/a") is called.
> The leading slash should not be removed



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to