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 "Hudson (JIRA)" <ji...@apache.org> on 2015/10/20 00:11:27 UTC

[jira] [Commented] (AXIS2-5729) JarFileClassLoader can't handle URLs with spaces

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

Hudson commented on AXIS2-5729:
-------------------------------

SUCCESS: Integrated in Axis2 #3089 (See [https://builds.apache.org/job/Axis2/3089/])
AXIS2-5729: Fix JarFileClassLoader to handle spaces correctly. (veithen: rev 1709481)
* axis2/modules/kernel/src/org/apache/axis2/classloader/UrlResourceFinder.java
* axis2/modules/kernel/test/org/apache/axis2/classloader/JarFileClassLoaderTest.java


> JarFileClassLoader can't handle URLs with spaces
> ------------------------------------------------
>
>                 Key: AXIS2-5729
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5729
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.6.3
>            Reporter: Victor
>
> Hi,
> When creating a JarFileClassLoader with URLs built from File with spaces (using File#toURI().toURL(), so that the spaces are correctly handled up to the point we have an URL), then UrlResourceFinder#rebuildClassPath() will then transform these URLs back to File but will fail to transform them properly when they contains spaces.
> I think the proper way to convert an URL to a File is to call new File(url.toURI()) and not simply new File(url.getPath)!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org