Details

      Description

      Test failures:

      The following 15 TCK test cases fail because an exception is thrown (intentionally) from the test portlet:

      V2AddlPortletTests_SPEC2_15_EventEventHandling_event10
      V2AddlPortletTests_SPEC2_15_EventEventHandling_event11
      V2AddlPortletTests_SPEC2_15_EventEventHandling_event15
      V2AddlPortletTests_SPEC2_15_EventEventHandling_event16
      V2AddlPortletTests_SPEC2_15_EventEventHandling_event5
      V2AddlPortletTests_SPEC2_15_EventEventHandling_event6
      V2AddlPortletTests_SPEC2_15_EventEventHandling_event7
      V2AddlPortletTests_SPEC2_15_EventEventHandling_event8
      V2AddlPortletTests_SPEC2_15_EventEventHandling_event9
      V2AddlPortletTests_SPEC2_15_EventEventHandling_eventProcessEvent1
      V2AddlPortletTests_SPEC2_15_EventEventHandling_eventProcessEvent2
      V2AddlPortletTests_SPEC2_15_EventEventHandling_eventProcessEvent3
      V2AddlPortletTests_SPEC2_15_EventEventHandling_eventProcessEvent5
      V2AddlPortletTests_SPEC2_15_EventEventHandling_eventProcessEvent6
      V2AddlPortletTests_SPEC2_15_EventEventHandling_eventProcessEvent9

      Background:

      In Liferay, we save exception thrown in Action phase and Event phase into the request, and re-throw it when invoking Render later, in InvokerPortletImpl. See method processException and render.

      PLT 4.6.7 states:

      If a portlet throws an exception during action phase processing, the portlet container must ignore all operations on the ActionResponse including any events that were set.
      If a portlet throws an exception during event phase processing, the portlet container must ignore all operations on the EventResponse including events that were set.

      ...

      The manner in which the exception is communicated to the end user is left to the portal implementation.

      There's no requirement about whether portlet should be rendered if there's exception in Action or Event phase.

      And the TCK expects the exception not to prevent portlet from rendering.

        Attachments

          Activity

            People

            Assignee:
            brian.chan Brian Chan
            Reporter:
            dante.wang Dante Wang
            Recent user:
            Csaba Turcsan
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 49 weeks, 1 day ago

                Packages

                Version Package
                7.0.0 DXP FP36
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                Master