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

Event consumer portlet has portlet preferences of event producer portlet

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 5.1.2, 5.2.3, 6.0.5 GA
    • Fix Version/s: 6.2.0 CE GA1
    • Labels:
      None
    • Liferay Contributor's Agreement:
      Accept

      Description

      Clone of http://issues.liferay.com/browse/LPS-387 - problem still persists.

      Key problem is that preferences are copied from producer's ActionRequest into new EventRequest and aren't loaded for consuming portlet from database.

      See:

      LayoutAction.processEvent(
      PortletRequestImpl portletRequestImpl,
      StateAwareResponseImpl stateAwareResponseImpl,
      List<LayoutTypePortlet> layoutTypePortlets,
      LayoutTypePortlet layoutTypePortlet, Portlet portlet, Event event){
      ...
      PortletPreferences portletPreferences =
      portletRequestImpl.getPreferencesImpl();

      EventRequestImpl eventRequestImpl = EventRequestFactory.create(
      request, portlet, invokerPortlet, portletContext, windowState,
      portletMode, portletPreferences,
      layoutTypePortlet.getLayout().getPlid());
      ...
      }

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 45 weeks, 1 day ago