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

Parameters containing URIs with query portion are passed incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.0
    • portal driver
    • None

    Description

      Some URL's are of the form

      (a) http://www.example.com/test?item=pluto.apache.com

      others are of the form

      (b) http://www.example.com/test?item=pluto.apache.com/wiki?id=1234

      In (b), the special characters get encoded as %F3's, etc. When it gets to processAction method in the portlet, the URI of concern (the 'item' parameter in this case) looks fine. By this parameters gets to the doView, everything after the '?' is lost. The patch I am including properly encodes the '?' such that the '?' is not misinterpreted. I have also added comments to the section of code pertaining to this, so that if there are other special characters that need to be handled in the future it is clear where these should be added.

      -Ajay Panagariya

      Attachments

        1. pluto-396.patch
          1 kB
          Ajay Panagariya

        Activity

          People

            cdoremus Craig Doremus
            apanagar Ajay Panagariya
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: