[
https://issues.jboss.org/browse/ARQ-1615?page=com.atlassian.jira.plugin.s...
]
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