[java-oidfed-common] 02/02: Remove metadata parameter if the enforced value is null

Codeberg noreply at shibboleth.net
Thu Sep 24 17:28:48 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-oidfed-common.

View the commit online:
https://codeberg.org/Shibboleth/java-oidfed-common/commit/fb5c934eddfd78a89b44ddef34bdcda6ffcc4347

commit fb5c934eddfd78a89b44ddef34bdcda6ffcc4347
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Thu Sep 24 19:20:03 2026 +0300

    Remove metadata parameter if the enforced value is null
    
    - Updated tests on OP fed plugin covers this
---
 .../oidfed/profile/impl/AbstractTrustChainResolutionAction.java          | 1 +
 1 file changed, 1 insertion(+)

diff --git a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/AbstractTrustChainResolutionAction.java b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/AbstractTrustChainResolutionAction.java
index 50856dd..c8c084a 100644
--- a/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/AbstractTrustChainResolutionAction.java
+++ b/oidfed-common-impl/src/main/java/net/shibboleth/oidfed/profile/impl/AbstractTrustChainResolutionAction.java
@@ -315,6 +315,7 @@ public class AbstractTrustChainResolutionAction extends AbstractProfileAction {
                         } else {
                             log.debug("{} Enforcer returned null for entity {} claim {}", getLogPrefix(), entityType,
                                     claim);
+                            requestMetadata.remove(claim);
                         }
                     } catch (final ConstraintViolationException e) {
                         log.warn("{} The requested metadata is not compliant with the policy", getLogPrefix());

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


More information about the commits mailing list