Description
My team uses a custom subclass of ServletRedirectResult, e.g. "org.tdar.struts.ServletRedirectResult". After updating to 2.3.8 our messages no longer survive a redirect. I believe the problem lies with this section of MessageStorePreResultListener:
if (resultConfig != null) { isRedirect = ServletRedirectResult.class.getName().equals(resultConfig.getClassName()) || ServletActionRedirectResult.class.getName().equals(resultConfig.getClassName()); }
Per the discussion in WW-4605, the following change could likely resolve the issue:
if (resultConfig != null) { isRedirect = ServletRedirectResult.class.isAssignableFrom(Class.forName(resultConfig.getClassName())); }
Attachments
Issue Links
- relates to
-
WW-4605 Refactor MessageStoreInterceptor and use PreResultListener to store messages
- Closed