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

Forced site template merge gives an error

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.2.0 CE M4
    • Fix Version/s: 6.2.0 CE M5
    • Component/s: Site Templates
    • Environment:
      tested on liferay-portal / master fetched on (01/21/2013)
    • Fix Priority:
      4

      Description

      When you forcibly fetch a site template, the next page shows an error, only additional page refresh gets you the page content.

      Steps to reproduce
      (1) create site A base on a template X.
      (2) go to page in site A
      (3) move portlet in page to some other (different) position
      (4) refresh page, you'll see "This page has been changed since the last update from the site template. No further updates from the site template will be applied. Click Reset to overwrite the changes and receive updates from the site template." in the Dockbar
      (5) press Reset

      Result:
      You get an error:
      "Not Found

      The requested resource was not found.

      http://localhost:8080/web/volleyball/home"

      and following exception in log:

      16:34:06,113 ERROR [http-bio-8080-exec-16][MainServlet:413] com.liferay.portal.NoSuchLayoutException: No Layout exists with the primary key 10566
      com.liferay.portal.NoSuchLayoutException: No Layout exists with the primary key 10566
      at com.liferay.portal.service.persistence.LayoutPersistenceImpl.findByPrimaryKey(LayoutPersistenceImpl.java:8492)
      at com.liferay.portal.service.persistence.LayoutPersistenceImpl.findByPrimaryKey(LayoutPersistenceImpl.java:8509)
      at com.liferay.portal.service.base.LayoutLocalServiceBaseImpl.getLayout(LayoutLocalServiceBaseImpl.java:394)
      at sun.reflect.GeneratedMethodAccessor382.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
      at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:200)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:132)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:80)
      at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
      at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:162)
      at $Proxy27.getLayout(Unknown Source)
      at com.liferay.portal.service.LayoutLocalServiceUtil.getLayout(LayoutLocalServiceUtil.java:181)
      at com.liferay.portal.servlet.MainServlet.processGroupInactiveRequest(MainServlet.java:1058)
      at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:404)
      ...

      After page refresh, page looks fine, the site template changes are present on the page.

        Attachments

          Activity

            People

            Assignee:
            eduardo.garcia Eduardo García
            Reporter:
            josef.sustacek Josef Šustáček
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 44 weeks, 2 days ago

                Packages

                Version Package
                6.2.0 CE M5