This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch 3.2.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.2.x-fixes by this push:
     new 0e1f74c  [CXF-7960]Exception when SOAP service URI contains whitespace
0e1f74c is described below

commit 0e1f74cbed313503598a67376a6fe44d9599a661
Author: Freeman Fang <[email protected]>
AuthorDate: Tue Mar 12 15:00:42 2019 +0800

    [CXF-7960]Exception when SOAP service URI contains whitespace
    
    (cherry picked from commit d40d3c70af4c0a865731284f888634fdbd6bef08)
---
 .../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;

Reply via email to