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

UpgradePortletIdTest fails as it's using a wrong ResourcePermission primKey

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.1.30 EE GA3, 6.1.X EE
    • Fix Version/s: 6.1.30 EE GA3, 6.1.X EE
    • Component/s: Testing
    • Labels:
      None

      Description

      The issue is only reproducable on ee-6.1.x and below as a master backport had fixed the issue (however backporting would not be a good choice):

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      	at java.lang.String.substring(String.java:1937)
      	at com.liferay.portal.upgrade.v5_2_0.UpgradePortletId.updateResourcePermission(UpgradePortletId.java:411)
      	at com.liferay.portal.upgrade.v5_2_0.UpgradePortletId.updatePortlet(UpgradePortletId.java:245)
      	at com.liferay.portal.upgrade.v5_2_0.UpgradePortletId.doUpgrade(UpgradePortletId.java:65)
      	at com.liferay.portal.upgrade.UpgradePortletIdTest.testUpgrade(UpgradePortletIdTest.java:104)
      	at com.liferay.portal.kernel.test.RunBeforeTestMethodCallback.evaluate(RunBeforeTestMethodCallback.java:45)
      	at com.liferay.portal.kernel.test.RunAfterTestMethodCallback.evaluate(RunAfterTestMethodCallback.java:49)
      	at com.liferay.portal.kernel.test.RunBeforeTestClassesCallback.evaluate(RunBeforeTestClassesCallback.java:39)
      	at com.liferay.portal.kernel.test.RunAfterTestClassesCallback.evaluate(RunAfterTestClassesCallback.java:42)

        Attachments

          Activity

            People

            • Assignee:
              zsolt.balogh Zsolt Balogh
              Reporter:
              zsolt.balogh Zsolt Balogh
              Participants of an Issue:
              Recent user: