Liferay Portal 7.4 GA132 Client Extension no longer active at layout after server reboot

Environment: Liferay Portal 7.4 GA132

Database: Postgresql 16.10

Description:

In Liferay Portal 7.4 GA132 the client extensions are no longer active in pages or a single page after the server is rebooted. The extension itself does not disappear, only the information that it is active on pages/page. You can add the extension again to pages/page after a reboot.

  • Described problem does not happen when using earlier version GA129 (clean install)
  • Database: lportalclientextensionentryrel table holds the information of active client extensions in pages/page. In GA129, the data rows persist during shutdown/startup. In GA132, the data rows are deleted immediately when the server is shut down.

How to reproduce:

  1. Prepare Liferay instance with given environment and database
  2. Deploy a simple Client Extension that can be set as active to pages or a page, e.g. liferay-sample-global-css-2
  3. Activate the extension to all pages of a site: Admin view → Site Builder → Pages → Configuration → Design → CSS → CSS Client Extensions. Add “Liferay Sample Global CSS 2” and save the settings view. Now the client extension is active in all pages of the site.
  4. Close the server, for example using \liferay-portal\tomcat\bin\shutdown.bat
  5. Open the server using \liferay-portal\tomcat\bin\startup.bat

Expected outcome: “Liferay Sample Global CSS 2” stays active when you open the site after reboot.

Outcome: “Liferay Sample Global CSS 2” is no longer active when you open the site after reboot.

1 Answer

1

First, welcome @Virneessa , happy you’re here despite the message I’m about to deliver…

I believe this has been reported and fixed, but being a CE user, you’ll need to find the bug, then find the PR reference from it, download the PR and apply it to the GA132 code base (plus any other PRs that may be transitive dependencies), build a custom GA132 from your patched code, and go from there.

Or you might consider transitioning to DXP to get regular hot fixes. Maybe not the message you wanted, but we all have corporate overlords :grinning_face: