[jboss-jira] [JBoss JIRA] Created: (JBCL-94) Spaces in URLs returned by getResource() should in vfszip: handler
Ondrej Medek (JIRA)
jira-events at lists.jboss.org
Mon Mar 30 09:05:25 EDT 2009
Spaces in URLs returned by getResource() should in vfszip: handler
------------------------------------------------------------------
Key: JBCL-94
URL: https://jira.jboss.org/jira/browse/JBCL-94
Project: JBoss ClassLoader
Issue Type: Bug
Components: ClassLoader
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