cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xl...@apache.org
Subject git commit: fix CXF-5732 Wrong faultcode in case failed schema validation on server side
Date Wed, 07 May 2014 08:16:54 GMT
Repository: cxf
Updated Branches:
  refs/heads/master e89b2b1b1 -> 5af5c7b62


fix CXF-5732 Wrong faultcode in case failed schema validation on server side


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

Branch: refs/heads/master
Commit: 5af5c7b62bf71a1f1077422aafbea86754906232
Parents: e89b2b1
Author: xldai <xldai@talend.com>
Authored: Wed May 7 16:15:49 2014 +0800
Committer: xldai <xldai@talend.com>
Committed: Wed May 7 16:15:49 2014 +0800

----------------------------------------------------------------------
 .../apache/cxf/wsdl/interceptors/DocLiteralInInterceptor.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/5af5c7b6/rt/wsdl/src/main/java/org/apache/cxf/wsdl/interceptors/DocLiteralInInterceptor.java
----------------------------------------------------------------------
diff --git a/rt/wsdl/src/main/java/org/apache/cxf/wsdl/interceptors/DocLiteralInInterceptor.java
b/rt/wsdl/src/main/java/org/apache/cxf/wsdl/interceptors/DocLiteralInInterceptor.java
index 3fad677..748e424 100644
--- a/rt/wsdl/src/main/java/org/apache/cxf/wsdl/interceptors/DocLiteralInInterceptor.java
+++ b/rt/wsdl/src/main/java/org/apache/cxf/wsdl/interceptors/DocLiteralInInterceptor.java
@@ -208,8 +208,10 @@ public class DocLiteralInInterceptor extends AbstractInDatabindingInterceptor
{
     
             message.setContent(List.class, parameters);
         } catch (Fault f) {
-            if (!isRequestor(message)) {
+            if (isRequestor(message)) {
                 f.setFaultCode(Fault.FAULT_CODE_CLIENT);
+            } else {
+                f.setFaultCode(Fault.FAULT_CODE_SERVER);
             }
             throw f;
         }


Mime
View raw message