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

Journal Service upgrade occasionally fails with UndeployedExternalRepositoryException

    Details

      Description

      The upgrade for Journal Service can fail with an UndeployedExternalRepositoryException due to OSGi modules being registered in the wrong order. If the "Liferay Document Library Repository Portlet Repository Implementation" module has not yet been registered by the time the Journal Service upgrade proceeds, then it can result in the UndeployedExternalRepositoryException. This is because the Journal Service upgrade calls this code to add a repository. That code attempts to look up the PortletRepository class. If the "Liferay Document Library Repository Portlet Repository Implementation" module has not yet been registered, then the lookup will fail with an UndeployedExternalRepositoryException, since that module holds the class responsible for registering the PortletRepository class.

      We should add a dependency from the "Liferay Document Library Repository Portlet File Repository Implementation" module onto the "Liferay Document Library Repository Portlet Repository Implementation" module to ensure that this cannot happen.

      Steps to Reproduce
      Unfortunately, as this is a timing issue, the issue cannot be consistently reproduced. It can happen occasionally when upgrading from Liferay 7.0 to Liferay 7.3.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jeremy.chen Jeremy Chen
              Reporter:
              michael.bowerman Michael Bowerman
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Engineering Assignee:
              Michael Bowerman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                15 weeks, 1 day ago

                  Packages

                  Version Package
                  7.3.X
                  7.4.1 CE GA2 DXP 7,4
                  Master