Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-486

The USER_INFO map is re-created every time the USER_INFO attribute is retrieved using getAttribute() on org.apache.pluto.internal.impl.PortletRequestImpl

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.5
    • 1.2.0, 2.0-refactoring, 1.1.6
    • portlet container
    • None
    • Tomcat 5.5.26

    Description

      The method getAttribute() on org.apache.pluto.internal.impl.PortletRequestImpl currently handles the USER_INFO attribute as follows:

      if (PortletRequest.USER_INFO.equals(name))

      { return createUserInfoMap(); }

      It would be nice if the USER_INFO data were saved into a request attribute, instead of re-creating the map every time. For example:

      if (PortletRequest.USER_INFO.equals(name)) {
      Map userInfoMap = (Map) getHttpServletRequest().getAttribute(name);
      if (userInfoMap == null)

      { userInfoMap = createUserInfoMap(); getHttpServletRequest().setAttribute(name, userInfoMap); }

      return userInfoMap;
      }

      Attachments

        1. P486-1.1.x-Rev656347.diff
          0.8 kB
          Nikita Dubrovsky

        Activity

          People

            edalquist Eric Dalquist
            nikd Nikita Dubrovsky
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: