Request headers are not passed to the play.http.actionCreator class post 2.8 upgrade #11880
-
Hi Team, We are using play framework which has custom filters which extends EssentialFilter and a play.http.actionCreator implementation. For Authentication it first hits custom filter which extends EssentialFilter and later our play.http.actionCreator implementation. this was working fine with older play versions, once after we upgrade to play 2.8, it is not carry forwarding headers automatically to Please help us to resolve , this became a blocker for our play upgrade. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
You mean you set headers in the filter? Can you please give some code examples what you do exactly? |
Beta Was this translation helpful? Give feedback.
-
@mkurz Thank you for your help. In one of our filters (which extends EssentialFilter) we are setting a custom header like this: If it is a stranded header like .withHeader(HEADER_CONTENT_SECURITY_POLICY, cspFilterValue); it is working fine. We uses Symantec SiteMinder for SSO authentication, whatever custom headers send by SiteMinder I am able to see in the Filter(s) class but they are not coming to the ActionCreator class. This was working fine in the play 2.3 and started failing after upgrade to 2.8 (since we don't have context now) This became a blocker for our release, appreciate your help. Thanks |
Beta Was this translation helpful? Give feedback.
-
@mkurz any inputs on the above? appreciate your help. Thanks |
Beta Was this translation helpful? Give feedback.
-
You're referring to the
OK, I think I'm understanding... You were originally on Play 2.3, and you were setting a response header using the request's |
Beta Was this translation helpful? Give feedback.
-
It sounds like this is an issue with your migration rather than a bug in Play, so I converted this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
@gmethvin Thank you so much for the help! I completely agree this is an issue with our migration, will try the suggestions provided by you and keep you posted. Once again thank you. Thanks |
Beta Was this translation helpful? Give feedback.
-
@gmethvin thank you so much for your inputs, the above suggestions really helped and resolved my problem, thanks again. |
Beta Was this translation helpful? Give feedback.
You're referring to the
withHeader
method on theResult
? When you return a result from the filter, your filter would have already called the action. I'm not sure where you're expecting to see the header.OK, I think I'm understanding... You wer…