Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1224

Portlet URL support doesn't follow JSR-168 spec

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • WW 2.2.1
    • WW 2.2.2
    • Plugin - Portlet
    • None

    Description

      The class com.opensymphony.webwork.components.URL uses the method HttpServletRequest.getQueryString() which is NOT available to portlets according to the JSR-168 specification.

      This was discovered while trying to get the WebWork example portlet working in uPortal 2.5.X. uPortal adds parameters to the URL prefixed by uP_ which are treated as framework parameters and not passed on to the targeted portlet via the JSR-168 APIs.

      In the URL class the WebWork framework is parsing the parameters off the URL which is retrieved by the HttpServletRequest.getQueryString() method. The results of this method cannot be considered valid for a portlet according to the JSR-168 specification. One possible fix would be to use the PortletActionContext.isPortletRequest() check and only perform URL inspection if not in a portlet.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            nilsga Nils-Helge Garli
            edalquist Eric Dalquist
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment