diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-12 07:36:01 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-12 07:36:01 +0000 |
commit | a4d517e2ac842e940d798669f94fcb684269e16a (patch) | |
tree | 744bc0c05b1b895301021851cd0ae8d885393deb /java | |
parent | 88652b8e3fd85985c9dfa00db83b0eb600e3063b (diff) |
TUSCANY-3015: Fix URI creation to escape spaces in the name
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@773812 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r-- | java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessor.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessor.java b/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessor.java index 88f6100c05..2c4dbf45d8 100644 --- a/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessor.java +++ b/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLDocumentProcessor.java @@ -123,6 +123,9 @@ public class WSDLDocumentProcessor implements URLArtifactProcessor<WSDLDefinitio }
} else {
String location = imp.getLocationURI();
+ if (location.indexOf(' ') != -1) {
+ location = location.replace(" ", "%20");
+ }
URI uri = URI.create(location);
if (uri.isAbsolute()) {
WSDLDefinition resolved;
|