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

Copy page generates ActionUrl but add page generates renderUrl leading to an inconsistent behavior

    Details

      Description

      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:

      1. Go to Site Builder
      2. Add a new page
      3. Select widget page
      4. 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)
      5. Go to Sites builder
      6. Copy any page
      7. 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

        Attachments

          Activity

            People

            Assignee:
            yang.cao Yang Cao
            Reporter:
            jorge.garcia Jorge García Jiménez
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              49 weeks, 3 days ago

                Packages

                Version Package
                7.2.10 DXP FP8
                7.2.10.2 DXP SP3
                7.2.X
                7.3.4 CE GA5
                7.3.5 CE GA6
                7.3.10 DXP GA1
                Master