On 3/11/13 9:18 PM, David Coulson wrote:
Configuration is below. Short story is my rspirep Location header replacement is successful only ~20% of the time - I'm just testing w/ curl over and over. I saw mixed information about http-server-close and http-pretend-keepalive, but it didn't seem to make much difference. I am running 1.5-dev17 - I'm going to try to build and test the latest snapshot shortly.
I built 20130311 snapshot, and still experience the same issue - I thinned the configuration down to a single backend server and tried the rspirep in both the frontend and backend portion of the config.

Running haproxy in debug mode, I see on a failing request that the <backend>.srvhdr and <backend>.srvrep lines are missing from the output. Seems to be consistent, although there isn't an error that might indicate why those are missing. Is there an easy way to get more detailed debug output than this?


This works:
00000001:app.accept(0007)=0008 from [10.2.3.40:58527]
00000001:app.clireq[0008:ffff]: GET /console-selfservice/ExistingUser/Links.do?action=myAccount HTTP/1.1 00000001:app.clihdr[0008:ffff]: User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
00000001:app.clihdr[0008:ffff]: Host: apptest.domain.com
00000001:app.clihdr[0008:ffff]: Accept: */*
00000001:app-console-selfservice.srvrep[0008:0009]: HTTP/1.1 302 Moved Temporarily 00000001:app-console-selfservice.srvhdr[0008:0009]: Cache-Control: no-cache="set-cookie"
00000001:app-console-selfservice.srvhdr[0008:0009]: Connection: close
00000001:app-console-selfservice.srvhdr[0008:0009]: Date: Tue, 12 Mar 2013 10:49:33 GMT 00000001:app-console-selfservice.srvhdr[0008:0009]: Transfer-Encoding: chunked 00000001:app-console-selfservice.srvhdr[0008:0009]: Location: https://rhesprodapp01.domain.com:7004/IMS-AA-IDP/sso/logon?RequestID=5e3830f4d834fa0a1d479e49f73a2b7d&MajorVersion=1&MinorVersion=2&IssueInstant=2013-03-12T10%3A49%3A33&ProviderID=urn%3Acom%3Arsasecurity%3A2004%3A10%3Asso%3Aprovider%3Aconsole-selfservice-provider&IsPassive=false&AuthnContextClassRef=urn%3Acom%3Arsasecurity%3A2004%3A08%3Aauthn%3Apolicy%3Ac56399a2749110ac00d44d644862f5b2%20urn%3Acom%3Arsasecurity%3A2006%3A08%3Aauthn%3Asessionlifetime%3A000000000000000000001000c0027099&AuthnContextComparison=exact&RelayState=aHR0cHM6Ly9yaGVzcHJvZHJzYTAxLnN0ZXJsaW5nLmNvbTo3MDA0L2NvbnNvbGUtc2VsZnNlcnZpY2UvRXhpc3RpbmdVc2VyL0xpbmtzLmRvP2FjdGlvbj1teUFjY291bnQ%3D&rsa%3AClientAddress=10%2E250%2E52%2E241&SigAlg=http%3A%2F%2Fwww%2Ew3%2Eorg%2F2000%2F09%2Fxmldsig%23app-sha1&Signature=PcVtsFezCv2FFj8YkYBHL2S5ji6r5uqKXJMu4MwtP9YQt3f7SZ4nyCp5dyt7Kq01OEgGn4JMLruSM644xHV2YMNI3PWq4U1D3%2FMsAJubWq9PDNAmT3mlZ3zFYwi %2Fy5ja4ukgeK9FN9EA0XtUqxZWP%2Fy4K%2B9eSMe50JpYrstXrpQ%3D 00000001:app-console-selfservice.srvhdr[0008:0009]: Set-Cookie: ims-aa-idp-jsessionid=W6TkR1LdNs1mZG12vRZV2KVP5tvBhJqFMY1F5WPM1cNpkHnltPx8!-2128245804; path=/console-selfservice; secure 00000001:app-console-selfservice.srvhdr[0008:0009]: X-Powered-By: Servlet/2.5 JSP/2.1
00000001:app-console-selfservice.srvcls[0008:0009]
00000001:app-console-selfservice.clicls[0008:0009]
00000001:app-console-selfservice.closed[0008:0009]

rspirep doesn't work here:
00000003:app.accept(0007)=0008 from [10.2.3.40:58554]
00000003:app.clireq[0008:ffff]: GET /console-selfservice/ExistingUser/Links.do?action=myAccount HTTP/1.1 00000003:app.clihdr[0008:ffff]: User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
00000003:app.clihdr[0008:ffff]: Host: apptest.domain.com
00000003:app.clihdr[0008:ffff]: Accept: */*
00000003:app-console-selfservice.srvcls[0008:0009]
00000003:app-console-selfservice.clicls[0008:0009]
00000003:app-console-selfservice.closed[0008:0009]

David

Reply via email to