[
https://issues.apache.org/jira/browse/MYFACESTEST-48?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACESTEST-48.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.0.3-SNAPSHOT
> MockResponseStateManager is not symetric
> ----------------------------------------
>
> Key: MYFACESTEST-48
> URL: https://issues.apache.org/jira/browse/MYFACESTEST-48
> Project: MyFaces Test
> Issue Type: Bug
> Components: Mock Objects
> Affects Versions: 1.0.2
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
> Fix For: 1.0.3-SNAPSHOT
>
>
> There is a bug on MockResponseStateManager when it tries to decode a token.
> Right now, reconstruct looks like this:
> private Object reconstruct(FacesContext facesContext, String encodedState)
> throws IOException
> {
> byte[] bytes = encodedState.getBytes(ZIP_CHARSET);
> but it should be append this code:
> try
> {
> bytes = new _Hex().decode(bytes);
> }catch(Exception e)
> {
> throw new IOException(e.getMessage());
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira