Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.3.X, Master
-
7.3.x
-
Committed
-
1
-
3
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
- is related to
-
LPS-96944 Unable to load external repository when running JournalServiceUpgrade
- Closed
- Testing discovered
-
LPS-133680 UndeployedExternalRepositoryException is being initialized incorrectly in TemporaryFileEntryRepositoryDefiner
- Closed