AnsweredAssumed Answered

Failed to execute script

Question asked by jenn_l on Jun 23, 2009
Latest reply on Dec 1, 2009 by jenn_l
Hoi all,

I want to execute a script,which it is placed under the Datadictionary / Scripts space. All users have coordinator roles to this space.
When I tried to upload a file to a space where the script must be executed (inbound rule), I get an error on my webclient saying the following:

Please correct the errors below then click OK.
A system error happened during the operation: Failed to execute script 'workspace://SpacesStore/c12d494c-5720-4598-a5a6-1c658f27b6d7': Access Denied. You do not have the appropriate permissions to perform this operation.


The node here above refers to the javascript, which is located in the Data dictionary / Scripts.

The error on my catalina.out :
ogs]$ tail -f catalina.out
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:449)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:224)
        … 91 more
Caused by: net.sf.acegisecurity.AccessDeniedException: Access is denied.
        at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
        at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
        at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        … 118 more
15:55:58,932 User:jubithana ERROR [ui.common.Utils] A system error happened during the operation: Failed to execute script 'workspace://SpacesStore/c12d494c-5720-4598-a5a6-1c658f27b6d7': Access Denied.  You do not have the appropriate permissions to perform this operation.
org.alfresco.scripts.ScriptException: Failed to execute script 'workspace://SpacesStore/c12d494c-5720-4598-a5a6-1c658f27b6d7': Access Denied.  You do not have the appropriate permissions to perform this operation.
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:228)
        at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:187)
        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:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

Only the admin can upload files, while the javascript is executed.

Can anyone help me with this problem?
Thanks,
Jenny

Outcomes