Sunday, November 06, 2011

Solution for HTTP 500 Error SAMLResponse Problem

solution for SAMLResponse Problem, tetris collage, by itceremony.blogspot.comCollage: A solution for SAMLResponse problem
Image credit: Tetris puzzle
2011 @ itceremony.blogspot.com

I have spent a few days debugging a problem while scripting a login with the OpenSSO using VUGen Load Runner. No matter what I did, I would get an HTTP 500 error with Java exceptions that points to a SAMLResponse problem.

Analysis of initial recorded (not correlated value) showed presence of "\r\n" characters inside of the SAML response. Meanwhile it would show as "&#xa:" in HTML script or "%0A%0D" in URL protocols.

Finally, it dawned on me that those characters were generated by the IDP and should be in the request, but only in proper encoding. Once I recorded in HTML and converted a picked correlated value to TargetSourcing="PLAIN" in web_convert_param() function, everything started to work.

Hope it helps those poor souls that like me spend hours looking for solution on the Net.

Labels: , , , , ,

Valid XHTML 1.0!