[jboss-jira] [JBoss JIRA] Updated: (JBVFS-100) Spaces in URLs returned by getResource() should in vfszip: handler
David Lloyd (JIRA)
jira-events at lists.jboss.org
Thu Mar 10 12:57:46 EST 2011
[ https://issues.jboss.org/browse/JBVFS-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Lloyd updated JBVFS-100:
------------------------------
Fix Version/s: 2.2.0.Alpha3
> Spaces in URLs returned by getResource() should in vfszip: handler
> ------------------------------------------------------------------
>
> Key: JBVFS-100
> URL: https://issues.jboss.org/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
> Fix For: 2.2.0.Alpha3
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list