You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2009/05/22 04:12:45 UTC

[jira] Updated: (MYFACES-1975) HtmlResponseStateManager.getSavedState() should handle javax.faces.ViewState=""

     [ https://issues.apache.org/jira/browse/MYFACES-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe updated MYFACES-1975:
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.7-SNAPSHOT
                   1.1.7-SNAPSHOT
         Assignee: Leonardo Uribe
           Status: Resolved  (was: Patch Available)

Thanks to Curtiss Howard for provide this patch.

> HtmlResponseStateManager.getSavedState() should handle javax.faces.ViewState=""
> -------------------------------------------------------------------------------
>
>                 Key: MYFACES-1975
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1975
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 1.2.3
>         Environment: Any
>            Reporter: Curtiss Howard
>            Assignee: Leonardo Uribe
>            Priority: Minor
>             Fix For: 1.1.7-SNAPSHOT, 1.2.7-SNAPSHOT
>
>         Attachments: MYFACES-1975.patch
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> HtmlResponseStateManager.getSavedState() does not seem to handle the request attribute "javax.faces.ViewState" being an empty string.  That is to say, when the request attribute does not exist, a new state is created, but otherwise an attempt is made to reconstruct the view state.  In the case that the attribute is an empty string, you'll get an exception similar to the following:
> javax.faces.FacesException: java.io.EOFException
> 	at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(StateUtils.java:350)
> 	at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:246)
> 	at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(HtmlResponseStateManager.java:188)
> 	at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getTreeStructureToRestore(HtmlResponseStateManager.java:149)
> This does not occur on the Sun RI implementation (i.e., it returns a new state in this case), and I think due to this being an issue that should be handled (and a trivial change to boot) that it should be fixed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.