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

Upgrade from 5.2 SP3 to 6.1 GA2 halts when using AdvancedFileSystemStore and the Document Library file doesn't exist physically

    Details

      Description

      Steps to Reproduce:

      1. Start Liferay 5.2.7 bundle
      2. Add documents to the document library
      3. Upgrade to permissions algorithm 6
      4. Run the upgrade to 6.1 GA2 using the fix in LPS-28094 (otherwise, Liferay won't try to move the files at all)

      We should output a warning message and continue the upgrade process, instead of stopping the upgrade after this exception gets thrown.

      Stack trace as shown below:

      com.liferay.portal.kernel.exception.SystemException: File name directory was not renamed from /bundles/data/document_library/10501/110201/DLFE/14/1401.pdf to /bundles/data/document_library/10501/110201/14/1401.afsh
      at com.liferay.portal.events.StartupAction.run(StartupAction.java:59)
      at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1306)
      at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:214)
      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:5015)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5302)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871)
      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:1585)
      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:662)
      Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: File name directory was not renamed from /bundles/data/document_library/10501/110201/DLFE/14/1401.pdf to /bundles/data/document_library/10501/110201/14/1401.afsh
      at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:213)
      at com.liferay.portal.upgrade.UpgradeProcessUtil._upgradeProcess(UpgradeProcessUtil.java:103)
      at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:56)
      at com.liferay.portal.upgrade.UpgradeProcessUtil.upgradeProcess(UpgradeProcessUtil.java:36)
      at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:130)
      at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:48)
      at com.liferay.portal.tools.DBUpgrader.upgrade(DBUpgrader.java:129)
      at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:157)
      at com.liferay.portal.events.StartupAction.run(StartupAction.java:53)
      ... 20 more

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sharry.shi Sharry Shi
                Reporter:
                eric.chin Eric Chin
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  6 years, 23 weeks, 2 days ago

                  Packages

                  Version Package
                  6.1.30 EE GA3
                  6.2.0 CE M4