Failed to execute script

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2009 03:07 PM
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 :
Only the admin can upload files, while the javascript is executed.
Can anyone help me with this problem?
Thanks,
Jenny
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 moreCaused 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 more15: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
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2009 12:58 PM
I figured it out…
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2009 08:44 AM
Any chance you might share it with the rest of us?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2009 06:34 AM
Hi…
In my case, I had forgotten to invite the group everyone to have at least Consumer permission on the Datadictionary>Scripts space, since the javascript must be placed in the scripts space. Further, the javascript I wrote, modifies an aspect of a document. So, the one's that perform this (execute javascript when certain action is taken) must also have at least collaborator permission on the document,which will be modified by the execution of the javascript.
Regards,
Jenny
In my case, I had forgotten to invite the group everyone to have at least Consumer permission on the Datadictionary>Scripts space, since the javascript must be placed in the scripts space. Further, the javascript I wrote, modifies an aspect of a document. So, the one's that perform this (execute javascript when certain action is taken) must also have at least collaborator permission on the document,which will be modified by the execution of the javascript.
Regards,
Jenny
