AnsweredAssumed Answered

access denied for guest

Question asked by jharrop on Dec 13, 2010
Hi

I'm trying to login as guest using the spring surf cmis browser app.

When I attempt to do so, Alfresco responds:

Caused by: org.alfresco.service.cmr.repository.TemplateException: 11130008 Error during processing of the template '11130007 Access Denied.  You do not have the appropriate permissions to perform this operation.'. Please contact your system administrator.
        at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:201)
        at org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:580)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
        … 25 more
Caused by: org.alfresco.repo.security.permissions.AccessDeniedException: 11130007 Access Denied.  You do not have the appropriate permissions to perform this operation.
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:48)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:217)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:184)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy7.hasAspect(Unknown Source)
        at org.alfresco.cmis.mapping.AbstractVersioningProperty.isWorkingCopy(AbstractVersioningProperty.java:72)
        at org.alfresco.cmis.mapping.ObjectIdProperty.getValue(ObjectIdProperty.java:70)
        at org.alfresco.cmis.mapping.CMISServicesImpl.getProperty(CMISServicesImpl.java:751)
        at org.alfresco.repo.cmis.rest.CMISPropertyValueMethod.exec(CMISPropertyValueMethod.java:118)

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:172)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)
        … 56 more
This is [service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.4.0 (c @build-number@) schema 4111 - Originally installed version 3.4.0 (c @build-number@) schema 4111

Things work fine with user other than guest.  Is there a config setting I need to change somewhere to allow guest access via CMIS?

Or is the problem that SlingshotUserFactory says:

        // special case to disallow Guest user authentication in Share
        // TODO: add basic Guest user support

and that is somehow relevant?

thanks

Outcomes