[java-opensaml COMMIT] /trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/ContactPersonUnm...

noreply at shibboleth.net noreply at shibboleth.net
Thu Dec 4 13:06:46 EST 2014


Author: scantor
Date: Thu Dec  4 13:06:46 2014
New Revision: 4176

URL: http://svn.shibboleth.net/view/java-opensaml?rev=4176&view=rev
Log:
OSJ-96 - fix contactType handling

Modified:
    trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/ContactPersonUnmarshaller.java

Modified: trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/ContactPersonUnmarshaller.java
URL: http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/ContactPersonUnmarshaller.java?rev=4176&r1=4175&r2=4176&view=diff
==============================================================================
--- trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/ContactPersonUnmarshaller.java (original)
+++ trunk/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/ContactPersonUnmarshaller.java Thu Dec  4 13:06:46 2014
@@ -65,7 +65,8 @@
     protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
         ContactPerson person = (ContactPerson) samlObject;
 
-        if (attribute.getLocalName().equals(ContactPerson.CONTACT_TYPE_ATTRIB_NAME)) {
+        if (attribute.getLocalName().equals(ContactPerson.CONTACT_TYPE_ATTRIB_NAME) &&
+                attribute.getNamespaceURI() == null) {
             if (ContactPersonTypeEnumeration.TECHNICAL.toString().equals(attribute.getValue())) {
                 person.setType(ContactPersonTypeEnumeration.TECHNICAL);
             } else if (ContactPersonTypeEnumeration.SUPPORT.toString().equals(attribute.getValue())) {



More information about the commits mailing list