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 2011/05/11 02:01:47 UTC

[jira] [Created] (MYFACESTEST-48) MockResponseStateManager is not symetric

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


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

[jira] [Resolved] (MYFACESTEST-48) MockResponseStateManager is not symetric

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ 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