Question

Virtusa - Polaris
NL
Last activity: 31 Jan 2019 7:07 EST
pxHTTPServletResponse is returning null in Authentication activity in Pega 7.3.1
In custom Authentication, I am getting access to any parameter in request object by code @java("((javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject(\"pxHTTPServletRequest\")).getHeader (\"<ANY PARAMETER\")").
However when to access response object in the same authentication activity, it always returns null.
javax.servlet.http.HttpServletResponse resp = (javax.servlet.http.HttpServletResponse) tools.getRequestor().getRequestorPage().getObject("pxHTTPServletResponse");
the above snippet returns null value.
Is it bug in Pega 7.3.1?