+++ This bug was initially created as a clone of Bug #1131582 +++
Description of problem:
PickletLink IdP Filter eating cookies added to response by other filters
Steps to Reproduce:
1. create a filter that adds a cookie to the httpServletResponse (response.addCookie(...))
2. ensure that you are using IDPfilter
Regardless of which is mapped first (cookie filter or idpFilter), the cookies you add to the response will not be returned to the browser. Simply commenting out the IdPFilter mapping will allow the cookies to be properly returned to the browser.
This behavior appears to happen without regard to the presence of a SAML assertion in the incoming request (ie. it doesn't matter if you directly access the IdP or are redirected there from a trusted SP).
Pedro Igor <firstname.lastname@example.org> updated the status of jira PLINK-529 to Resolved
I believe this should be fixed by the SP11 upgrade in 1123426
The fix does not work for me. For JBoss EAP 6.4.0.DR4:
* a test filter is called twice (unlike JBoss EAP 6.3.0)
* cookies created in the filter are not returned to the browser for base URI (like JBoss EAP 6.3.0)
See BZ 1133099. Backport of PLINK-558 helped. There is manual reproducer available.
BZ 1123426 (Upgrade PicketLink from 2.5.3.SP10-redhat-1 to 2.5.3.SP11-x) is verified but included commits are in wrong order. PLINK-558 commit is the important one and should be placed as the last one.
Verified for JBoss EAP 6.4.0.DR7, like BZ 1122717.