Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0.0-core
-
None
-
None
Description
DocumentRenderer.encodeAll has the following code:
StateManager sm = context.getApplication().getStateManager();
if (sm instanceof StateManagerImpl)
{ // do real work }else
{ // log error and return }This means Trinidad fails in an environment in which its wrapped – such as the Portlet Bridge – even though its StateManager is in use. Instead the code should test for whether its StateManagerImpl and if not recursively test to see if its a StateManagerWrapper. For each wrapper it finds it calls .getWrapped and runs the test again.