Deepak Dixit created OFBIZ-9537:
-----------------------------------
Summary: In case of reqeust redirect context filter override the
redirect parameter
Key: OFBIZ-9537
URL: https://issues.apache.org/jira/browse/OFBIZ-9537
Project: OFBiz
Issue Type: Bug
Affects Versions: 16.11.03, Trunk
Reporter: Deepak Dixit
Assignee: Deepak Dixit
In case of request redirect ContextFilter override the redirect parameter
Like if you use following pattern
{code}
<request-map uri="createTask">
<security https="true" auth="true"/>
<event type="service" invoke="createWorkEffort"/>
<response name="success" type="request-redirect" value="ViewWorkEffort">
<redirect-parameter name="workEffortId" from="workEffortParentId"/>
</response>
<response name="error" type="request" value="ViewWorkEffort"/>
</request-map>
{code}
In this case service creates new workEffort and put the newly created
workEffortId in requestAttribute,
but in response we are redirecting parentWorkEffortId as workEffortId,
so in this case context filter override the workEffortId that passed as
redirect parameter, and replace it with newly created workEffortId.
This is due to restoring all the redirected parameter instead of default one.
Need to restore only success/error message so redirected page can display
previous request's error msg etc.
This is handled in RequestHandler.java.
As in case of request redirect we pass the redirect parameter name so instead
of restoring all the previous redirected parameter restore only error/success
message related parameter.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)