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 C631C200C21 for ; Mon, 20 Feb 2017 17:53:56 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C4DE7160B73; Mon, 20 Feb 2017 16:53:56 +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 1C126160B58 for ; Mon, 20 Feb 2017 17:53:55 +0100 (CET) Received: (qmail 3014 invoked by uid 500); 20 Feb 2017 16:53:55 -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 3005 invoked by uid 99); 20 Feb 2017 16:53:55 -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; Mon, 20 Feb 2017 16:53:55 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3510EDFADC; Mon, 20 Feb 2017 16:53:55 +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 Date: Mon, 20 Feb 2017 16:53:55 -0000 Message-Id: <1f97fd2a258c4275a44898dcd1971434@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/3] cxf git commit: CXF-7255 - Allow empty ("") passwords when calling a service archived-at: Mon, 20 Feb 2017 16:53:57 -0000 Repository: cxf Updated Branches: refs/heads/3.1.x-fixes 030437b55 -> b2bad7f9e CXF-7255 - Allow empty ("") passwords when calling a service # Conflicts: # rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/5aaf49b1 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/5aaf49b1 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/5aaf49b1 Branch: refs/heads/3.1.x-fixes Commit: 5aaf49b18e4c2962eeb2260ad30072b553838efb Parents: 030437b Author: Colm O hEigeartaigh Authored: Mon Feb 20 16:02:13 2017 +0000 Committer: Colm O hEigeartaigh Committed: Mon Feb 20 16:53:29 2017 +0000 ---------------------------------------------------------------------- .../security/wss4j/policyhandlers/AbstractBindingBuilder.java | 5 +++++ 1 file changed, 5 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/5aaf49b1/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java ---------------------------------------------------------------------- diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java index f187e9c..2b53c20 100644 --- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java +++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java @@ -803,8 +803,13 @@ public abstract class AbstractBindingBuilder extends AbstractCommonBindingHandle if (StringUtils.isEmpty(password)) { password = getPassword(userName, token, WSPasswordCallback.USERNAME_TOKEN); } +<<<<<<< HEAD if (!StringUtils.isEmpty(password)) { +======= + + if (password != null) { +>>>>>>> f91541b... CXF-7255 - Allow empty ("") passwords when calling a service // If the password is available then build the token if (token.getPasswordType() == UsernameToken.PasswordType.HashPassword) { utBuilder.setPasswordType(WSConstants.PASSWORD_DIGEST);