[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=26222#action_26222
]
Hudson CI server commented on MAGNOLIA-3037:
--------------------------------------------
Integrated in !http://hudson.magnolia-cms.com/nocacheImages/16x16/blue.gif!
[magnolia_main-trunk
#1265|http://hudson.magnolia-cms.com/job/magnolia_main-trunk/1265/]
MAGNOLIA-3037 handle UnsupportedOperationException for User implementation
within the Freemarker model/wrapper
> Handle UnsupportedOperationException for User implementation within the
> Freemarker model/wrapper
> ------------------------------------------------------------------------------------------------
>
> Key: MAGNOLIA-3037
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3037
> Project: Magnolia
> Issue Type: Improvement
> Components: core
> Reporter: Grégory Joseph
> Assignee: Grégory Joseph
> Fix For: 4.3
>
>
> When Freemarker templates attempt to output properties out of
> {{info.magnolia.cms.security.User}} instances which throw
> {{UnsupportedOperationException}}s (typically
> {{info.magnolia.cms.security.ExternalUser}}), this results in ugly exceptions
> thrown all over the place. Since templates should anyway be aware of this and
> provide fallback behaviour, our Freemarker wrapper for User could handle
> those exceptions, giving templates the chance to handle absent properties.
> They should be able to do {{user.myProperty!'default value'}}, for example.
--
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]>
----------------------------------------------------------------