-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: Master
-
Fix Version/s: 7.4.3.9 CE GA9, 7.4.3.10 CE GA10, 7.4.3.11 CE GA11, Master
-
Component/s: Web Content > Web Content Administration
-
Fix Priority:4
-
QA Test Name:
- LocalFile.PortalSmokeUpgrade#ViewPortalSmokeArchive621015
- LocalFile.PortalSmokeUpgrade#ViewPortalSmokeArchive7210
- LocalFile.PortalSmokeUpgrade#ViewPortalSmokeArchive730
- LocalFile.WebContentUpgrade#ViewAndEditWebContentWCStructureWCTemplateWCDAndAssetPublisher701014
- LocalFile.WebContentUpgrade#ViewAndEditWebContentWCStructureWCTemplateWCDAndAssetPublisher704
- LocalFile.WebContentUpgrade#ViewWebContentWithAllFieldsArchive621021
- LocalFile.WebContentUpgrade#ViewWebContentWithImageArchive70106
- LocalFile.WebContentUpgrade#ViewWebContentWithImageArchive704
-
QA Test Score:33
Steps to reproduce:
In 6.2 or 7.0
- Add structure with an image field and a template to it
- Add a web content with created structure , in the image field, add an image
In master
- Copy the data file to master
- Upgrade to master using upgrade tool
- Check the image field
Actual result:
The image is missing after the upgrade is concluded and the following stacktrace is thrown in the server console during upgrade tool's execution:
2021-08-03 17:36:42.245 INFO [Portal Dependency Manager Component Executor--1][UpgradeProcess:111] Upgrading com.liferay.journal.internal.upgrade.v1_1_0.ImageTypeContentUpgradeProcess 2021-08-03 17:36:42.246 INFO [Portal Dependency Manager Component Executor--1][LoggingTimer:83] Starting com.liferay.journal.internal.upgrade.v1_1_0.ImageTypeContentUpgradeProcess#copyJournalArticleImagesToJournalRepository 2021-08-03 17:36:42.405 ERROR [ForkJoinPool-3-worker-9][ImageImpl:73] Error reading image 20565 com.liferay.document.library.kernel.exception.NoSuchFileException: {companyId=20155, repositoryId=0, fileName=20565.jpg, cause=java.io.FileNotFoundException: /Users/rodrigo/Liferay/builds/liferay-portal-master/data/document_library/20155/0/20565.jpg/1.0 (No such file or directory)} at com.liferay.portal.store.file.system.FileSystemStore.getFileAsStream(FileSystemStore.java:140) ~[?:?] at com.liferay.portal.store.file.system.safe.file.name.SafeFileNameStore.getFileAsStream(SafeFileNameStore.java:93) ~[?:?] at com.liferay.change.tracking.store.internal.CTStore.getFileAsStream(CTStore.java:139) ~[?:?] at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFileAsStream(DLStoreImpl.java:288) ~[portal-impl.jar:?] at com.liferay.document.library.kernel.store.DLStoreUtil.getFileAsStream(DLStoreUtil.java:294) ~[portal-kernel.jar:?] at com.liferay.portal.model.impl.ImageImpl.getTextObj(ImageImpl.java:64) [portal-impl.jar:?] at com.liferay.journal.internal.upgrade.v1_1_0.ImageTypeContentUpgradeProcess$SaveImageFileEntryUpgradeCallable.doCall(ImageTypeContentUpgradeProcess.java:182) [bundleFile:?] at com.liferay.journal.internal.upgrade.v1_1_0.ImageTypeContentUpgradeProcess$SaveImageFileEntryUpgradeCallable.doCall(ImageTypeContentUpgradeProcess.java:144) [bundleFile:?] at com.liferay.portal.kernel.upgrade.BaseUpgradeCallable.call(BaseUpgradeCallable.java:36) [portal-kernel.jar:?] at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424) [?:1.8.0_221] at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) [?:1.8.0_221] at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) [?:1.8.0_221] at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) [?:1.8.0_221] at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) [?:1.8.0_221] Caused by: java.io.FileNotFoundException: /Users/rodrigo/Liferay/builds/liferay-portal-master/data/document_library/20155/0/20565.jpg/1.0 (No such file or directory) at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_221] at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:1.8.0_221] at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[?:1.8.0_221] at com.liferay.portal.store.file.system.FileSystemStore.getFileAsStream(FileSystemStore.java:137) ~[?:?] ... 13 more 2021-08-03 17:36:42.431 INFO [Portal Dependency Manager Component Executor--1][LoggingTimer:44] Completed com.liferay.journal.internal.upgrade.v1_1_0.ImageTypeContentUpgradeProcess#copyJournalArticleImagesToJournalRepository in 184 ms 2021-08-03 17:36:42.434 INFO [Portal Dependency Manager Component Executor--1][UpgradeProcess:126] Completed upgrade process com.liferay.journal.internal.upgrade.v1_1_0.ImageTypeContentUpgradeProcess in 189 ms
Expected result:
Image field preview works.
- is caused by
-
LPS-131706 Update the Image service to write files to a company-scoped folder
-
- Closed
-