You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2017/09/05 14:33:54 UTC

[5/8] cxf git commit: [CXF-7494] Handle SOAPAction with single quotes

[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/a84a8935
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a84a8935
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a84a8935

Branch: refs/heads/3.1.x-fixes
Commit: a84a8935bf6fd5cc439b3f441f06d97ffe71da4d
Parents: debb07f
Author: Dennis Kieselhorst <de...@apache.org>
Authored: Mon Sep 4 12:43:09 2017 +0200
Committer: Daniel Kulp <dk...@apache.org>
Committed: Tue Sep 5 10:13:40 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/a84a8935/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 ca4af42..331922c 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;