Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-59

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0.3
    • 1.0.3
    • struts
    • None
    • 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;
      ===/\=/\=/\======

      Attachments

        Activity

          People

            ate Ate Douma
            exoman Alexey Zavizionov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: