cancel
Showing results for 
Search instead for 
Did you mean: 

Access denied exception

dark_rider
Champ on-the-rise
Champ on-the-rise
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.
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi

Are you running the web script with a user who can carry out the action?
Is the traget in the state required?

Andy

dark_rider
Champ on-the-rise
Champ on-the-rise
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:

<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}&amp;action={actionName}</url>  <format default="json"/>  <authentication>user</authentication>  <transaction>required</transaction>  <lifecycle>internal</lifecycle></webscript>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

Could you please help me?
Regards.