This is an automated email from the ASF dual-hosted git repository.
ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new d40d3c7 [CXF-7960]Exception when SOAP service URI contains whitespace
d40d3c7 is described below
commit d40d3c70af4c0a865731284f888634fdbd6bef08
Author: Freeman Fang <[email protected]>
AuthorDate: Tue Mar 12 15:00:42 2019 +0800
[CXF-7960]Exception when SOAP service URI contains whitespace
---
.../main/java/org/apache/cxf/transport/servlet/ServletDestination.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletDestination.java
b/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletDestination.java
index 0e87c5d..9af952c 100644
---
a/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletDestination.java
+++
b/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletDestination.java
@@ -72,7 +72,7 @@ public class ServletDestination extends
AbstractHTTPDestination implements Servl
return contextPath;
}
if (address.startsWith("http")) {
- return URI.create(address).getPath();
+ return URI.create(address.replaceAll(" ", "%20")).getPath();
}
return contextPath + address;