Assignment of 'View' Permission for a folder having too many documents is taking longer time.


  • Unable to give 'view' permission to a folder that contains a huge number of files. That is,
    • For a particular folder consisting of a very huge number of documents (nearly more than 50k docs), giving 'view' permission to any of the roles to that folder and try to save, the saving activity is taking a very long time.
    • At the same time, giving any other permission (like the update, subscribe) except 'view' to the same folder and save, it gets saved immediately.
    • The reported behaviour is specific to 'view' permission and that too specific to the folder 
  • The following Thread is observed in the thread dumps while the behaviour is observed on UI.
 at com.liferay.sync.service.persistence.impl.SyncDLObjectPersistenceImpl.findByR_P(
 at com.liferay.sync.service.persistence.impl.SyncDLObjectPersistenceImpl.findByR_P(
 at com.liferay.sync.service.persistence.impl.SyncDLObjectPersistenceImpl.findByR_P(
 at com.liferay.sync.service.impl.SyncDLObjectLocalServiceImpl.getSyncDLObjects(
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
 at java.lang.reflect.Method.invoke(
 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(
 at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(
 at com.liferay.sync.internal.model.listener.SyncBaseModelListener.updateSyncDLObject(
 at com.liferay.sync.internal.model.listener.ResourcePermissionModelListener.onBeforeCreate(
 at com.liferay.sync.internal.model.listener.ResourcePermissionModelListener.onBeforeCreate(
 at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.updateResourcePermission(
 at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.setResourcePermissions(


  • Liferay DXP 7.0


  • The issue is related to Liferay Sync Connector. The Sync updates all of a user's objects to reflect their new permissions. This consumes time to update the permission.  Hence, the issue will not be observed after removing the Liferay Sync. 
  • In case, the requirement does not allow to remove the Liferay Sync connector from the portal, the issue is fixed in the latest version of Liferay Sync Connector i.e. after Liferay Sync Connector 4.1.4 or you can raise a support ticket on Help Center to get a fix.

Additional Information

  • The issue was reported in SYNC-1802
  • The latest version of Liferay Sync Connector can be downloaded from the Marketplace.
0 人中有 0 人觉得有帮助