[java-shib-metadata] branch main updated: OSJ-293: Consider strict mode to reject unexpected content

Brent Putman putmanb at georgetown.edu
Fri Aug 11 00:06:13 UTC 2023


This is an automated email from the git hooks/post-receive script.

putmanb pushed a commit to branch main
in repository java-shib-metadata.

View the commit online:
http://git.shibboleth.net/view/?p=java-shib-metadata.git;a=commit;h=2827481c1b6da8c303ef003d94705d8a935aed2b

The following commit(s) were added to refs/heads/main by this push:
     new 2827481c OSJ-293: Consider strict mode to reject unexpected content
2827481c is described below

commit 2827481c1b6da8c303ef003d94705d8a935aed2b
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Wed Aug 9 20:57:47 2023 -0400

    OSJ-293: Consider strict mode to reject unexpected content
---
 .../shibboleth/idp/saml/xmlobject/impl/KeyAuthorityUnmarshaller.java    | 2 +-
 .../java/net/shibboleth/idp/saml/xmlobject/impl/ScopeUnmarshaller.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/shib-metadata-impl/src/main/java/net/shibboleth/idp/saml/xmlobject/impl/KeyAuthorityUnmarshaller.java b/shib-metadata-impl/src/main/java/net/shibboleth/idp/saml/xmlobject/impl/KeyAuthorityUnmarshaller.java
index 951ce2fb..84be5560 100644
--- a/shib-metadata-impl/src/main/java/net/shibboleth/idp/saml/xmlobject/impl/KeyAuthorityUnmarshaller.java
+++ b/shib-metadata-impl/src/main/java/net/shibboleth/idp/saml/xmlobject/impl/KeyAuthorityUnmarshaller.java
@@ -60,7 +60,7 @@ public class KeyAuthorityUnmarshaller extends AbstractXMLObjectUnmarshaller {
         if (childXMLObject instanceof KeyInfo) {
             authority.getKeyInfos().add((KeyInfo) childXMLObject);
         } else {
-            log.debug("Ignorning unknown child element {}", childXMLObject.getElementQName());
+            super.processChildElement(parentXMLObject, childXMLObject);
         }
     }
 
diff --git a/shib-metadata-impl/src/main/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeUnmarshaller.java b/shib-metadata-impl/src/main/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeUnmarshaller.java
index 8b83c861..fb70bc98 100644
--- a/shib-metadata-impl/src/main/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeUnmarshaller.java
+++ b/shib-metadata-impl/src/main/java/net/shibboleth/idp/saml/xmlobject/impl/ScopeUnmarshaller.java
@@ -41,7 +41,7 @@ public class ScopeUnmarshaller extends AbstractXMLObjectUnmarshaller {
         if (attribute.getLocalName().equals(Scope.REGEXP_ATTRIB_NAME)) {
             scope.setRegexp(Boolean.valueOf(attribute.getValue()));
         } else {
-            log.debug("Ignorning unknown attribute {}", attribute.getLocalName());
+            super.processAttribute(xmlObject, attribute);
         }
 
     }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list