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

Crash when enabling local staging for an asset library

Details

    Description

      Error:

      Caused by: java.sql.BatchUpdateException: Duplicate entry '20097-30202-38503-0' for key 'IX_504CABF5'
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      

      Cause:

      StagingLocalService is creating a staging group from the original one but it is not creating the associated DepotEntry. We need to hook into the logic and add a new DepotEntry and change the Group's classPK to avoid the duplication. This can be done using a service wrapper on the StagingLocalService from depot-service.

      Attachments

        Activity

          People

            alejandro.tardin Alejandro Tardín
            alejandro.tardin Alejandro Tardín
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                7.3.X