[jboss-jira] [JBoss JIRA] Commented: (JBVFS-100) Spaces in URLs returned by getResource() should in vfszip: handler

Adrian Brock (JIRA) jira-events at lists.jboss.org
Mon Mar 30 09:22:22 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBVFS-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12459612#action_12459612 ] 

Adrian Brock commented on JBVFS-100:
------------------------------------

This is a VFS issue, although it should have already been fixed by JBAS-6518

Obviously there's still some place not doing the toURI().toURL() to properly escape the URL.

> Spaces in URLs returned by getResource() should in vfszip: handler
> ------------------------------------------------------------------
>
>                 Key: JBVFS-100
>                 URL: https://jira.jboss.org/jira/browse/JBVFS-100
>             Project: JBoss VFS
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: JBoss AS 5.0.1, WinXP, JDK 1.6.0u12
>            Reporter: Ondrej Medek
>            Priority: Minor
>
> Hi,
> I have an EAR deployed as directory (not as JAR). Inside I have one service bean and a config directory. I have tried to deploy config directory as a plain directory and packed in the JAR. I have spotted different behaviour of  handling spaces in the resource URLS returned by org.jboss.classloader.spi.base.BaseClassLoader when accessing the config directory.  My service bean reads config direcory by: 
> this.getClass().getClassLoader().getResource("conf/")
> I get the URL: vfsfile:/C:/Program%20Files/JBoss/jboss-5.0.1.GA/server/default/deploy/prinsee-ear.ear/conf/
> (Space is '%20')
> however, when I put the resource in the JAR and access it by:
> this.getClass().getClassLoader().getResource("prinsee-client.jar/conf")
> I get the URL: vfszip:/C:/Program Files/JBoss/jboss-5.0.1.GA/server/default/deploy/prinsee-ear.ear/prinsee-client.jar/conf/
> (Space is ' ').
> I think, the behaviour of vfszip: handler is wrong. The space should be always '%20'.
> Cheers
> andy

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list