Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.0 DXP FP32, 7.0.X, Master
-
7.0.x
-
Committed
-
4
-
Database Upgrade
Description
Reproduction steps Version 1
without the database dump
- Start portal 6.2
- Upload a file with a different extension than .jpg
- Go to Control Panel - Server Administration - File Uploads
- Set a valid extension as "File Extensions", for example .jpg
- Stop the portal
- Take the ID for the DLFileVersion you created before and execute the following groovy script to remove it:
com.liferay.portlet.documentlibrary.service.DLFileVersionLocalServiceUtil.deleteDLFileVersion(ID);
- Upgrade to 7.0: start the upgrade tool: java -jar com.liferay.portal.tools.db.upgrade.client.jar
Reproduction steps Version 2
with the database dump
- Import the attached database dump and use this in the upgrade process (add the database location to portal-upgrade-database.properties)
- Upgrade to 7.0: start the upgrade tool: java -jar com.liferay.portal.tools.db.upgrade.client.jar
The upgrade (verify process) fails with this error:
INFO - Completed verification process com.liferay.document.library.internal.verify.DLServiceVerifyProcess in 4ms 17:39:26,435 ERROR [main][VerifyProcessTrackerOSGiCommands:297] com.liferay.portal.verify.VerifyException: com.liferay.document.library.kernel.exception.FileExtensionException: 2 com.liferay.portal.verify.VerifyException: com.liferay.document.library.kernel.exception.FileExtensionException: 2 at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:75)
Alternatively, one can use the portal-ext.properties and the portal-upgrade-ext.properties to configure dl.file.extensions which results the same error.
Attachments
Issue Links
- Testing discovered
-
LPS-76562 Table 'assettagstats' already exists during upgrading
- Closed