Unable to deploy web app if filenames have spaces
-------------------------------------------------

                 Key: GERONIMO-4960
                 URL: https://issues.apache.org/jira/browse/GERONIMO-4960
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: deployment
    Affects Versions: 2.1.4
         Environment: WinXP 32-bit.
            Reporter: Sean McNealy
            Priority: Minor


Deploying a web application that has filenames with spaces give the following 
error:

java.lang.IllegalArgumentException
        at java.net.URI.create(URI.java:853)
        at 
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:572)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
        at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        at 
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
        at 
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
        at 
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:867)
        at 
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
        at 
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
        at 
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
        at java.lang.Thread.run(Thread.java:735)
Caused by: 
java.net.URISyntaxException: Illegal character in path at index 54: 
deploymentmanager.war/packages/ServerSensor/RealSecure Server Sensor.exe
        at java.net.URI$Parser.fail(URI.java:2820)
        at java.net.URI$Parser.checkChars(URI.java:2993)
        at java.net.URI$Parser.parseHierarchical(URI.java:3077)
        at java.net.URI$Parser.parse(URI.java:3035)
        at java.net.URI.<init>(URI.java:589)
        at java.net.URI.create(URI.java:851)
        ... 14 more


The static helper method URI.create is not intended for use when data is user 
created or has not been validated.  Using the multi-argument URI constructor 
would solve the problem.

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

Reply via email to