cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/4] cxf git commit: [CXF-7494] Handle SOAPAction with single quotes
Date Wed, 06 Sep 2017 13:48:23 GMT
[CXF-7494] Handle SOAPAction with single quotes


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/3a6e0f4a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/3a6e0f4a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/3a6e0f4a

Branch: refs/heads/3.0.x-fixes
Commit: 3a6e0f4a0aca0d53f88d78b342e1755336fedeb0
Parents: 2d90e1e
Author: Dennis Kieselhorst <deki@apache.org>
Authored: Mon Sep 4 12:43:09 2017 +0200
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Wed Sep 6 09:33:25 2017 -0400

----------------------------------------------------------------------
 .../cxf/binding/soap/interceptor/SoapActionInInterceptor.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/3a6e0f4a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapActionInInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapActionInInterceptor.java
b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapActionInInterceptor.java
index b9ad7d7..6302435 100644
--- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapActionInInterceptor.java
+++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapActionInInterceptor.java
@@ -67,7 +67,7 @@ public class SoapActionInInterceptor extends AbstractSoapInterceptor {
                 List<String> sa = headers.get(SoapBindingConstants.SOAP_ACTION);
                 if (sa != null && sa.size() > 0) {
                     String action = sa.get(0);
-                    if (action.startsWith("\"")) {
+                    if (action.startsWith("\"") || action.startsWith("\'")) {
                         action = action.substring(1, action.length() - 1);
                     }
                     return action;


Mime
View raw message