AnsweredAssumed Answered

Require valid SecureContext when executing public APIs?

Question asked by gjferrier on Nov 27, 2010
Latest reply on Nov 29, 2010 by gjferrier

I have a servlet filter which is accessing the public NodeService API, using the preferred method of bean injection in 3.2 community edition with the Records Management module installed.  However, when using the public API an exception is thrown (see below) -

net.sf.acegisecurity.AuthenticationCredentialsNotFoundException: A valid SecureContext was not provided in the RequestContext
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(
   at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(

This is using out of the box authentication with only the admin user available on the server.  The alf_ticket is present and correct in the request parameter.  I did not have this problem during testing against the same version, but without the RM module installed.

Any help is very much appreciated.