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

When using resourceImporter reimporting a theme with content throws a LayoutFriendlyURLsException

    Details

      Description

      Steps to reproduce:

      1. Install a clean Liferay bundle
      2. Deploy the attached resources-importer-web-6.2.10.4.war
      3. Deploy the customer's theme (I have it on my external HD; it is too big to attach to the ticket)
      4. Note that the theme is successfully deployed and the content is deployed to a site called 'Portal'
      5. Re-deploy the customer's theme

      Expected Result:
      The theme will be deployed and/or the content will be imported.
      Actual Result:
      The following error is thrown in the logs:

      WARN  [liferay/hot_deploy-1][FileSystemImporter:1012] Unable to import layout {"layoutTemplateId":"1_column","columns":[[{"portletId":"56","portletPreferences":{"portletSetupUseCustomTitle":"true","portletSetupTitle_en_US":"","portletSetupCss":{"advancedData":{"customCSSClassName":"portlet-bleed-large"}},"groupId":"36579","articleId":"HeroCarousel.xml","portletSetupShowBorders":"false"}},{"portletId":"56","portletPreferences":{"portletSetupUseCustomTitle":"true","portletSetupTitle_en_US":"","groupId":"36579","articleId":"4up.xml","portletSetupShowBorders":"false"}},{"portletId":"56","portletPreferences":{"portletSetupUseCustomTitle":"true","portletSetupTitle_en_US":"","portletSetupCss":{"advancedData":{"customCSSClassName":"portlet-bleed-large"}},"groupId":"36579","articleId":"Tempo.xml","portletSetupShowBorders":"false"}},{"portletId":"56","portletPreferences":{"portletSetupUseCustomTitle":"true","portletSetupTitle_en_US":"","groupId":"36579","articleId":"About.xml","portletSetupShowBorders":"false"}}]],"name":"SERVICES HOME","friendlyURL":"/home","title":"SERVICES HOME"}
      com.liferay.portal.LayoutFriendlyURLsException
      	at com.liferay.portal.service.impl.LayoutLocalServiceHelper.validateFriendlyURLs(LayoutLocalServiceHelper.java:429)
      	at com.liferay.portal.service.impl.LayoutLocalServiceHelper.validate(LayoutLocalServiceHelper.java:275)
      	at com.liferay.portal.service.impl.LayoutLocalServiceImpl.addLayout(LayoutLocalServiceImpl.java:293)
      	at sun.reflect.GeneratedMethodAccessor1216.invoke(Unknown Source)
      	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:115)
      	at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:183)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:141)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.sun.proxy.$Proxy34.addLayout(Unknown Source)
      	at com.liferay.portal.service.LayoutLocalServiceUtil.addLayout(LayoutLocalServiceUtil.java:476)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayout(FileSystemImporter.java:978)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1239)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.setUpSitemap(FileSystemImporter.java:1747)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.doImportResources(FileSystemImporter.java:1274)
      	at com.liferay.resourcesimporter.util.ResourceImporter.importResources(ResourceImporter.java:47)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.importResources(ResourcesImporterHotDeployMessageListener.java:128)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.initialize(ResourcesImporterHotDeployMessageListener.java:77)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.onDeploy(ResourcesImporterHotDeployMessageListener.java:90)
      	at com.liferay.portal.kernel.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:55)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:67)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
      	at java.lang.Thread.run(Thread.java:745)
      19:08:54,270 ERROR [liferay/hot_deploy-1][SerialDestination:70] Unable to process message {destinationName=liferay/hot_deploy, response=null, responseDestinationName=null, responseId=null, payload=null, values={companyId=0, groupId=0, command=deploy, servletContextName=BW-theme}}
      com.liferay.portal.kernel.messaging.MessageListenerException: com.liferay.portal.LayoutFriendlyURLsException
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
      	at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:67)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: com.liferay.portal.LayoutFriendlyURLsException
      	at com.liferay.portal.service.impl.LayoutLocalServiceHelper.validateFriendlyURLs(LayoutLocalServiceHelper.java:429)
      	at com.liferay.portal.service.impl.LayoutLocalServiceHelper.validate(LayoutLocalServiceHelper.java:275)
      	at com.liferay.portal.service.impl.LayoutLocalServiceImpl.addLayout(LayoutLocalServiceImpl.java:293)
      	at sun.reflect.GeneratedMethodAccessor1216.invoke(Unknown Source)
      	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:115)
      	at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:183)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:141)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
      	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
      	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
      	at com.sun.proxy.$Proxy34.addLayout(Unknown Source)
      	at com.liferay.portal.service.LayoutLocalServiceUtil.addLayout(LayoutLocalServiceUtil.java:476)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayout(FileSystemImporter.java:978)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.addLayouts(FileSystemImporter.java:1239)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.setUpSitemap(FileSystemImporter.java:1747)
      	at com.liferay.resourcesimporter.util.FileSystemImporter.doImportResources(FileSystemImporter.java:1274)
      	at com.liferay.resourcesimporter.util.ResourceImporter.importResources(ResourceImporter.java:47)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.importResources(ResourcesImporterHotDeployMessageListener.java:128)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.initialize(ResourcesImporterHotDeployMessageListener.java:77)
      	at com.liferay.resourcesimporter.messaging.ResourcesImporterHotDeployMessageListener.onDeploy(ResourcesImporterHotDeployMessageListener.java:90)
      	at com.liferay.portal.kernel.messaging.HotDeployMessageListener.doReceive(HotDeployMessageListener.java:55)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      	... 5 more

      Reproduced in:

      6.2.x? Yes d60f16da07d0cbcccd35e220c7e2e0ea6130c415
      Plugins ee-6.2.x: bb6ade485046fe379931a7367b3d817cfd30a8cc

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ian.song Ian Song (Inactive)
                Reporter:
                steven.smith Steven Smith (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 41 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 Beta 2