myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <>
Subject [jira] [Created] (MYFACESTEST-48) MockResponseStateManager is not symetric
Date Wed, 11 May 2011 00:01:47 GMT
MockResponseStateManager is not symetric

                 Key: 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:

            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:

View raw message