-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
None
-
-
Empty show more show less
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.
- is related to
-
MGNLSTK-568 Revert MGNLSTK-533 for 1.3
- Closed
-
MGNLSTK-727 Freemarker exception for demo-project when accessing as external user
- Closed
- is superseded by
-
MAGNOLIA-3472 Also handle UnsupportedOperationException for User implementation within the Freemarker model/wrapper when templates calls the getProperty method directly.
- Closed