Site pages created from a Site Template are marked as modified even if no modification is done

Description

Following are instructions for User Groups, but the same happens whenever a site template is used:

Steps to reproduce:
1. Create a new Site Template.
2. Make sure "Allow Site Administrators to Modify the Pages Associated with This Site Template" is checked.
3. Add something to the Site Template pages
4. Create a new User Group
5. Assign the previously created Site Template to either Public or Private Pages for the User Group.
6. Make sure the "Enable propagation of changes from the site template <Site Template Name>." is checked.
7. Open the pages
8. Notice the banner at the top - "This page has been changed since the last update from the site template. To avoid overwriting those changes, no further updates from the site template will be done."

Despite having made zero changes in the User Group site thus far, the dynamic template inheritance already appears broken.

Environment

Tomcat 7.0 + MySQL 5. 6.1.x GIT ID: 20cd12f0ba9f6e8d6a6f1c39edbef9081407891a. Tomcat 7.0 + MySQL 5. 6.2.x GIT ID: 20a2728cee091f72bb4888658a2d2c92df87bcc9.

Activity

Show:

ginson.ren January 30, 2012 at 10:18 PM

PASSED Manual Testing following steps in description.

Reproduced on:
Tomcat 7.0.23 + MySQL 5. 6.1.x GIT ID: 2734dc2b9034d0d18060361e040d93c1378d300c.
Tomcat 7.0.23 + MySQL 5. 6.2.x GIT ID: 2d30ead99995216d90e10ca687663b6eff320b9b.
Open the page of user group, it will display: "This page has been changed since the last update from the site template. To avoid overwriting those changes, no further updates from the site template will be done."

Fixed on:
Tomcat 7.0.25 + MySQL 5. 6.1.x GIT ID: 0c4da627d219f70cf5bdd83d4a5a80e973c4bc0f.
Tomcat 7.0.25 + MySQL 5. 6.2.x GIT ID: a20075262d089e44e6433c2d36684f4dc085b900.
Open the page of user group, it will not display that sentence.

Topolik January 27, 2012 at 2:39 AM

ginson.ren January 17, 2012 at 12:50 AM

Blocked by https://liferay.atlassian.net/browse/LPS-24876#icft=LPS-24876, I will retest this issue again when the other ticket is fixed.

ginson.ren January 16, 2012 at 7:38 PM

FAILED Manual Testing following the steps in the description.

Reproduced on:
Tomcat 7.0.23 + MySQL 5. 6.1.x GIT ID: 2734dc2b9034d0d18060361e040d93c1378d300c.
Tomcat 7.0.23 + MySQL 5. 6.2.x GIT ID: 2d30ead99995216d90e10ca687663b6eff320b9b.
Open the page of user group, it will display: "This page has been changed since the last update from the site template. To avoid overwriting those changes, no further updates from the site template will be done."

Failed on:
Tomcat 7.0.23 + MySQL 5. 6.1.x GIT ID: adba444213a4ec50e9887304e492936da4ba8d25.
Tomcat 7.0.23 + MySQL 5. 6.2.x GIT ID: 9d362d4d6f4cccaf4c1d5aed184d6509c4ee56e7.
When create a new user group with that template, page will display: "User Groups is temporarily unavailable."

ginson.ren January 12, 2012 at 9:52 PM

If user want to save a user group with pages which use template, User Groups is temporarily unavailable. The console will show error messages as follow:

05:51:43,875 ERROR [render_portlet_jsp:154] java.lang.NullPointerException at com.liferay.portlet.sites.util.SitesUtil.updateLayoutSetPrototypeLink(SitesUtil.java:888) at com.liferay.portlet.sites.util.SitesUtil.updateLayoutSetPrototypesLinks(SitesUtil.java:777) at com.liferay.portlet.usergroupsadmin.action.EditUserGroupAction.updateUserGroup(EditUserGroupAction.java:167) at com.liferay.portlet.usergroupsadmin.action.EditUserGroupAction.processAction(EditUserGroupAction.java:60) at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:175) at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:190) at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70) at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48) at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:651) at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:686) at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:361) at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:845) at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:633) at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Branch Version/s

6.1.x

Backported to Branch

Committed

Affects versions

Priority

Zendesk Support

Created January 9, 2012 at 10:12 AM
Updated June 24, 2023 at 3:39 PM
Resolved March 12, 2012 at 2:25 PM