[arquillian-issues] [JBoss JIRA] (ARQ-1615) Warp JSF: detect and sanitize FacesContextWrapper chain

Lukáš Fryč (JIRA) issues at jboss.org
Thu Jan 9 06:25:34 EST 2014


    [ https://issues.jboss.org/browse/ARQ-1615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934655#comment-12934655 ] 

Lukáš Fryč commented on ARQ-1615:
---------------------------------

{code}
                while (facesContext instanceof FacesContextWrapper && !(facesContext instanceof WrappedFacesContext))
                    facesContext = ((FacesContextWrapper) facesContext).getWrapped();
                }

                LifecycleManager manager = LifecycleManagerStore.get(FacesContext.class, facesContext);
{code}
                
> Warp JSF: detect and sanitize FacesContextWrapper chain
> -------------------------------------------------------
>
>                 Key: ARQ-1615
>                 URL: https://issues.jboss.org/browse/ARQ-1615
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Extension - Warp
>    Affects Versions: warp_1.0.0.Alpha5
>            Reporter: Lukáš Fryč
>
> When there is a chain of {{FacesContextWrapper}}s then Warp's WrappedFacesContext might fail to be detected and Warp itself may fail.
> Use a while loop to iterate through wrappers in order to detect correct wrapper.
> Needs to be accompanied with a ftest.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list