cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1434625 - /cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
Date Thu, 17 Jan 2013 11:37:21 GMT
Author: coheigea
Date: Thu Jan 17 11:37:21 2013
New Revision: 1434625

URL: http://svn.apache.org/viewvc?rev=1434625&view=rev
Log:
[FEDIZ-45] - Do not convert a SAML Attribute with an empty AttributeValue into a Claim

Modified:
    cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java

Modified: cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java?rev=1434625&r1=1434624&r2=1434625&view=diff
==============================================================================
--- cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
(original)
+++ cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
Thu Jan 17 11:37:21 2013
@@ -279,7 +279,9 @@ public class SAMLTokenValidator implemen
                     if (LOG.isDebugEnabled()) {
                         LOG.debug(" [" + value + "]");
                     }
-                    valueList.add(value);
+                    if (!"".equals(value)) {
+                        valueList.add(value);
+                    }
                 }
                 mergeClaimToMap(claimsMap, c, valueList);
             }
@@ -335,7 +337,9 @@ public class SAMLTokenValidator implemen
                     if (LOG.isDebugEnabled()) {
                         LOG.debug(" [" + value + "]");
                     }
-                    valueList.add(value);
+                    if (!"".equals(value)) {
+                        valueList.add(value);
+                    }
                 }
                 mergeClaimToMap(claimsMap, c, valueList);
             }



Mime
View raw message