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

Audit Module Upgrade Fails due to Missing Entry in Release Table

    Details

      Description

      Steps to reproduce:
      1) Start a Liferay 6.2 Bundle
      2) Deploy the Audit Portlet
      3) Shutdown 6.2
      4) Perform DXP Upgrade

      Expected Result:
      The upgrade completes successfully.

      Actual Results:
      The upgrade will fail with a SQL Exception:

      ERROR [main][com_liferay_portal_upgrade:97] Invocation to listener threw exception
      java.lang.RuntimeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.microsoft.sqlserver.jdbc.SQLException: There is already an object named 'Audit_AuditEvent' in the database.

      Users are able to check how Liferay plans to upgrade the module via the following gogo shell command:

      g! upgrade:check
      upgrade:check
      There is an upgrade process available for com.liferay.portal.security.audit.storage.service from 0.0.0 to 1.0.0

      Reproduced on
      ee-7.0.x: 4e35e5899c24789842d322e7243da476646dd482
      master: Module does not exist in master

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 22 weeks, 5 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP16
                  7.0.3 CE GA4
                  7.0.0 DXP SP4
                  7.0.X EE
                  Master