Skip to Content.
Sympa Menu

mace-opensaml-users - Re: java-opensaml2 JUnit failure - org.opensaml.saml1.binding.decoding.HTTPPostDecoderTest

Subject: OpenSAML user discussion

List archive

Re: java-opensaml2 JUnit failure - org.opensaml.saml1.binding.decoding.HTTPPostDecoderTest


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: java-opensaml2 JUnit failure - org.opensaml.saml1.binding.decoding.HTTPPostDecoderTest
  • Date: Fri, 08 Feb 2008 23:24:28 -0500

No, the decoder was wrong.  "TARGET" is correct for SAML 1.  Looks like cut-and-paste error from the SAML 2 POST decoder, which uses "RelayState".  Now fixed.


Clifford Johnson wrote:

The single test case in this class fails (in my environment) with the following details:

 

org.opensaml.saml1.binding.decoding.HTTPPostDecoderTest#testDecode

 

junit.framework.ComparisonFailure: expected:<relay> but was:<null>

    at org.opensaml.saml1.binding.decoding.HTTPPostDecoderTest.testDecode(HTTPPostDecoderTest.java:47)

 

The failure is the result of BasicSAMLMessageContext.getRelayState method returning null instead of the expected value.  The expected value is set in a “TARGET” parameter.  Should this be the “RelayState” parameter instead (which is where HTTPPostDecoder expects to find it)?

 

Clifford

 



  • Re: java-opensaml2 JUnit failure - org.opensaml.saml1.binding.decoding.HTTPPostDecoderTest, Brent Putman, 02/08/2008

Archive powered by MHonArc 2.6.16.

Top of Page