geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajiv M (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-3108) Deploy fails when a WAR is deployed having a CSS file with special character
Date Fri, 20 Apr 2007 14:45:15 GMT
Deploy fails when a WAR is deployed having a CSS file with special character
----------------------------------------------------------------------------

                 Key: GERONIMO-3108
                 URL: https://issues.apache.org/jira/browse/GERONIMO-3108
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: deployment
    Affects Versions: 1.1.1
         Environment: Windows XP
            Reporter: Rajiv M
            Priority: Minor


A WAR with a CSS file named with special characters fails to deploy  with the below errors:


15:06:12,580 ERROR [Deployer] Deployment failed: plan=null, module=C:\AGDIR\var\temp\CssTest.war

org.apache.geronimo.common.DeploymentException: Could not construct URI for location of war
entry 
        at org.apache.geronimo.web.deployment.AbstractWebModuleBuilder.installModule(AbstractWebModuleBuilder.java:253)

        at org.apache.geronimo.web.deployment.AbstractWebModuleBuilder$$FastClassByCGLIB$$459e0cc.invoke(<generated>)

        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) 
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)

        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)

        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:817)

.... 
Caused by: 
java.net.URISyntaxException: Illegal character in path at index 8: test_ie7[1].css 
        at java.net.URI$Parser.fail(URI.java:2821) 
        at java.net.URI$Parser.checkChars(URI.java:2994) 
        at java.net.URI$Parser.parseHierarchical(URI.java:3078) 
        at java.net.URI$Parser.parse(URI.java:3036) 
        at java.net.URI.<init>(URI.java:819) 
        at org.apache.geronimo.web.deployment.AbstractWebModuleBuilder.installModule 

URI uri = new URI("http://localhost:80/test_ie7[1].css") will cause the exception to be thrown
in a simple Java program. 

Sun documentation (http://java.sun.com/j2se/1.5.0/docs/api/java/net/URI.html) however mentions
that [ and ] are legal URI characters. 

Why the exception then?


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message