myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Curtiss Howard (JIRA)" <>
Subject [jira] Updated: (MYFACES-1975) HtmlResponseStateManager.getSavedState() should handle javax.faces.ViewState=""
Date Thu, 18 Sep 2008 16:24:44 GMT


Curtiss Howard updated MYFACES-1975:

    Status: Patch Available  (was: Open)

> HtmlResponseStateManager.getSavedState() should handle javax.faces.ViewState=""
> -------------------------------------------------------------------------------
>                 Key: MYFACES-1975
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 1.2.3
>         Environment: Any
>            Reporter: Curtiss Howard
>            Priority: Minor
>   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:
> 	at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(
> 	at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(
> 	at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(
> 	at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getTreeStructureToRestore(
> 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.

View raw message