AnsweredAssumed Answered

User Calendar dashlet fails to load

Question asked by joselor on Apr 12, 2011
Hi there!

We just upgraded our Alfresco installation to  Community - v3.4.0 (c 3335)

After installation We started getting this error when activating calendar dash-let on users dashboards.
Seems like a  security issues but I can't find where to customize dash-let security level, actually  I think it is not possible.

Any advice will be very appreciate….

Cheers :!:

Jose
******************************


An error has occured in the Share component: /share/service/components/dashlets/user-calendar.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: Error during remote call. Status: 500, Response: { "status" : { "code" : 500, "name" : "Internal Error", "description" : "An error inside the HTTP server which prevented it from fulfilling the request." }, "message" : "03120067 Wrapped Exception (with status template): 031214746 Failed to execute script 'classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js': 031214745 Access Denied. You do not have the appropriate permissions to perform this operation.", "exception" : "org.springframework.extensions.webscripts.WebScriptException - 03120067 Wrapped Exception (with status template): 031214746 Failed to execute script 'classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js': 031214745 Access Denied. You do not have the appropriate permissions to perform this operation.", "callstack" : [ "" ,"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.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)" ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)" ,"org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:160)" ,"org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)" ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)" ,"org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)" ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)" ,"org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:44)" ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)" ,"org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:217)" ,"org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:184)" ,"org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)" ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)" ,"org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)" ,"org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)" ,"org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)" ,"$Proxy7.getChildrenByName(Unknown Source)" ,"org.alfresco.repo.site.SiteServiceImpl.listSitesImpl(SiteServiceImpl.java:782)" ,"org.alfresco.repo.site.SiteServiceImpl.listSites(SiteServiceImpl.java:737)" ,"org.alfresco.repo.site.script.ScriptSiteService.listUserSites(ScriptSiteService.java:164)" ,"sun.reflect.GeneratedMethodAccessor694.invoke(Unknown Source)" ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" ,"java.lang.reflect.Method.invoke(Method.java:597)" ,"org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)" ,"org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)" ,"org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)" ,"org.mozilla.javascript.gen.c4._c3(file:\/C:\/Alfresco3.4c\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js:125)" ,"org.mozilla.javascript.gen.c4.call(file:\/C:\/Alfresco3.4c\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js)" ,"org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)" ,"org.mozilla.javascript.gen.c4._c0(file:\/C:\/Alfresco3.4c\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js:51)" ,"org.mozilla.javascript.gen.c4.call(file:\/C:\/Alfresco3.4c\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js)" ,"org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)" ,"org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)" ,"org.mozilla.javascript.gen.c4.call(file:\/C:\/Alfresco3.4c\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js)" ,"org.mozilla.javascript.gen.c4.exec(file:\/C:\/Alfresco3.4c\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:190)" ,"org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:282)" ,"org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)" ,"org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:981)" ,"org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)" ,"org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:377)" ,"org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:381)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:436)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:466)" ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:304)" ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)" ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)" ,"org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)" ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:717)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)" ,"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)" ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)" ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)" ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)" ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)" ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)" ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)" ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)" ,"org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)" ,"org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)" ,"org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)" ,"java.lang.Thread.run(Thread.java:619)" ,"org.alfresco.repo.security.permissions.AccessDeniedException: 031214745 Access Denied. You do not have the appropriate permissions to perform this operation." ,"org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:48)" ,"org.alfresco.scripts.ScriptException: 031214746 Failed to execute script 'classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js': 031214745 Access Denied. You do not have the appropriate permissions to perform this operation." ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:194)" ,"org.springframework.extensions.webscripts.WebScriptException: 03120067 Wrapped Exception (with status template): 031214746 Failed to execute script 'classpath*:alfresco\/templates\/webscripts\/org\/alfresco\/slingshot\/calendar\/userevents.get.js': 031214745 Access Denied. You do not have the appropriate permissions to perform this operation." ,"org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:758)" ], "server" : "Community v3.4.0 (c 3335) schema 4,113", "time" : "Apr 12, 2011 12:31:35 PM" }
Server: Alfresco Spring WebScripts - v1.0.0 (Release Candidate 2 739) schema 1,000
Time: Apr 12, 2011 12:31:35 PM

Outcomes