Affects Version/s: 18.104.22.168, 22.214.171.124
Fix Version/s: 2.3.7
struts2 version 2.2.1 (which uses OGNL 3.0)
freemarker version 2.3.19
I'm not entirely sure if my problem is Struts2 or OGNL related. So that you are aware, I have already created this issue in OGNL: https://issues.apache.org/jira/browse/OGNL-221
In any case, I would greatly appreciate you reading it through. My issue in its entirety again is as follows:
I have written a very simple Action, and freemaker template so that you can replicate my problem.
My Action is as follows:
It prepares a TreeMap with some entries having only a String key, and an empty String value.
The following freemarker template displays the keys, and allows the user to save a new value for each one:
Unfortunately, after entering new values for each key and submitting the form, the only keys that have values successfully saved are:
The following keys do NOT have values successfully saved:
Indeed the presence of such non-word characters breaks the OGNL parsing of the Map's String key.
To be sure no unwanted interception is occurring, I am using the most basic struts.xml configuration:
Thank you very much for your help.
With kind regards