felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: A bug in Bundle.getResource(String)?
Date Mon, 17 Sep 2007 21:04:22 GMT
I am not convinced we want to support this. Is this standard class 
loader behavior?

i.e., would URLClassLoader.getResource() support that syntax?

-> richard

Stefano Lenzi wrote:
> Hi All,
>     
> I've found a odd behavior in the method Bundle.getResource(String), 
> the method is not able to resolve the resource if the reource path 
> contains: '.' or '..' directory.
>
> I have already patched the:
> org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getResource(String) 
>
> in order to accept the '..' and '.' path (see attchment).
>
> Can I commit the patch?
>
>
> Ciao,
> Stefano "Kismet" Lenzi
>
> P.S.: As you can see from my patch I do not consider the case when the 
> URL is encoded.
>
> P.P.S.: Should I report a issue on JIRA?
>
>

Mime
View raw message