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

              jeremy.chen Jeremy Chen
              michael.bowerman Michael Bowerman
              Kiyoshi Lee Kiyoshi Lee
              Michael Bowerman Michael Bowerman
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1 year, 42 weeks, 2 days ago

                Packages

                  Version Package
                  7.3.10.3 DXP SP3
                  7.3.X
                  7.4.1 CE GA2 DXP 7,4
                  7.4.13 DXP GA1
                  Master