[cpp-sp] branch main updated: Set target in error output based on input msg.

Codeberg noreply at shibboleth.net
Mon Apr 27 13:25:18 UTC 2026


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

codeberg pushed a commit to branch main
in repository cpp-sp.

View the commit online:
https://codeberg.org/Shibboleth/cpp-sp/commit/5fe6581b5b297cc85503bde07351ad2bb25476ab

The following commit(s) were added to refs/heads/main by this push:
     new 5fe6581b Set target in error output based on input msg.
5fe6581b is described below

commit 5fe6581b5b297cc85503bde07351ad2bb25476ab
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Mon Apr 27 09:24:37 2026 -0400

    Set target in error output based on input msg.
---
 shibsp/remoting/impl/AbstractRemotingService.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/shibsp/remoting/impl/AbstractRemotingService.cpp b/shibsp/remoting/impl/AbstractRemotingService.cpp
index 8d9a9634..5209e8e9 100644
--- a/shibsp/remoting/impl/AbstractRemotingService.cpp
+++ b/shibsp/remoting/impl/AbstractRemotingService.cpp
@@ -76,6 +76,10 @@ DDF AbstractRemotingService::send(const DDF& in, bool checkEvent) const
             ex.addProperty("operation", in.name());
         }
         const char* target = output.getmember("target").string();
+        if (!target) {
+            // Fall back to input target if present.
+            target = in.getmember("target").string();
+        }
         if (target) {
             ex.addProperty(AgentException::TARGET_PROP_NAME, target);
         }

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


More information about the commits mailing list