You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2009/05/24 21:33:45 UTC

[jira] Resolved: (AXIS2-4282) JarFileClassLoader allows resources to be loaded from locations outside of the directory specified in its classpath

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

Andreas Veithen resolved AXIS2-4282.
------------------------------------

    Resolution: Fixed

Checked that the behavior is compatible with URLClassLoader and added a unit test. Note that URLClassLoader doesn't seem to adhere strictly to the rules in [1] which forbid ".." altogether. URLClassLoader allows ".." in resource names as long as the resource name doesn't specify a file outside of the directory (e.g. "META-INF/../someother.file"). So no need to further restrict allowable resource names.

[1] http://java.sun.com/j2se/1.4.2/docs/guide/resources/resources.html

> JarFileClassLoader allows resources to be loaded from locations outside of the directory specified in its classpath
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-4282
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4282
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5, nightly
>            Reporter: Jarek Gawor
>            Assignee: Jarek Gawor
>             Fix For: 1.5, nightly
>
>
> If JarFileClassLoader contains one classpath entry that is a directory, it will allow resources to be loaded from ANY directory on the file system.
> The JarFileClassLoader should of course only allow resources to be loaded from within the directory specified.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.