Seems Java doesn't honor XSD defaults.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 9 Mar 2005 00:34:20 +0000 (00:34 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 9 Mar 2005 00:34:20 +0000 (00:34 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@1279 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aap/provider/XMLAAPProvider.java

index d8f2b0d..9162e77 100644 (file)
@@ -189,7 +189,7 @@ public class XMLAAPProvider implements AAP {
         }
         
         private int toValueType(Element e) throws MalformedException {
         }
         
         private int toValueType(Element e) throws MalformedException {
-            if (XML.safeCompare("literal",e.getAttributeNS(null,"Type")))
+            if (!e.hasAttributeNS(null,"Type") || XML.safeCompare("literal",e.getAttributeNS(null,"Type")))
                 return Rule.LITERAL;
             else if (XML.safeCompare("regexp",e.getAttributeNS(null,"Type")))
                 return Rule.REGEXP;
                 return Rule.LITERAL;
             else if (XML.safeCompare("regexp",e.getAttributeNS(null,"Type")))
                 return Rule.REGEXP;