You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/05/17 12:01:15 UTC

[jira] [Commented] (WW-4028) TokenSessionInterceptor can put non-serializable object into Session

    [ https://issues.apache.org/jira/browse/WW-4028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660532#comment-13660532 ] 

Lukasz Lenart commented on WW-4028:
-----------------------------------

The problem is in {{InvocationSessionStore}} which stores the whole {{ActionInvocation}} in Session. {{DefaultActionInvocation}} contains reference to {{Container}} class which isn't serialisable.

My idea is to add logic which will remove {{Container}} from {{ActionInvocation}} before storing it and sets it back when {{ActionInvocation}} will be restored from Session.
                
> TokenSessionInterceptor can put non-serializable object into Session
> --------------------------------------------------------------------
>
>                 Key: WW-4028
>                 URL: https://issues.apache.org/jira/browse/WW-4028
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.12
>            Reporter: Lukasz Lenart
>             Fix For: 2.3.15
>
>
> Related SO question:
> http://stackoverflow.com/questions/15569117/cannot-resolve-struts2-notserializableexception-even-after-update-to-2-3-12

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira