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

Jan Haderka reopened MGNLSTK-1062:
----------------------------------


With the fix that was applied, url will be "?mgnlLogout" when user doesn't have 
access to the logout page. Is that correct? Does the logout still work? Will 
user stay on protected page after being logged out or will user get redirected 
to the login page? Shouldn't link be disabled completely in such case?

> Freemarker exceptions in link.ftl when user doesn't have permissions
> --------------------------------------------------------------------
>
>                 Key: MGNLSTK-1062
>                 URL: http://jira.magnolia-cms.com/browse/MGNLSTK-1062
>             Project: Magnolia Standard Templating Kit
>          Issue Type: Bug
>    Affects Versions: 2.0.7
>            Reporter: Roman Kovařík
>            Assignee: Roman Kovařík
>             Fix For: 2.0.9
>
>
> {noformat}
> Caused by: info.magnolia.rendering.engine.RenderException: 
> freemarker.core.InvalidReferenceException: Error on line 14, column 5 in 
> templating-kit/components/pur/link.ftl
> cmsfn.link('website', content.profilePage) is undefined.
> It cannot be assigned to profileLink
>       at 
> info.magnolia.rendering.renderer.FreemarkerRenderer.onRender(FreemarkerRenderer.java:88)
>       at 
> info.magnolia.rendering.renderer.AbstractRenderer.render(AbstractRenderer.java:139)
>       at 
> info.magnolia.module.templatingkit.renderers.STKRenderer.render(STKRenderer.java:75)
>       ... 168 more
> Caused by: freemarker.core.InvalidReferenceException: Error on line 14, 
> column 5 in templating-kit/components/pur/link.ftl
> cmsfn.link('website', content.profilePage) is undefined.
> It cannot be assigned to profileLink
>       at freemarker.core.Assignment.accept(Assignment.java:111)
>       at freemarker.core.Environment.visit(Environment.java:221)
>       at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
>       at freemarker.core.Environment.visit(Environment.java:221)
>       at freemarker.core.MixedContent.accept(MixedContent.java:92)
>       at freemarker.core.Environment.visit(Environment.java:221)
>       at freemarker.core.Environment.process(Environment.java:199)
>       at freemarker.template.Template.process(Template.java:237)
>       at 
> info.magnolia.freemarker.FreemarkerHelper.render(FreemarkerHelper.java:155)
>       at 
> info.magnolia.rendering.renderer.FreemarkerRenderer.onRender(FreemarkerRenderer.java:85)
>       ... 170 more
> {noformat}

-- 
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/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to