-
Type:
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
Affects Version/s: 7.0.1 CE GA2
-
Fix Version/s: 7.0.X EE
-
Component/s: ~ [Archived] Collaboration
-
Fix Priority:5
-
Sprint:Calciocelsian
Steps to reproduce
- Start up 6.1.30 or 6.2.10 EE
- Add documents in DM
- Export the database and save the data folder
- Upgrade to 7.0
- Start portal
- Navigate to Documents and Media
- Navigate to any document
Expected result:
File still exists and can be viewed and downloaded
Actual result:
File is not present and so, users are not able to view metadata and are not able to download files.
User is directed to Status page with error message "Not found: The requested resource could not be found." when downloading the file.
Clicking on documents will also throw console errors:
19:17:38,850 WARN [liferay/document_library_image_processor-1][BaseProcessorMessageListener:40] Unable to process file version 10499 com.liferay.document.library.kernel.exception.NoSuchFileException: {companyId=10154, repositoryId=10180, fileName=2, cause=java.io.FileNotFoundException: C:\Users\liferay\Desktop\liferay-dxp-digital-enterprise-7.0-b3\data\document_library\10154\10180\2\1.0 (The system cannot find the path specified)} at com.liferay.portal.store.file.system.FileSystemStore.getFileAsStream(FileSystemStore.java:281) at com.liferay.portal.store.safe.file.name.wrapper.SafeFileNameStoreWrapper$SafeFileNameStore.getFileAsStream(SafeFileNameStoreWrapper.java:290) at com.liferay.document.library.store.IgnoreDuplicatesStore.getFileAsStream(IgnoreDuplicatesStore.java:196) at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFileAsStream(DLStoreImpl.java:303) at com.liferay.document.library.kernel.store.DLStoreUtil.getFileAsStream(DLStoreUtil.java:407) at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.getFileAsStream(DLFileEntryLocalServiceImpl.java:1163) at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.getFileAsStream(DLFileEntryLocalServiceImpl.java:1146) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:85) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:58) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:127) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:173) at com.sun.proxy.$Proxy91.getFileAsStream(Unknown Source) at com.liferay.document.library.kernel.service.DLFileEntryLocalServiceUtil.getFileAsStream(DLFileEntryLocalServiceUtil.java:520) at com.liferay.portlet.documentlibrary.model.impl.DLFileVersionImpl.getContentStream(DLFileVersionImpl.java:60) at com.liferay.portal.repository.liferayrepository.model.LiferayFileVersion.getContentStream(LiferayFileVersion.java:106) at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:286) at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:83) at com.liferay.document.library.kernel.util.ImageProcessorUtil.generateImages(ImageProcessorUtil.java:53) at com.liferay.portlet.documentlibrary.messaging.ImageProcessorMessageListener.generate(ImageProcessorMessageListener.java:31) at com.liferay.portlet.documentlibrary.messaging.BaseProcessorMessageListener.doReceive(BaseProcessorMessageListener.java:36) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:58) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.FileNotFoundException: C:\Users\liferay\Desktop\liferay-dxp-digital-enterprise-7.0-b3\data\document_library\10154\10180\2\1.0 (The system cannot find the path specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at com.liferay.portal.store.file.system.FileSystemStore.getFileAsStream(FileSystemStore.java:278) ... 32 more
Upgraded from:
MySQL 5.5.48
Liferay EE 6.1.30.5
Liferay EE 6.2.10.15
Reproduced on:
Tomcat 8.0.32 + MySQL 5.6
Liferay DXP DE 7.0 B3
Upgraded from:
Oracle 11
Liferay EE 6.1.30.5
Reproduced on:
Tomcat 8.0.32 + Oracle 12
Liferay Portal ee-7.0.x b9ce80a0b1579f9538e02390a7339ac1c97dd32c