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

        Alexey Zavizionov created issue -
        Alexey Zavizionov made changes -
        Field Original Value New Value
        Summary Struts bridges: render phase of portlet doesn't remove the attr RENDER_CONTEXT from the portlet session Struts bridge: render phase of portlet doesn't remove the attr RENDER_CONTEXT from the portlet session
        Alexey Zavizionov made changes -
        Component/s struts [ 11676 ]
        Alexey Zavizionov made changes -
        Affects Version/s 1.0.2-dev [ 12312332 ]
        Priority Major [ 3 ] Critical [ 2 ]
        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);
        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;
        ===/\=/\=/\======
        Alexey Zavizionov made changes -
        Issue Type Task [ 3 ] Bug [ 1 ]
        Ate Douma made changes -
        Assignee Ate Douma [ adouma ]
        Ate Douma made changes -
        Fix Version/s 1.0.2 [ 12312332 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development