Extract attribute value, not attribute node
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 22 Aug 2007 17:38:18 +0000 (17:38 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 22 Aug 2007 17:38:18 +0000 (17:38 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@2344 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/idp/config/profile/AbstractSAMLProfileHandlerBeanDefinitionParser.java

index 1601bcf..9749bd1 100644 (file)
@@ -17,6 +17,7 @@
 package edu.internet2.middleware.shibboleth.idp.config.profile;
 
 import org.apache.log4j.Logger;
+import org.opensaml.xml.util.DatatypeHelper;
 import org.opensaml.xml.util.XMLHelper;
 import org.springframework.beans.factory.support.BeanDefinitionBuilder;
 import org.w3c.dom.Element;
@@ -45,7 +46,8 @@ public abstract class AbstractSAMLProfileHandlerBeanDefinitionParser extends
 
         builder.addPropertyReference("messageEncoders", "shibboleth.MessageEncoders");
 
-        builder.addPropertyValue("inboundBinding", config.getAttributeNodeNS(null, "inboundBinding"));
+        builder.addPropertyValue("inboundBinding", DatatypeHelper.safeTrimOrNullString(config.getAttributeNS(null,
+                "inboundBinding")));
 
         builder.addPropertyValue("supportedOutboundBindings", XMLHelper.getAttributeValueAsList(config
                 .getAttributeNodeNS(null, "outboundBindingEnumeration")));