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

Cannot invoke an action in custom portlet rendered through another custom portlet using <liferay-portlet:runtime>

    Details

      Description

      Steps to reproduce:

      1-Create a new MVC portlet (or use attached Action Portlet) that uses an action, and add a button to invoke that action. Put some logging info to know if action was invoked.
      2-Create another MVC portlet (or use attached Parent Portlet) that uses <liferay-portlet:runtime> to render the first portlet (Action portlet).
      3-Try to click in the action button.

      Expected result: Action is invoked.
      Actual result: There is an error in logs an action isn't invoked:

      WARN  [http-bio-8080-exec-7][SecurityPortletContainerWrapper:630] Reject process action for http://localhost:8080/web/guest/action on ActionPortlet_WAR_ActionPortletportlet
      

      Workaround (notice this could open a CSRF issue for this portlet)
      Add the embedded portlet as one of the ignored portlets in this property:

      auth.token.ignore.portlets=82,ActionPortlet_WAR_ActionPortletportlet
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 1 day ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.4 CE GA5
                  6.2.X EE