[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-3037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Grégory Joseph resolved MAGNOLIA-3037.
--------------------------------------

    Resolution: Fixed

> 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]>
----------------------------------------------------------------

Reply via email to