Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-156

Encoding Public render parameters in a render redirect done incorrectly if url already action encoded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.0-beta
    • Impl
    • None

    Description

      If you issue a render redirect on an url that you have already called encodeActionURL on the bridge screws up big time because it merely encodes the extra public render parameters to the end of the passed in url as part of a query string. This (obviously) changes the url so that it no longer matches when used as the key to lookup the request attribute to see if this url is already action encoded. Since we don't think its action encoded (but it is) we go ahead an re-encode it turning the resulting redirect url into garbage.

      Fix is to delay adding the public render parameters to the url until after the check to see if already action encoded. When already encoded add the PRP to the querystring object that is added to the request (attribute) otherwise add to the query string.

      Attachments

        Activity

          People

            mike_freedman Michael Freedman
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: