Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5CDCC2009E2 for ; Wed, 1 Jun 2016 16:59:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5B088160A4C; Wed, 1 Jun 2016 14:59:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A2857160A45 for ; Wed, 1 Jun 2016 16:59:21 +0200 (CEST) Received: (qmail 3583 invoked by uid 500); 1 Jun 2016 14:59:20 -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 3574 invoked by uid 99); 1 Jun 2016 14:59:20 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2016 14:59:20 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id AE198E0498; Wed, 1 Jun 2016 14:59:20 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: coheigea@apache.org To: commits@cxf.apache.org Message-Id: <09ecb2e89a504e01b5fb8d5a65768c69@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: [CXF-6900] - Prevent a problem if the SOAP Fault code has no namespace Date: Wed, 1 Jun 2016 14:59:20 +0000 (UTC) archived-at: Wed, 01 Jun 2016 14:59:22 -0000 Repository: cxf Updated Branches: refs/heads/master 793eebe60 -> 3b1ffa60c [CXF-6900] - Prevent a problem if the SOAP Fault code has no namespace Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/3b1ffa60 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/3b1ffa60 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/3b1ffa60 Branch: refs/heads/master Commit: 3b1ffa60c510eda213a3adb09478201c6d9dfd03 Parents: 793eebe Author: Colm O hEigeartaigh Authored: Wed Jun 1 15:59:02 2016 +0100 Committer: Colm O hEigeartaigh Committed: Wed Jun 1 15:59:02 2016 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/cxf/binding/soap/saaj/SAAJUtils.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/3b1ffa60/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJUtils.java ---------------------------------------------------------------------- diff --git a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJUtils.java b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJUtils.java index 89cb7f7..f1abe19 100644 --- a/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJUtils.java +++ b/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/saaj/SAAJUtils.java @@ -62,7 +62,11 @@ public final class SAAJUtils { count++; pfx = "fc" + count; } - f.addNamespaceDeclaration(pfx, code.getNamespaceURI()); + if (code.getNamespaceURI() != null && !"".equals(code.getNamespaceURI())) { + f.addNamespaceDeclaration(pfx, code.getNamespaceURI()); + } else { + f.addNamespaceDeclaration(pfx, f.getNamespaceURI()); + } f.setFaultCode(pfx + ":" + code.getLocalPart()); }