Hi Vincent, Nils,
Thank you both for your replies!
Before posting here I did look into ImportAssetZipCommand.createAsset myself
and assembled some code that compiled, but threw an access denied exception at
runtime. Which, unfortunatelly, is what happens at line
[code]final Node resourceNode = JcrUtils.getOrAddNode(...)[/code]
above too:
[code]javax.jcr.AccessDeniedException: Access denied.
at
org.apache.jackrabbit.core.security.DefaultAccessManager.checkPermission(DefaultAccessManager.java:193)
at
org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1267)[/code]
So I have my own Spring DispatcherServlet defined in the <servlets> section of
my Magnolia module's XML descriptor. I'm not going through any Magnolia page /
components nor though the admincentral login, though some part of the Magnolia
filter chain does get executed. I figure the exception might have to do with my
particular setup / servlet, though I can browse assets just fine in the same
request / Spring controller.
In any case, this is another Magnolia odity that again makes me want to switch
to a different CMS..
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=8a22aaec-21e8-487a-b0ee-319409bd4fdb
----------------------------------------------------------------
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: <[email protected]>
----------------------------------------------------------------