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

Possible deadlock in ResourceBlockLocalServiceImpl

    Details

      Description

      In the the method ResourceBlockLoclServiceImpl.updateIndividualScopePermissions, if there is a change in the actions (line 759), the resource block is released. However, the update to release the resource block occurs in the same transaction as the rest of the method, since the call is not invoked via Spring proxy. In this case, the update is executed, and the method updateResourceBlockId tries to do a "select" in the same row in other transaction, causing a deadlock.

      Changing releaseResourceBlock(resourceBlock) to "resourceBlockLocalService.releaseResourceBlock(resourceBlock);" (in line 763) seems to resolve the problem.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 36 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 CE M4