-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: 7.2.10 DXP FP8, 7.2.10.3 DXP SP3, 7.2.X, 7.3.4 CE GA5, 7.3.5 CE GA6, 7.3.10 DXP GA1, Master
-
Component/s: Pages > Page Administration
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
If you create a fragment over add_layout.jsp and use liferay-runtime to embed a portlet inside this jsp, the behavior of the portlet changes whether if you call it from "add page" or "copy page".
When the pop up who renders the add_layout is called there's a difference based on the caller.
Add page generates a renderUrl "p_p_lifecycle=0" .
Copy page generates an actionUrl "p_p_lifecycle=1"
When the liferay-runtime is called from a renderUrl the params from the parent request are being copied, but when is called from an actionUrl they aren't being copied, this generates an inconsistent behavior.
Steps to reproduce:
- Go to Site Builder
- Add a new page
- Select widget page
- Inspect modal url (in network console it should be something like /group/guest/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet&p_p_lifecycle=0&p_p_state=pop_up&p_p_mode=view&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_mvcRenderCommandName=%2Flayout%2Fadd_layout&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_backURL=%2Fgroup%2Fguest%2F%7E%2Fcontrol_panel%2Fmanage%3Fp_p_id%3Dcom_liferay_layout_admin_web_portlet_GroupPagesPortlet%26p_p_lifecycle%3D0%26p_p_state%3Dmaximized%26p_v_l_s_g_id%3D20122%26p_p_auth%3D3x5yv5e3&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_selPlid=0&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_privateLayout=false&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_type=content&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_masterLayoutPlid=0&p_p_auth=3x5yv5e3&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_bodyCssClass=dialog-iframe-popup)
- Go to Sites builder
- Copy any page
- Inspect modal url (in network console it should be something like /group/guest/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet&p_p_lifecycle=1&p_p_state=pop_up&p_p_mode=view&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_mvcRenderCommandName=%2Flayout%2Fadd_layout&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_sourcePlid=5&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_privateLayout=false&p_auth=3h1RbjVj&p_p_auth=3x5yv5e3&_com_liferay_layout_admin_web_portlet_GroupPagesPortlet_bodyCssClass=dialog-iframe-popup)
Expected result:
Both url's have the same p_p_lifecycle argument.
Current result:
copy page have a different p_p_lifecycle than add page