]
Adrian Brock moved JBCL-94 to JBVFS-100:
----------------------------------------
Project: JBoss VFS (was: JBoss ClassLoader)
Key: JBVFS-100 (was: JBCL-94)
Component/s: (was: ClassLoader)
Security: Public
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: