Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-81213

Unable to export personal data as admin

    Details

    • Fix Priority:
      4

      Description

      Steps to reproduce:
      1. Create user and add assets (eg. blog)
      2. As admin, go to Control Panel > User & Org
      3. Click ellipsis next to created user > Export Personal Data
      4. Click '+' icon
      5. Select checkboxes next to created assets
      6. Click Export
      7. Assert stacktrace error
      8. Assert no export file created

      2018-05-18 16:51:09.987 ERROR [liferay/background_task-5][BackgroundTaskMessageListener:168] Unable to execute background task 
      com.liferay.portal.kernel.security.auth.PrincipalException$MustHavePermission: User 20139 must have VIEW permission for com.liferay.portal.kernel.repository.model.Folder 38437 
      at com.liferay.portal.kernel.internal.security.permission.resource.DefaultModelResourcePermission.check(DefaultModelResourcePermission.java:54) 
      at com.liferay.portal.kernel.security.permission.resource.ModelResourcePermissionHelper.check(ModelResourcePermissionHelper.java:39) 
      at com.liferay.portal.repository.RepositoryProviderImpl.checkRepositoryAccess(RepositoryProviderImpl.java:377) 
      at com.liferay.portal.repository.RepositoryProviderImpl.getLocalRepository(RepositoryProviderImpl.java:267) 
      at com.liferay.portal.kernel.repository.RepositoryProviderUtil.getLocalRepository(RepositoryProviderUtil.java:107) 
      at com.liferay.portal.portletfilerepository.PortletFileRepositoryImpl.addPortletFolder(PortletFileRepositoryImpl.java:206) 
      at com.liferay.portal.kernel.portletfilerepository.PortletFileRepositoryUtil.addPortletFolder(PortletFileRepositoryUtil.java:92) 
      at com.liferay.portal.background.task.model.impl.BackgroundTaskImpl.addAttachmentsFolder(BackgroundTaskImpl.java:77) 
      at com.liferay.portal.background.task.service.impl.BackgroundTaskLocalServiceImpl.addBackgroundTaskAttachment(BackgroundTaskLocalServiceImpl.java:132) 
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
      at java.lang.reflect.Method.invoke(Method.java:498) 
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:158) 
      at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:54) 
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58) 
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135) 
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) 
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135) 
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:145) 
      at com.sun.proxy.$Proxy423.addBackgroundTaskAttachment(Unknown Source) 
      at com.liferay.portal.background.task.internal.BackgroundTaskManagerImpl.addBackgroundTaskAttachment(BackgroundTaskManagerImpl.java:104) 
      at com.liferay.user.associated.data.web.internal.export.background.task.UADExportBackgroundTaskExecutor.execute(UADExportBackgroundTaskExecutor.java:64) 
      at com.liferay.portal.kernel.backgroundtask.DelegatingBackgroundTaskExecutor.execute(DelegatingBackgroundTaskExecutor.java:43) 
      at com.liferay.portal.background.task.internal.ThreadLocalAwareBackgroundTaskExecutor.execute(ThreadLocalAwareBackgroundTaskExecutor.java:75) 
      at com.liferay.portal.background.task.internal.messaging.BackgroundTaskMessageListener.doReceive(BackgroundTaskMessageListener.java:127) 
      at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26) 
      at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) 
      at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52) 
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756) 
      at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667) 
      at java.lang.Thread.run(Thread.java:745)

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 24 weeks, 5 days ago

                Packages

                Version Package
                7.1.0 Beta 2