Type: Regression Bug
Resolution: Won't Fix
Affects Version/s: 7.0.0 DXP FP92, 7.0.X, 7.1.10 DXP FP18, 7.1.X, 7.2.10 DXP FP6, 7.2.X, Master
Fix Version/s: None
1. Setup a plain Liferay bundle
2. Startup the server and login to the portal
3. Create a new structure and configure any field in it
4. Create a new template based on the above structure and add following lines of code in the template:
5. Go to Control Panel > System Settings > Platform > Template Engines > Freemarker Engine , and delete the configured restriction for the variable "staticUtil".
6. Create a new web content based on the structure/template created earlier and display it on a page via a WCD portlet.
7. Assert that the content doesn't render and the following Freemarker error is seen on the page:
The error with Fix Pack 6 is reproducible on 7.2.x @ f71caa4a2295eeb04f86d013c91884a36fd47f9561855bbe3496ae844e65add9 and master @ 7456baa3c43b0b99045a078309a57fa9e38bd3e8cb72be25406a7a8c168c9adf
When facing the error on Fix Pack 6, using:
as per https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_upper_case will work.
Also Fix Pack 5 is working without issues.