Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5223E11701 for ; Wed, 14 May 2014 23:12:22 +0000 (UTC) Received: (qmail 30047 invoked by uid 500); 10 May 2014 22:00:12 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 99643 invoked by uid 500); 10 May 2014 21:58:12 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 59380 invoked by uid 99); 10 May 2014 21:56:15 -0000 Received: from Unknown (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2014 21:56:15 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 2393B9286F1; Thu, 8 May 2014 03:05:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: xldai@apache.org To: commits@cxf.apache.org Date: Thu, 08 May 2014 03:05:13 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/2] git commit: revert changes for CXF-5732 Repository: cxf Updated Branches: refs/heads/2.7.x-fixes 2f57b6fd0 -> f6d9f8114 revert changes for CXF-5732 Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/051058e8 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/051058e8 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/051058e8 Branch: refs/heads/2.7.x-fixes Commit: 051058e8adad8acf5e53355a527d1b32d108a12c Parents: 58fd093 Author: xldai Authored: Thu May 8 11:03:57 2014 +0800 Committer: xldai Committed: Thu May 8 11:03:57 2014 +0800 ---------------------------------------------------------------------- .../java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/051058e8/api/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java ---------------------------------------------------------------------- diff --git a/api/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java b/api/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java index 225ccdc..c548916 100644 --- a/api/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java +++ b/api/src/main/java/org/apache/cxf/interceptor/DocLiteralInInterceptor.java @@ -207,10 +207,8 @@ 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; }