Pluto
  1. Pluto
  2. PLUTO-581

org.apache.pluto.driver.url.impl.PortalURLParserImpl not properly decoding public/private render parameters

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.2, 2.1.0
    • Component/s: portal driver
    • Labels:
      None

      Description

      PortalURLParserImpl doubly encodes public/private render parameters into the path portion of the ResourceURL but on return its parser only decodes once.

      See encodeMultiValues() to see the double encoding.

      Look at decodePublicParameter() to see the single decode. Instead this method should use the same decoding strategy as decodeParameter(). namely it needs the following code added after the call to split up the values into an array of values:

      for (int i = 0; i < paramValues.length;i++){
      try

      { paramValues[i] = URLDecoder.decode(paramValues[i], "UTF-8"); }

      catch (UnsupportedEncodingException e)

      { LOG.warn(e.getMessage(),e); }

      }

        Activity

        Michael Freedman created issue -
        Ate Douma made changes -
        Field Original Value New Value
        Assignee Ate Douma [ adouma ]
        Ate Douma made changes -
        Fix Version/s 2.0.2 [ 12314872 ]
        Component/s portal driver [ 11205 ]
        Ate Douma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.1.0 [ 12315040 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12479684 ] Default workflow, editable Closed status [ 12565137 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12565137 ] jira [ 12585869 ]

          People

          • Assignee:
            Ate Douma
            Reporter:
            Michael Freedman
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development