[
https://issues.apache.org/jira/browse/OFBIZ-1170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adrian Crum updated OFBIZ-1170:
-------------------------------
Attachment: FreeMarkerWorker.patch
The Freemarker community came through with a description of the correct way to
render a template in a multi-user/multi-threaded environment.
Attached patch uses the recommended template rendering process. See my comments
in the
renderTemplate(Template template, Map context, Writer outWriter)
method.
> FreeMarkerWorker class has a bug in its caching logic
> -----------------------------------------------------
>
> Key: OFBIZ-1170
> URL: https://issues.apache.org/jira/browse/OFBIZ-1170
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk, Release Branch 4.0
> Reporter: Adrian Crum
> Priority: Minor
> Attachments: FreeMarkerWorker.patch, FreeMarkerWorker.patch,
> FreeMarkerWorker.patch, FreeMarkerWorker.patch
>
>
> The FreeMarkerWorker class creates an instance of the Template class,
> initializes it with the current user's locale, then stores it in a cache.
> Other users will see the template rendered in the first user's locale,
> regardless of their locale setting.
> This can be demonstrated on the Hot Wax demo site in the WorkEffort calendar.
> Some elements in the screen are rendered in another locale, regardless of
> your current locale setting.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.