[
http://jira.magnolia-cms.com/browse/MGNLSTK-615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Bärfuss reopened MGNLSTK-615:
-------------------------------------
Assignee: Philipp Bärfuss (was: Ondřej Chytil)
The current fix breaks the version view as the versioned content hides the fact
that it resides in the version store. We should only execute the creation of
the node to the system context.
We should also change the code related to the creation of the main and extra
area
* SingletonParagraphTemplateModel.execute()
> info.magnolia.cms.security.AccessDeniedException resulting in
> freemarker.template.TemplateModelException
> --------------------------------------------------------------------------------------------------------
>
> Key: MGNLSTK-615
> URL: http://jira.magnolia-cms.com/browse/MGNLSTK-615
> Project: Magnolia Standard Templating Kit
> Issue Type: Bug
> Affects Versions: 1.3
> Reporter: Jules S.
> Assignee: Philipp Bärfuss
> Fix For: 1.3.x
>
> Attachments: MAGNOLIA-3184-stacktrace.txt
>
>
> This error is also visible on magnolia website. Please look at
> http://www.magnolia-cms.com/home/our-company/news/press-releases/old-press-releases/magnolia-4-0-released.html
> Maybe the affected nested document level is a noticable information for you.
> The error occurs at 6th document level, so does mine.
> Is there any need to access the mentioned "extra" object?
> My personal error stack trace is the following:
> FreeMarker template error!
> get(extras) failed on instance of
> info.magnolia.module.templatingkit.templates.STKTemplateModel
> The problematic instruction:
> ----------
> ==> list model.extras.column[columnIndex] as extra [on line 17, column 5
> in templating-kit/templates/global/extrasArea.ftl]
> in user-directive extrasColumn [on line 13, column 5 in
> templating-kit/templates/global/extrasArea.ftl]
> in include def.extrasArea.template [on line 52, column 25 in
> templating-kit/templates/main.ftl]
> ----------
> Java backtrace for programmers:
> ----------
> freemarker.template.TemplateModelException: get(extras) failed on instance of
> info.magnolia.module.templatingkit.templates.STKTemplateModel
> at freemarker.ext.beans.BeanModel.get(BeanModel.java:223)
> at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
> [...]
> Caused by: info.magnolia.cms.security.AccessDeniedException: User not allowed
> to (Add, Set, Read) path [/level1/level2/level3/level4/level5/level6/extras]
> at info.magnolia.cms.core.Access.isGranted(Access.java:64)
> at
> info.magnolia.cms.core.DefaultContent.<init>(DefaultContent.java:156)
> at
> info.magnolia.cms.core.DefaultContent.createContent(DefaultContent.java:194)
> at
> info.magnolia.cms.util.ContentWrapper.createContent(ContentWrapper.java:188)
> at
> info.magnolia.cms.core.AbstractContent.createContent(AbstractContent.java:75)
> at
> info.magnolia.cms.util.ContentUtil.getOrCreateContent(ContentUtil.java:195)
> at
> info.magnolia.module.templatingkit.templates.ExtrasAreaModel$1.exec(ExtrasAreaModel.java:71)
> at
> info.magnolia.module.templatingkit.templates.ExtrasAreaModel$1.exec(ExtrasAreaModel.java:70)
> at
> info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:396)
> at
> info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:371)
> at
> info.magnolia.module.templatingkit.templates.ExtrasAreaModel.<init>(ExtrasAreaModel.java:69)
> at
> info.magnolia.module.templatingkit.templates.STKTemplateModel.getExtras(STKTemplateModel.java:148)
> ... 129 more
--
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]>
----------------------------------------------------------------