You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2017/02/20 16:53:15 UTC

cxf git commit: CXF-7255 - Allow empty ("") passwords when calling a service

Repository: cxf
Updated Branches:
  refs/heads/master 47c00e2fe -> f91541bed


CXF-7255 - Allow empty ("") passwords when calling a service


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

Branch: refs/heads/master
Commit: f91541bed7e44624556b394cfba9b1a43c9bbdca
Parents: 47c00e2
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Mon Feb 20 16:02:13 2017 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Mon Feb 20 16:53:11 2017 +0000

----------------------------------------------------------------------
 .../ws/security/wss4j/policyhandlers/AbstractBindingBuilder.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/f91541be/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 e7b7a66..6144a4f 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
@@ -822,7 +822,7 @@ public abstract class AbstractBindingBuilder extends AbstractCommonBindingHandle
                     password = getPassword(userName, token, WSPasswordCallback.USERNAME_TOKEN);
                 }
 
-                if (!StringUtils.isEmpty(password)) {
+                if (password != null) {
                     // If the password is available then build the token
                     if (token.getPasswordType() == UsernameToken.PasswordType.HashPassword) {
                         utBuilder.setPasswordType(WSConstants.PASSWORD_DIGEST);