You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Andre Piwoni (JIRA)" <ji...@apache.org> on 2014/01/10 00:27:50 UTC
[jira] [Commented] (FELIX-369) Bundle.getResource(String) do not
handle path with '.' or '..'
[ 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)