[
http://jira.magnolia-cms.com/browse/MGNLSTK-533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=25812#action_25812
]
Rico Jansen commented on MGNLSTK-533:
-------------------------------------
That will do the trick.
About implementing my own ExternalUser subclass, it looks that would imply
creating my own ExternalUserManager as well.
Which would require some ldap support class to do the extra attribute fetches.
> pur integration in templating kit breaks with external users.
> -------------------------------------------------------------
>
> Key: MGNLSTK-533
> URL: http://jira.magnolia-cms.com/browse/MGNLSTK-533
> Project: Magnolia Standard Templating Kit
> Issue Type: Bug
> Components: paragraphs
> Reporter: Rico Jansen
> Assignee: Philipp Bärfuss
>
> I have an issue with an exception that occurs when I log in with an LDAP
> account,
> the adminInterface works fine , but the site gives an exception:
> 2009-11-20 11:00:31,969 ERROR freemarker.runtime
> :
> Method public java.lang.String
> info.magnolia.cms.security.ExternalUser.getProperty(java.lang.String) threw
> an exception when invoked on info.magnolia.cms.security.externalu...@11fde0
> The problematic instruction:
> ----------
> ==> assignment: userFullName=ctx.user.getProperty("title")!userName [on line
> 4, column 1 in templating-kit/paragraphs/pur/link.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.template.TemplateModelException: Method public java.lang.String
> info.magnolia.cms.security.ExternalUser.getProperty(java.lang.String) threw
> an exception when invoked on info.magnolia.cms.security.externalu...@11fde0
> at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130)
> at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
> at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
> at
> freemarker.core.DefaultToExpression._getAsTemplateModel(DefaultToExpression.java:100)
> Caused by: java.lang.UnsupportedOperationException: not implemented for this
> ExternalUser
> at
> info.magnolia.cms.security.ExternalUser.getProperty(ExternalUser.java:155)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> It seems that the / templating-kit/paragraphs/pur/link.ftl tries to get the
> fullname from an external user:
> [#assign userFullName = ctx.user.getProperty("title")!userName]
> But ExternalUser has this as
> its getProperty:
> public String getProperty(String propertyName) {
> throw new UnsupportedOperationException("not implemented for this
> ExternalUser");
> }
> I am currently runing Magnolia Enterprise Edition 4.1RC1 and
> Templating Kit Standard 1.2RC2 , Extended 1.2RC1
--
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]>
----------------------------------------------------------------