-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.1.30 EE GA3, 6.1.X EE, 6.2.0 CE GA1, 6.2.X EE
-
Fix Version/s: 6.1.X EE, 6.2.1 CE GA2, 6.2.X EE
-
Component/s: Site Templates
-
Environment:LIFERAY VERSION: 6.1 GA3
OPERATING SYSTEM: Red Hat Enterprise 6
APPLICATION SERVER: JBoss 6.0 EAP
JAVA VIRTUAL MACHINE: Java 6
DATABASE: SQL Server 2008 R2
-
Branch Version/s:6.2.x, 6.1.x
-
Backported to Branch:Committed
-
Story Points:4
-
Git Pull Request:
Issue: When a page in a site template is deleted from a site but is still referenced in a site in an unlinked(not propagated) state, Liferay believes the page is still linked and attempts to view the the page in manage pages causes an NoSuchLayoutException to be thrown.
Steps to reproduce
1)Create a site template with a few pages
2)Create a site based on that site template
3)Unlink the site by un-checking the Enable propagation of changes from the site template <template> checkbox in the Site Settings detail tab
4)Delete a page in the site template
5)Navigate to the Site Pages section in control panel for the site you created
6)Verify that an NoSuchLayoutException is thrown
21:18:34,368 ERROR [http-bio-8080-exec-4][IncludeTag:253] Current URL /group/control_panel/manage?p_p_id=156&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10710&refererPlid=10183 generates exception: com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {uuid=9ba66c f5-e5f3-4348-817a-398a58c43e57, groupId=10339, privateLayout=true} 21:18:34,372 ERROR [http-bio-8080-exec-4][IncludeTag:157] com.liferay.portal.NoSuchLayoutException: No Layout exists with the key {uuid=9ba66cf5-e5f3-4348-817a-398a58c43e57, groupId=10339, privateLayout=true} at com.liferay.portal.service.persistence.LayoutPersistenceImpl.findByUUID_G_P(LayoutPersistenceImpl.java:1571) at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88) at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56) at com.liferay.portal.service.base.LayoutLocalServiceBaseImpl.getLayoutByUuidAndGroupId(LayoutLocalServiceBaseImpl.java:421) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:117) at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:60) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113) at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:134) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113) at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62) at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:52) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113) at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56) at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:113)
- causes
-
LPS-61946 The page does not update/refresh when it is being reset to its site template
- Closed