DynamicClientFactory.setupClasspath method cannot handle spaces in path
-----------------------------------------------------------------------

                 Key: CXF-3204
                 URL: https://issues.apache.org/jira/browse/CXF-3204
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding
    Affects Versions: 2.3.1, 2.2.12, 2.2.11, 2.3.0, 2.2.10
         Environment: Windows XP
            Reporter: Issam Bandak



Using 2.3.1 Libraries, but also verfiied that the issue also exists in the 
2.2.10 - 2.2.12 as well

The setupClasspath method in the DynamicClientFactory class cannot handle 
spaces in the path. It throws the following exception: 

Caused by: java.net.URISyntaxException: Illegal character in path at index 16: 
file:/C:/Program Files/Zephyr/apache-tomcat-5.5.28/common/classes/
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:578)
        at java.net.URL.toURI(URL.java:918)
        at 
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.setupClasspath(DynamicClientFactory.java:515)
        at 
org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:313)
        ... 45 more

note: this seems to be similar to issue CXF-1583 
(https://issues.apache.org/jira/browse/CXF-1583) that was found in version 2.1, 
but broken again in the latest releases since adding the nullpointer checks for 
issue 2175 (https://issues.apache.org/jira/browse/CXF-2175).


-- 
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