cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1388043 - /cxf/fediz/trunk/plugins/core/src/main/java/org/apache/cxf/fediz/core/saml/SAMLTokenValidator.java
Date Thu, 20 Sep 2012 14:27:25 GMT
Author: coheigea
Date: Thu Sep 20 14:27:24 2012
New Revision: 1388043

URL: http://svn.apache.org/viewvc?rev=1388043&view=rev
Log:
[FEDIZ-26] - SAMLTokenValidator throws a NPE when an Attribute of the Assertion does not have
a NameFormat. 

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=1388043&r1=1388042&r2=1388043&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 Sep 20 14:27:24 2012
@@ -320,7 +320,7 @@ public class SAMLTokenValidator implemen
                 // if NameFormat is http://schemas.xmlsoap.org/ws/2005/05/identity/claims
                 // but ClaimType value must be fully qualified as Namespace attribute goes
away
                 URI attrName = URI.create(attribute.getName());
-                if (attribute.getNameFormat().equals(ClaimTypes.URI_BASE.toString()) 
+                if (ClaimTypes.URI_BASE.toString().equals(attribute.getNameFormat())
                     && !attrName.isAbsolute()) {
                     c.setClaimType(URI.create(ClaimTypes.URI_BASE + "/" + attribute.getName()));
                 } else {



Mime
View raw message