You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Stefano Lenzi (JIRA)" <ji...@apache.org> on 2007/09/17 23:18:43 UTC
[jira] Created: (FELIX-369) Bundle.getResource(String) do not
handle path with '.' or '..'
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: 1.0.0
Environment: the bug affect both felix-1.0.0 and felix-1.0.0-SNAPSHOT-r576472
Reporter: Stefano Lenzi
The Bundle.getResource(String path) does not handle correctly the loading of resource if the path contains "." or ".." directory.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-369) Bundle.getResource(String) do not handle
path with '.' or '..'
Posted by "Stefano Lenzi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefano Lenzi closed FELIX-369.
-------------------------------
Resolution: Invalid
Fix Version/s: 1.0.0
Assignee: Stefano Lenzi
During a discussion on the mailing-list:
http://www.mail-archive.com/dev@felix.apache.org/msg01648.html
we found out that the Bundle.getResource(String) should not resolve '.' or '..' path.
> 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: 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: 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (FELIX-369) Bundle.getResource(String) do not
handle path with '.' or '..'
Posted by "Stefano Lenzi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528159 ]
Stefano Lenzi commented on FELIX-369:
-------------------------------------
Please be aware that the may also apply to the following methods:
- Bundle.getResources(String)
- Bundle.getEntry(String)
- Bundle.getEntryPaths(String)
- Bundle.findEntries(String,String,boolean)
> 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: 1.0.0
> Environment: the bug affect both felix-1.0.0 and felix-1.0.0-SNAPSHOT-r576472
> Reporter: Stefano Lenzi
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-369) Bundle.getResource(String) do not
handle path with '.' or '..'
Posted by "Stefano Lenzi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefano Lenzi updated FELIX-369:
--------------------------------
Attachment: resource.loading.patch
I've attached a patch which fix the problem for loading resources with Bundle.getResource(String).
The patch is tested and working for loading resource from the non-system bundle method.
> 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: 1.0.0
> Environment: the bug affect both felix-1.0.0 and felix-1.0.0-SNAPSHOT-r576472
> Reporter: Stefano Lenzi
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.