Portals Bridges
  1. Portals Bridges
  2. PB-59

Struts bridge: render phase of portlet doesn't remove the attr RENDER_CONTEXT from the portlet session

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.0.3
    • Component/s: struts
    • Labels:
      None
    • Environment:
      tomcat 5.5.17, exo-portlet-container

      Description

      After the action phase, where set attribute RENDER_CONTEXT in the portlet session, the render phase doesn't remove the attribute RENDER_CONTEXT in the portlet session, because the pageURL == null .
      Why it hapens?
      code:
      String pageURL = getStrutsPageURL(request);

      Otherwise, in StrutsPortlet.processRequest the code portletSession.removeAttribute(RENDER_CONTEXT)
      must be achieved whether pageURL null or not.

      In the method StrutsPortlet.processRequest need to change the code:
      ===\/=\/=\/======
      if (pageURL == null)
      path = defaultPage;
      else
      {
      path = pageURL;

      ===/\=/\=/\======

      with the code:
      ===\/=\/=\/======
      if (pageURL == null)
      path = defaultPage;
      else
      path = pageURL;
      ===/\=/\=/\======

        Activity

        Hide
        Ate Douma added a comment -

        Fixed

        Show
        Ate Douma added a comment - Fixed
        Hide
        Alexey Zavizionov added a comment -

        Thanks!

        Show
        Alexey Zavizionov added a comment - Thanks!

          People

          • Assignee:
            Ate Douma
            Reporter:
            Alexey Zavizionov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development