[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28360#action_28360
]
Hudson CI server commented on MAGNOLIA-3190:
--------------------------------------------
Integrated in !http://hudson.magnolia-cms.com/nocacheImages/16x16/blue.gif!
[magnolia_main-trunk
#1597|http://hudson.magnolia-cms.com/job/magnolia_main-trunk/1597/]
(fixed test for MAGNOLIA-3190)
MAGNOLIA-3190:
* MagnoliaObjectWrapper now holds a reference to FreemarkerConfig instead of
usings its singleton.
* Freemarker instanciates MagnoliaObjectWrapper instead of using
ComponentsProvider
* Removed MagnoliaObjectWrapper property from {{mgnl-beans.properties}} : if
you used a custom MagnoliaObjectWrapper, you'll need to subclass and configure
your custom FreemarkerConfig instead.
> Freemarker: incomplete configuration of sharedVariables results in
> StackOverflowError
> -------------------------------------------------------------------------------------
>
> Key: MAGNOLIA-3190
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3190
> Project: Magnolia
> Issue Type: Bug
> Components: freemarker
> Affects Versions: 4.3.1
> Reporter: Grégory Joseph
> Assignee: Grégory Joseph
> Fix For: 4.3.x
>
>
> While configuring {{/server/rendering/freemarker/sharedVariables}}, one can
> enter an endless loop, quickly resulting in a StackOverflowError; this
> happens, for instance, when adding a node under sharedVariables, and not
> filling it in it with a class attribute. The error only shows up on startup,
> so if the configuration is complete and correct before restarting Magnolia,
> one should be safe.
> The reason this happens is because {{FreemarkerConfig#addSharedVariable}}
> needs an instance of {{ObjectWrapper}}, and in turns, our
> {{MagnoliaObjectWrapper}} needs an instance of FreemarkerConfig, which it
> gets via {{Components}} Since Content2Bean calls addSharedVariable() before
> FreemarkerConfig is registered in {{Components}}, this results in a stack
> overflow.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------