[cpp-sp] branch main updated: Logging tweak.

Codeberg noreply at shibboleth.net
Tue Sep 22 19:11:10 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/538a97461e43a33a3b2f1787f218dcbe0d0d7a9d

The following commit(s) were added to refs/heads/main by this push:
     new 538a9746 Logging tweak.
538a9746 is described below

commit 538a97461e43a33a3b2f1787f218dcbe0d0d7a9d
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Sep 22 15:10:56 2026 -0400

    Logging tweak.
---
 shibsp/session/impl/AbstractSessionCache.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/shibsp/session/impl/AbstractSessionCache.cpp b/shibsp/session/impl/AbstractSessionCache.cpp
index f7cbb46b..239c9cf4 100644
--- a/shibsp/session/impl/AbstractSessionCache.cpp
+++ b/shibsp/session/impl/AbstractSessionCache.cpp
@@ -517,7 +517,12 @@ unique_lock<Session> AbstractSessionCache::_find(
 #ifdef _DEBUG
         log(DEBUG_MARK, "_find released cache lock");
 #endif
-        log(DEBUG_MARK, "session (%s) found locally, validating for use", key);
+        if (enforcePolicy) {
+            log(DEBUG_MARK, "session (%s) found locally, validating for use", key);
+        }
+        else {
+            log(DEBUG_MARK, "session (%s) found locally, skipping policy checks", key);
+        }
 
         // Cross-check application and check version for currency.
         if (strcmp(applicationId, session.mutex()->getApplicationID())) {
@@ -644,6 +649,8 @@ bool AbstractSessionCache::update(SPRequest& request, unique_lock<Session>& sess
 {
     // On input we hold an exclusive lock on the relevant session.
 
+    DDF newData;
+
     try {
         // Validate and reformat attribute data.
         const AttributeConfiguration& attrConfig = request.getAgent().getAttributeConfiguration(

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


More information about the commits mailing list