NameID attributes were improperly set in DOM.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 22 Feb 2006 00:00:55 +0000 (00:00 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 22 Feb 2006 00:00:55 +0000 (00:00 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1928 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/attrresolv/provider/SAML2PersistentID.java

index fdd01a4..7574614 100644 (file)
@@ -249,10 +249,10 @@ public class SAML2PersistentID extends BaseAttributeDefinition implements Attrib
                                docFactory.setNamespaceAware(true);
                                Document placeHolder = docFactory.newDocumentBuilder().newDocument();
                                Element nameIDNode = placeHolder.createElementNS(XML.SAML2ASSERT_NS, "NameID");
                                docFactory.setNamespaceAware(true);
                                Document placeHolder = docFactory.newDocumentBuilder().newDocument();
                                Element nameIDNode = placeHolder.createElementNS(XML.SAML2ASSERT_NS, "NameID");
-                               nameIDNode.setAttribute("xmlns", XML.SAML2ASSERT_NS);
-                               nameIDNode.setAttribute("Format", "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent");
-                               nameIDNode.setAttribute("NameQualifier", responder);
-                               nameIDNode.setAttribute("SPNameQualifier", requester);
+                               nameIDNode.setAttributeNS(org.opensaml.XML.XMLNS_NS, "xmlns", XML.SAML2ASSERT_NS);
+                               nameIDNode.setAttributeNS(null, "Format", "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent");
+                               nameIDNode.setAttributeNS(null, "NameQualifier", responder);
+                               nameIDNode.setAttributeNS(null, "SPNameQualifier", requester);
                                nameIDNode.appendChild(placeHolder.createTextNode(result.replaceAll(System
                                                .getProperty("line.separator"), "")));
 
                                nameIDNode.appendChild(placeHolder.createTextNode(result.replaceAll(System
                                                .getProperty("line.separator"), "")));