[shibboleth-sp2] 92/119: Ensure outgoing errors are logged.

Ferenc Wágner wferi-guest at moszumanska.debian.org
Tue Jan 26 21:29:54 UTC 2016


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

wferi-guest pushed a commit to annotated tag 1.3.1
in repository shibboleth-sp2.

commit f227543eaf85d4c0a73019b8f34ad57b0387ac0d
Author: Scott Cantor <cantor.2 at osu.edu>
Date:   Wed Oct 24 17:45:49 2007 +0000

    Ensure outgoing errors are logged.
---
 shib-target/shib-target.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/shib-target/shib-target.cpp b/shib-target/shib-target.cpp
index e8f4384..340c390 100644
--- a/shib-target/shib-target.cpp
+++ b/shib-target/shib-target.cpp
@@ -311,9 +311,11 @@ pair<bool,void*> ShibTarget::doCheckAuthN(bool handler)
         return pair<bool,void*>(false,NULL);
     }
     catch (SAMLException& e) {
+        log(LogLevelError, e.what());
         mlp.insert(e);
     }
     catch (exception& e) {
+        log(LogLevelError, e.what());
         mlp.insert("errorText", e.what());
     }
 
@@ -402,6 +404,7 @@ pair<bool,void*> ShibTarget::doHandler(void)
         return m_priv->dispatch(this, sessionProps, true, binding.get());
     }
     catch (MetadataException& e) {
+        log(LogLevelError, e.what());
         mlp.insert(e);
         // See if a metadata error page is installed.
         const IPropertySet* props=m_priv->m_app->getPropertySet("Errors");
@@ -416,9 +419,11 @@ pair<bool,void*> ShibTarget::doHandler(void)
         }
     }
     catch (SAMLException& e) {
+        log(LogLevelError, e.what());
         mlp.insert(e);
     }
     catch (exception& e) {
+        log(LogLevelError, e.what());
         mlp.insert("errorText", e.what());
     }
 
@@ -500,9 +505,11 @@ pair<bool,void*> ShibTarget::doCheckAuthZ(void)
             return make_pair(true,returnDecline());
     }
     catch (SAMLException& e) {
+        log(LogLevelError, e.what());
         mlp.insert(e);
     }
     catch (exception& e) {
+        log(LogLevelError, e.what());
         mlp.insert("errorText", e.what());
     }
 
@@ -668,9 +675,11 @@ pair<bool,void*> ShibTarget::doExportAssertions(bool requireSession)
         return pair<bool,void*>(false,NULL);
     }
     catch (SAMLException& e) {
+        log(LogLevelError, e.what());
         mlp.insert(e);
     }
     catch (exception& e) {
+        log(LogLevelError, e.what());
         mlp.insert("errorText", e.what());
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git



More information about the Pkg-shibboleth-devel mailing list