felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Piwoni (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-369) Bundle.getResource(String) do not handle path with '.' or '..'
Date Thu, 09 Jan 2014 23:27:50 GMT

    [ https://issues.apache.org/jira/browse/FELIX-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867276#comment-13867276
] 

Andre Piwoni commented on FELIX-369:
------------------------------------

I have read discussion thread above and I have a comment with regard to normalizing dot segment
paths.

While ../.. may not indicate much for classloader, how about a/b/c/../../file.xsd?
Don't you think it should be normalized per RFC3986?

If BundleImpl.getResource() can find a/file.xsd, why not a/b/c/../../file.xsd?

> Bundle.getResource(String) do not handle path with '.' or '..'
> --------------------------------------------------------------
>
>                 Key: FELIX-369
>                 URL: https://issues.apache.org/jira/browse/FELIX-369
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-1.0.0
>         Environment: the bug affect both felix-1.0.0 and felix-1.0.0-SNAPSHOT-r576472
>            Reporter: Stefano Lenzi
>            Assignee: Stefano Lenzi
>             Fix For: framework-1.0.0
>
>         Attachments: resource.loading.patch
>
>
> The Bundle.getResource(String path) does not handle correctly the loading of resource
if the path contains "." or ".." directory.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message