You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by de...@apache.org on 2017/09/04 10:43:19 UTC

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

Repository: cxf
Updated Branches:
  refs/heads/master c41753637 -> d75dbf72c


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

Branch: refs/heads/master
Commit: d75dbf72cbe25895ff04dc66f64a6309cc723fbf
Parents: c417536
Author: Dennis Kieselhorst <de...@apache.org>
Authored: Mon Sep 4 12:43:09 2017 +0200
Committer: Dennis Kieselhorst <de...@apache.org>
Committed: Mon Sep 4 12:43:09 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/d75dbf72/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 ef143d4..6dc5cfe 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.isEmpty()) {
                     String action = sa.get(0);
-                    if (action.startsWith("\"")) {
+                    if (action.startsWith("\"") || action.startsWith("\'")) {
                         action = action.substring(1, action.length() - 1);
                     }
                     return action;