Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-65559

Image in web content article does not display after upgrading from 6.x to 7.0

    Details

    • Fix Priority:
      5
    • Databases:
      Oracle Database 11.2, Oracle Database 12c Release 1

      Description

      Steps to reproduce:

      1. Execute an upgrade from 6.2.10 to 7.0 using the Oracle 11 database and data folder provided below to Oracle 12.
      2. After upgrade completes successfully (WARNings will be thrown; see LPS-65068), start up portal
      3. Reindex all search indexes
      4. View web content with image

      Expected result: Image in web content article displays
      Actual result: Viewing the article in a WCD portlet throws NoSuchFileException (see below). Image in web content article does not display; editing the article in source reveals the linked image's URL.

      22:52:46,831 WARN  [liferay/document_library_image_processor-1][BaseProcessorMessageListener:40] Unable to process file version 20663
      com.liferay.document.library.kernel.exception.NoSuchFileException: {companyId=20155, repositoryId=20182, fileName=1, cause=java.io.FileNotFoundException: D:\private\ee-7.0.x-bundles\data\document_library\20155\20182\1\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:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              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.$Proxy92.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: D:\private\ee-7.0.x-bundles\data\document_library\20155\20182\1\1.0 (The system cannot find the path specified)
              at java.io.FileInputStream.open(Native Method)
              at java.io.FileInputStream.<init>(FileInputStream.java:146)
              at com.liferay.portal.store.file.system.FileSystemStore.getFileAsStream(FileSystemStore.java:278)
              ... 32 more
      

      Reproduced on:
      Tomcat 8.0.32 + Oracle 12.1c
      Portal ee-7.0.x GIT ID: 4f0acfdcc2fbf15df0368cdee872f7e56b00d66f

        Attachments

          Activity

            People

            • Assignee:
              anthony.chu Anthony Chu
              Reporter:
              anthony.chu Anthony Chu
              Participants of an Issue:
              Recent user:
              Marta Elicegui
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 15 weeks ago

                Packages

                Version Package
                7.0.X EE