[Hippo-cms7-user BETA] adding a document

(Berry) A.W. van Halderen b.vanhalderen at hippo.nl
Mon Jul 28 09:44:42 CEST 2008


On Fri, Jul 25, 2008 at 05:26:29PM +0200, Jettro Coenradie wrote:
> Hi all,
> to me it seems logical I can add a document as an "author". This is  
> what happens when I do it.


Adding a document in a folder, like /content/articles requires write-permissions
to the folder by an author.  The articles folder has however I think not been
given those rights.  That needs looking into, as giving write permissions
also means giving the right the mess around in the folder.

The message could have been a lot clearer, I admit.

\Berry

> 
> 
> 
> The message is also a bit strange, cannot modify while I am adding  
> something new. This is the exception.
> 
> javax.jcr.AccessDeniedException: /content/articles/hippo:paths: not  
> allowed to modify item
> 	at  
> org 
> .apache.jackrabbit.core.ItemImpl.validateTransientItems(ItemImpl.java: 
> 486)
> 	at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1202)
> 	at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:896)
> 	at  
> org 
> .hippoecm 
> .repository.decorating.SessionDecorator.save(SessionDecorator.java:216)
> 	at  
> org 
> .hippoecm.repository.impl.SessionDecorator.save(SessionDecorator.java: 
> 140)
> 	at  
> org 
> .hippoecm 
> .repository 
> .standardworkflow.FolderWorkflowImpl.add(FolderWorkflowImpl.java:198)
> 	at  
> org 
> .hippoecm 
> .repository 
> .standardworkflow.FolderWorkflowImpl.add(FolderWorkflowImpl.java:134)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at  
> sun 
> .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
> 39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
> 25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.hippoecm.repository.impl.WorkflowManagerImpl 
> $WorkflowInvocationHandler.invoke(WorkflowManagerImpl.java:437)
> 	at $Proxy7.add(Unknown Source)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at  
> sun 
> .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
> 39)
> 	at  
> sun 
> .reflect 
> .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
> 25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at 
> 	sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> 	at sun.rmi.transport.Transport$1.run(Transport.java:153)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> 	at  
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
> 	at sun.rmi.transport.tcp.TCPTransport 
> $ConnectionHandler.run(TCPTransport.java:707)
> 	at java.lang.Thread.run(Thread.java:613)
> 	at  
> sun 
> .rmi 
> .transport 
> .StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
> 	at  
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java: 
> 223)
> 	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> 	at  
> java 
> .rmi 
> .server 
> .RemoteObjectInvocationHandler 
> .invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
> 	at  
> java 
> .rmi 
> .server 
> .RemoteObjectInvocationHandler 
> .invoke(RemoteObjectInvocationHandler.java:132)
> 	at $Proxy7.add(Unknown Source)
> 	at  
> org 
> .hippoecm 
> .frontend 
> .plugins 
> .standardworkflow 
> .FolderWorkflowDialog.execute(FolderWorkflowDialog.java:106)
> 	at  
> org 
> .hippoecm 
> .frontend.dialog.AbstractWorkflowDialog.ok(AbstractWorkflowDialog.java: 
> 112)
> 	at org.hippoecm.frontend.dialog.AbstractDialog 
> $1.onClick(AbstractDialog.java:65)
> 	at org.apache.wicket.ajax.markup.html.AjaxLink 
> $1.onEvent(AjaxLink.java:65)
> 	at  
> org 
> .apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java: 
> 163)
> 	at  
> org 
> .apache 
> .wicket 
> .ajax 
> .AbstractDefaultAjaxBehavior 
> .onRequest(AbstractDefaultAjaxBehavior.java:293)
> 	at  
> org 
> .apache 
> .wicket 
> .request 
> .target 
> .component 
> .listener 
> .BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:100)
> 	at  
> org 
> .apache 
> .wicket 
> .request 
> .AbstractRequestCycleProcessor 
> .processEvents(AbstractRequestCycleProcessor.java:91)
> 	at  
> org 
> .apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java: 
> 1171)
> 	at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
> 	at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
> 	at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
> 	at  
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java: 
> 387)
> 	at  
> org 
> .apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java: 
> 199)
> 	at org.mortbay.jetty.servlet.ServletHandler 
> $CachedChain.doFilter(ServletHandler.java:1084)
> 	at  
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
> 	at  
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 
> 216)
> 	at  
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 	at  
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 
> 405)
> 	at  
> org 
> .mortbay 
> .jetty 
> .handler.ContextHandlerCollection.handle(ContextHandlerCollection.java: 
> 206)
> 	at  
> org 
> .mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 
> 114)
> 	at  
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:324)
> 	at 
> 	org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505)
> 	at org.mortbay.jetty.HttpConnection 
> $RequestHandler.headerComplete(HttpConnection.java:829)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> 	at  
> org 
> .mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 
> 395)
> 	at org.mortbay.thread.QueuedThreadPool 
> $PoolThread.run(QueuedThreadPool.java:488)
> 
> 
> 
> groeten Jettro
> 
> Jettro Coenradie - jettro at jteam.nl - http://www.jteam.nl - linkedin
> Phone: +31(0)20 486 20 36 Fax: +31(0)20 475 08 28 Mobile: +31(0)6 3473  
> 9912
> Frederiksplein 1 - 1017 XK - Amsterdam - The Netherlands
> 

> _______________________________________________
> Hippo-cms7-user mailing list
> Hippo-cms7-user at lists.hippo.nl
> http://lists.hippo.nl/mailman/listinfo/hippo-cms7-user


-- 
Berry A.W. van Halderen       b.vanhalderen at onehippo.com / berry at halderen.net
Disclaimer: the above is the author's personal opinion and is not the opinion
or policy of his employer or of the little green men that have been following
him all day.



More information about the Hippo-cms7-user mailing list