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

VerifyDynamicDataMapping fails if no file is attached to DDLRecord

    Details

      Description

      Issue can be reproduced by creating few DDLRecords using the Issues Tracking DDMStructure and not attaching a file into the record.

      5:28:22,841 INFO  [localhost-startStop-1][VerifyProcess:55] Verifying com.liferay.portal.verify.VerifyDynamicDataMapping
      05:28:23,253 ERROR [localhost-startStop-1][MainServlet:209] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portlet.documentlibrary.NoSuchFileException: /Users/mika/Development/Home/javaguru-git/bundles/data/document_library/22666/0/ddm/com.liferay.portlet.dynamicdatalists.model.DDLRecord/24510/1.0/attachment/attachment_1.0.0/attachment
      com.liferay.portal.kernel.events.ActionException: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portlet.documentlibrary.NoSuchFileException: /Users/mika/Development/Home/javaguru-git/bundles/data/document_library/22666/0/ddm/com.liferay.portlet.dynamicdatalists.model.DDLRecord/24510/1.0/attachment/attachment_1.0.0/attachment
      	at com.liferay.portal.events.StartupAction.run(StartupAction.java:74)
      	at com.liferay.portal.servlet.MainServlet.processStartupEvents(MainServlet.java:1238)
      	at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:206)
      	at javax.servlet.GenericServlet.init(GenericServlet.java:160)
      	at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
      	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
      	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:744)
      Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portal.verify.VerifyException: com.liferay.portlet.documentlibrary.NoSuchFileException: /Users/mika/Development/Home/javaguru-git/bundles/data/document_library/22666/0/ddm/com.liferay.portlet.dynamicdatalists.model.DDLRecord/24510/1.0/attachment/attachment_1.0.0/attachment
      	at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:61)
      	at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:111)
      	at com.liferay.portal.verify.VerifyProcessUtil._verifyProcess(VerifyProcessUtil.java:76)
      	at com.liferay.portal.verify.VerifyProcessUtil.verifyProcess(VerifyProcessUtil.java:46)
      	at com.liferay.portal.events.StartupHelper.verifyProcess(StartupHelper.java:146)
      	at com.liferay.portal.events.StartupHelperUtil.verifyProcess(StartupHelperUtil.java:67)
      	at com.liferay.portal.tools.DBUpgrader.verify(DBUpgrader.java:240)
      	at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:206)
      	at com.liferay.portal.events.StartupAction.run(StartupAction.java:68)
      	... 19 more
      Caused by: com.liferay.portal.verify.VerifyException: com.liferay.portlet.documentlibrary.NoSuchFileException: /Users/mika/Development/Home/javaguru-git/bundles/data/document_library/22666/0/ddm/com.liferay.portlet.dynamicdatalists.model.DDLRecord/24510/1.0/attachment/attachment_1.0.0/attachment
      	at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:61)
      	at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:66)
      	at com.liferay.portal.verify.VerifyProcessSuite.doVerify(VerifyProcessSuite.java:43)
      	at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
      	... 27 more
      Caused by: com.liferay.portlet.documentlibrary.NoSuchFileException: /Users/mika/Development/Home/javaguru-git/bundles/data/document_library/22666/0/ddm/com.liferay.portlet.dynamicdatalists.model.DDLRecord/24510/1.0/attachment/attachment_1.0.0/attachment
      	at com.liferay.portlet.documentlibrary.store.FileSystemStore.getFile(FileSystemStore.java:191)
      	at com.liferay.portlet.documentlibrary.store.BaseStore.getFile(BaseStore.java:257)
      	at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFile(StoreProxyImpl.java:124)
      	at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFile(SafeFileNameStoreWrapper.java:176)
      	at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFile(DLStoreImpl.java:245)
      	at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFile(DLStoreUtil.java:326)
      	at com.liferay.portal.verify.VerifyDynamicDataMapping.addFileEntry(VerifyDynamicDataMapping.java:92)
      	at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:412)
      	at com.liferay.portal.verify.VerifyDynamicDataMapping.updateDDLFileUploadReferences(VerifyDynamicDataMapping.java:282)
      	at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:375)
      	at com.liferay.portal.verify.VerifyDynamicDataMapping.updateFileUploadReferences(VerifyDynamicDataMapping.java:354)
      	at com.liferay.portal.verify.VerifyDynamicDataMapping.doVerify(VerifyDynamicDataMapping.java:180)
      	at com.liferay.portal.verify.VerifyProcess.verify(VerifyProcess.java:58)
      	... 30 more
      Stopping the server due to unexpected startup errors
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              john.co John Co
              Reporter:
              mika.koivisto Mika Koivisto
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                7 years, 32 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1