Affects Version/s: 2.3.28, 2.3.29, 2.3.30
Fix Version/s: 2.5.12
I'm currently trying to upgrade Struts from V2.3.20 to V2.3.30.
Starting from V2.3.28, I'm having a yellow FreeMarker stack at the end of some pages. These pages have a <s:form> tag without "action" attribute.
Here is some part of the displayed error :
Here are the results of my research :
- When the method org.apache.struts2.components.Form.getValidators(String name) is called at the end of the page display, the "action" var is null.
- findString(action) is called, leading to org.apache.struts2.components.Component.findValue(String expr, Class toType) with expr=null
- Starting from V2.3.28, a new condition has been added to this method : if (ComponentUtils.containsExpression(expr)). This raises the NPE.
Is this a bug, or am I doing something wrong ?
Thanks in advance,