From 2b23fb86e346ed4a6cadd182384873245ec41a6c Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Fri, 3 Nov 2006 23:16:01 +0000 Subject: [PATCH] Log inflated data. --- saml/saml2/binding/impl/SAML2RedirectDecoder.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp b/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp index 15a1e53..9efd6e4 100644 --- a/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp +++ b/saml/saml2/binding/impl/SAML2RedirectDecoder.cpp @@ -98,17 +98,18 @@ XMLObject* SAML2RedirectDecoder::decode( throw BindingException("Unable to decode base64 in Redirect binding message."); // Now we have to inflate it. - stringstream str; - if (inflate((char*)decoded, x, str)==0) { + stringstream s; + if (inflate((char*)decoded, x, s)==0) { XMLString::release(&decoded); throw BindingException("Unable to inflate Redirect binding message."); } - + if (log.isDebugEnabled()) + log.debug("decoded SAML message:\n%s", s.str().c_str()); XMLString::release(&decoded); // Parse and bind the document into an XMLObject. DOMDocument* doc = (m_validate ? XMLToolingConfig::getConfig().getValidatingParser() - : XMLToolingConfig::getConfig().getParser()).parse(str); + : XMLToolingConfig::getConfig().getParser()).parse(s); XercesJanitor janitor(doc); auto_ptr xmlObject(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true)); janitor.release(); -- 2.1.4