AnsweredAssumed Answered

Gallery Plus Dashlet addon causes download zip to fail in Alfresco 5.1

Question asked by pcharsle on Oct 7, 2016
Latest reply on Nov 9, 2017 by pcharsle

We have successfully used the excellent addon Gallery Plus Dashlet | Alfresco Add-ons - Alfresco Customizations in Alfresco 4.1 and are now working to use it in Alfresco 5.1. We have discovered that when the dashlet is installed, the "download zip" feature fails for all users except the Alfresco Administrator. The following error is displayed in the catalina.out log file:

 

Caused by: org.alfresco.repo.security.permissions.AccessDeniedException: 08200020 Access Denied. You do not have the appropriate permissions to perform this operation.

  at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:57)

  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

  at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)

  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

  at org.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:86)

  at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)

  at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:76)

  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

  at org.alfresco.enterprise.repo.authorization.AuthorizationStatusInterceptor.invoke(AuthorizationStatusInterceptor.java:154)

  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)

  at com.sun.proxy.$Proxy24.hasAspect(Unknown Source)

  at de.fme.alfresco.dashlets.AlbumAspect.onCreateNode(Unknown Source)

 

Debugging has shown that the error occurs on line 132 of the AlbumAspect class when nodeService.hasAspect(parentNode, GalleryPlusModel.ASPECT_ALBUM) is called. The error still occurs even when parentNode does not have the GalleryPlusModel.ASPECT_ALBUM.

 

This means that the only way for us to give our users the new download zip functionality is to remove the gallery dashlet completely.

 

Can anyone suggest why this error might be happening or what further tests we could do to find a solution?

 

Outcomes