Access denied exception
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-06-2011 06:24 AM
I am trying to execute a java backed webscript about RecordsManagementActionService, but getting the following exception:
net.sf.acegisecurity.AccessDeniedException: Access is denied
net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
$Proxy537.execute(Unknown Source)
…
What am I supposed to do? Is there any way to run this web script without acegisecurity?
Regards.
net.sf.acegisecurity.AccessDeniedException: Access is denied
net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:86)
net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:394)
net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
$Proxy537.execute(Unknown Source)
…
What am I supposed to do? Is there any way to run this web script without acegisecurity?
Regards.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2011 02:48 PM
Hi
Are you running the web script with a user who can carry out the action?
Is the traget in the state required?
Andy
Are you running the web script with a user who can carry out the action?
Is the traget in the state required?
Andy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2011 02:51 AM
What do you mean by 'state required'? The user is a member of alfresco_administrator group and can call the other alfresco js web scripts such as moving nodes. But this java backed webscript does not allow the operation. Here is the web script xml:
Could you please help me?
Regards.
<webscript> <shortname>Records Management Custom Action Execution</shortname> <description><![CDATA[ Runs a records management action upon given node.<br/> The format of the uri should be in the form<br/> {<br/> "node" : nodeRef of the node to delare as record,<br/> "action" : records management action (such as declareRecord),<br/> }<br/> ]]> </description> <url>/byas/customaction?node={file}&action={actionName}</url> <format default="json"/> <authentication>user</authentication> <transaction>required</transaction> <lifecycle>internal</lifecycle></webscript>
Could you please help me?
Regards.
