Affects Version/s: 7.1.X, Master
Component/s: WCM > Util > Nested Portlets
When a layout page template uses freemarker syntax and is applied to nested portlet, errors appear in log.
1. Create freemarker layout that creates a new variable and make something using a freemarker if statement and deploy it, inside the statement, set a new variable that prints "hello"
2. Add a nested portlet to a test page
3. Open the configuration of nested portlet and change layout to the new Freemarker layout
4. Observe the log for the exception
The layout is processed and shows "hello"
The exception shows a TemplateException caused by a ParseException as if the template were being processed with Velocity instead of Freemarker.
Can reproduce it on 7.1.x da92690e22b2eb998cd4961ac3908754b2144d47
Can reproduce it on master 2d6d860b8dcae0c13cdf8579d18ea89ceda2dd46