Fixed failing test

Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/db91db46
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/db91db46
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/db91db46

Branch: refs/heads/master
Commit: db91db46ea2d92e978b9e269247ae31d13509064
Parents: 921fd68
Author: Colm O hEigeartaigh <cohei...@apache.org>
Authored: Fri Apr 17 14:41:01 2015 +0100
Committer: Colm O hEigeartaigh <cohei...@apache.org>
Committed: Fri Apr 17 14:41:01 2015 +0100

----------------------------------------------------------------------
 .../service/idp/protocols/TrustedIdpSAMLProtocolHandler.java     | 4 ++++
 .../federation/samlsso/src/test/resources/entities-realma.xml    | 1 +
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/db91db46/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpSAMLProtocolHandler.java
----------------------------------------------------------------------
diff --git 
a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpSAMLProtocolHandler.java
 
b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpSAMLProtocolHandler.java
index 7b0a747..bab707a 100644
--- 
a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpSAMLProtocolHandler.java
+++ 
b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/protocols/TrustedIdpSAMLProtocolHandler.java
@@ -233,6 +233,10 @@ public class TrustedIdpSAMLProtocolHandler implements 
TrustedIdpProtocolHandler
     
     private String encodeAuthnRequest(Element authnRequest) throws IOException 
{
         String requestMessage = DOM2Writer.nodeToString(authnRequest);
+        
+        if (LOG.isDebugEnabled()) {
+            LOG.debug(requestMessage);
+        }
 
         DeflateEncoderDecoder encoder = new DeflateEncoderDecoder();
         byte[] deflatedBytes = 
encoder.deflateToken(requestMessage.getBytes("UTF-8"));

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/db91db46/systests/federation/samlsso/src/test/resources/entities-realma.xml
----------------------------------------------------------------------
diff --git a/systests/federation/samlsso/src/test/resources/entities-realma.xml 
b/systests/federation/samlsso/src/test/resources/entities-realma.xml
index e447349..04d9d52 100644
--- a/systests/federation/samlsso/src/test/resources/entities-realma.xml
+++ b/systests/federation/samlsso/src/test/resources/entities-realma.xml
@@ -97,6 +97,7 @@
         <property name="parameters">
             <util:map>
                 <entry key="sign.request" value="true" />
+                <entry key="support.deflate.encoding" value="true" />
             </util:map>
         </property>
     </bean>

Reply via email to