cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [5/8] cxf git commit: [CXF-7494] Handle SOAPAction with single quotes
Date Tue, 05 Sep 2017 14:33:54 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/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 <deki@apache.org>
Authored: Mon Sep 4 12:43:09 2017 +0200
Committer: Daniel Kulp <dkulp@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;


Mime
View raw message