spring-webflow
spring-webflow copied to clipboard
Trinidad's CoreResponseStateManager can't restore the serialized view in a "redirect after post" request [SWF-1460]
Volker Malzahn opened SWF-1460 and commented
In a "redirect after post" GET request CoreResponseStateManager._restoreSerializedView tries to restore the view but fails because the expected request parameter "javax.faces.ViewState" is missing (a NPE is thrown). I have tried to add "javax.faces.ViewState" by myself by overwriding FilenameFlowUrlHandler.createFlowExecutionUrl but then the GET request executes the use event again because org.springframework.faces.webflow.JsfView.userEventQueued() returns true (and the request was interpreted as postBack - I don't know if that makes trouble in the GET request).
What is the correct way to give Trinidad a chance to restore the view but without interpreting the GET redirect request as the original POST request?
Affects: 2.3.0