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

Upgrade fails if the value of repositoryid is bigger than the maximum value of int

    Details

      Description

      1. Import the provided database dump from r2d2/ftp/ntnu81 to 6.1.20
      2. Upgrade to 6.2

      Actual behavior: the upgrade fails

      Expected behavior: the upgrade shouldn't fail

      This happens because the repositoryid in the Repository table is bigger than the max value of int.

      In com.liferay.portal.kernel.upgrade.v6_2_0.BaseUpgradeAttachments there are two occurrences where a long field is fetched as an int, so if it is bigger than MAX_INT it fails with java.sql.SQLException: Number Overflow

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sherry.zhu Sherry Zhu
              Reporter:
              istvan.dezsi Istvan Dezsi
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 33 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5