[java-plugin-shibd-saml] branch main updated: Plug error handling path with event.

Codeberg noreply at shibboleth.net
Wed Nov 11 17:35:05 UTC 2026


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

codeberg pushed a commit to branch main
in repository java-plugin-shibd-saml.

View the commit online:
https://codeberg.org/Shibboleth/java-plugin-shibd-saml/commit/43fb79186773efcdf179717e9694084bb3824cf7

The following commit(s) were added to refs/heads/main by this push:
     new 43fb791  Plug error handling path with event.
43fb791 is described below

commit 43fb79186773efcdf179717e9694084bb3824cf7
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Wed Nov 11 12:34:51 2026 -0500

    Plug error handling path with event.
---
 .../java/net/shibboleth/sp/saml/saml2/profile/impl/AddMetadata.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/AddMetadata.java b/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/AddMetadata.java
index 8594c56..b4329c4 100644
--- a/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/AddMetadata.java
+++ b/sp-saml-impl/src/main/java/net/shibboleth/sp/saml/saml2/profile/impl/AddMetadata.java
@@ -401,7 +401,11 @@ public class AddMetadata extends AbstractApplicationAction {
                             supportService.getMetadataResolver().getServiceableComponent()) {
                         assert issuerId != null;
                         final CriteriaSet criteria = new CriteriaSet(new EntityIdCriterion(issuerId));
-                        return component.getComponent().resolveSingle(criteria);
+                        final EntityDescriptor ret = component.getComponent().resolveSingle(criteria);
+                        if (ret == null) {
+                            ActionSupport.buildEvent(profileRequestContext, EventIds.MESSAGE_PROC_ERROR);
+                        }
+                        return ret;
                     } catch (final ServiceException|ResolverException e) {
                         log.error("{} Error resolving metadata from service for {}", getLogPrefix(), issuerId, e);
                         ActionSupport.buildEvent(profileRequestContext, EventIds.MESSAGE_PROC_ERROR);

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


More information about the commits mailing list