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

Upgrade to 6.1 throws FileExtensionException

    Details

      Description

      To reproduce:

      1. Startup Liferay 6.0.6 and upload a few images (.jpg, .gif, .bmp) into the Document Library. Shutdown.
      2. Configure portal-ext.properties in Liferay 6.1 to allow only extensions of the images uploaded with dl.file.extensions=.bmp,.jpg,.gif
      3. Startup Liferay 6.1 and, upon upgrade, the following exception will be thrown:
      14:37:14,414 ERROR [ImageProcessorImpl:181] com.liferay.portlet.documentlibrary.FileExtensionException: document_thumbnail/0/43/10283/10284.
      com.liferay.portlet.documentlibrary.FileExtensionException: document_thumbnail/0/43/10283/10284.
      	at com.liferay.portlet.documentlibrary.store.DLStoreImpl.validate(DLStoreImpl.java:518)
      	at com.liferay.portlet.documentlibrary.store.DLStoreImpl.validate(DLStoreImpl.java:542)
      	at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:92)
      	at com.liferay.portlet.documentlibrary.store.DLStoreImpl.addFile(DLStoreImpl.java:171)
      	at com.liferay.portlet.documentlibrary.store.DLStoreUtil.addFile(DLStoreUtil.java:186)
      	at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.addFileToStore(DLPreviewableProcessor.java:186)
      	at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.storeThumbnailmage(DLPreviewableProcessor.java:532)
      	at com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor.storeThumbnailImages(DLPreviewableProcessor.java:486)
      	at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl._generateImages(ImageProcessorImpl.java:176)
      	at com.liferay.portlet.documentlibrary.util.ImageProcessorImpl.generateImages(ImageProcessorImpl.java:66)
      	at com.liferay.portlet.documentlibrary.util.ImageProcessorUtil.generateImages(ImageProcessorUtil.java:38)
      	at com.liferay.portal.upgrade.v6_1_0.UpgradeDocumentLibrary.updateThumbnails(UpgradeDocumentLibrary.java:452)
      	at com.liferay.portal.upgrade.v6_1_0.UpgradeDocumentLibrary.updateThumbnails(UpgradeDocumentLibrary.java:408)
      	at com.liferay.portal.upgrade.v6_1_0.UpgradeDocumentLibrary.doUpgrade(UpgradeDocumentLibrary.java:90)
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:210)
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:227)
      	at com.liferay.portal.upgrade.UpgradeProcess_6_1_0.doUpgrade(UpgradeProcess_6_1_0.java:64)
      	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:210)
      	at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:93)
      	at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:46)
      	at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:81)
      	at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:48)
      	at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:119)
      	at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:144)
      	at com.liferay.portal.events.StartupAction.run(StartupAction.java:52)
      	at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1267)
      	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:195)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5001)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:866)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:842)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:649)
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1581)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sophia.zhang Sophia Zhang
              Reporter:
              caorongjin Alexander Chow (Inactive)
              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:
                9 years, 27 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2