History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STS-319
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Ben Gunter
Reporter: Ben Gunter
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Stripes

Request and response objects should be released when using flash scope

Created: 13/Dec/06 04:26 PM   Updated: 29/Mar/07 09:02 PM
Component/s: Context Management
Affects Version/s: Release 1.4.2
Fix Version/s: Release 1.4.3


 Description  « Hide
According to servlet spec 2.4, code should not use a request or response object outside the scope of a servlet's service method or filter's doFilter method. When an ActionBean is flashed, its ActionBeanContext holds a reference to the request and response it was assigned when the context was created and does not release that reference until the bean expires from the flash scope. This causes intermittent failures in code that uses the flash scope to flash ActionBeans.

 All   Comments   Change History      Sort Order:
Andrew Zielinski [08/Feb/07 02:03 AM]
This may explain the peculiar behaviour I experience after a RedirectResolution, which I have put in flash scope, to an action. Occasionally, well probably more than occasionally, the following would return null:

getRequest().getSession()


Ben Gunter [29/Mar/07 09:02 PM]
Flashed ActionBeans now have their contexts' request and response objects replaced with objects that are safe to use on the next request.