During our upgrade from 6.1 to 6.2 we discovered two bugs with Documents and Media portlet. Specifically these bugs presented themselves after applying 6.2 EE Fix Pack 95 to 6.2 SP14. The first issue involved the JSPs and Javascript with the portlet. On line 79 of the main.js file they changed “instance.ns(‘dataRequest’);” to “instance.ns(‘entryDataRequest’);”. This change was not made in all of the JSP files. The second issue was a data layer issue that appears as a combination of upgrading and the fix pack. The error occurred when trying to edit and then save documents that existed prior to the upgrade. It did not affect documents created after the upgrade. The error is shown below.
Error in log file
This error is caused by a missing metadata field “_fieldsDisplay”. It appears that Fix Pack 95 introduced this error. The Liferay team generated custom fix packs to resolve these issues. The fixes did complicate our deployment. We will now need to restart the server and additional time during deployment. Additionally this requires changing the portal-ext.properties in the middle of deployment. The high level view of the needed steps.
Run verification processes on old server.
Deploy Liferay
Start Liferay
Verify License Registered
Verify standard Liferay portlets deployed.
Stop Liferay (We tried to skip this step but the next step didn’t deploy correctly.)
Deploy Customizations.
Start Liferay.
Verify customizations are functioning at a basic level.
Stop Liferay.
Modify portal-ext.properties.
Start Liferay.
Verify legacy documents can be saved without error.
Stop Liferay and modify portal-ext.properties.
Start Liferay and verify functionality.
The following is the change that needs to be added and removed from the portal-ext.properties.
portal-ext.properties
My best guess is that the VerifyDynamicDataMapping class goes out and fixes any legacy documents. While the fixes are relatively straightforward it does complicate our upgrade process and introduces more avenues for errors to creep in.