cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1090032 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
Date Thu, 07 Apr 2011 21:39:21 GMT
Author: dkulp
Date: Thu Apr  7 21:39:20 2011
New Revision: 1090032

URL: http://svn.apache.org/viewvc?rev=1090032&view=rev
Log:
[CXF-3204] Use proper URI constructor that can handle spaces in paths

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java?rev=1090032&r1=1090031&r2=1090032&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
Thu Apr  7 21:39:20 2011
@@ -512,11 +512,13 @@ public class DynamicClientFactory {
                 for (URL url : urls) {
                     if (url.getProtocol().startsWith("file")) {
                         File file;
-                        if (url.toURI().getPath() == null) {
-                            continue;
-                        }
                         try { 
-                            file = new File(url.toURI().getPath()); 
+                            URI uri = new URI(url.getProtocol(), null, url.getPath(), null,
null);
+
+                            if (uri.getPath() == null) {
+                                continue;
+                            }
+                            file = new File(uri.getPath()); 
                         } catch (URISyntaxException urise) { 
                             if (url.getPath() == null) {
                                 continue;



Mime
View raw message