[ 
https://issues.apache.org/jira/browse/PLUTO-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Gould updated PLUTO-420:
---------------------------------

    Attachment: url-parser-patch.txt

I made the following changes to the URL parser:

1) Every variable that goes into the URL gets passed through URLEncoder.encode
2) I changed it so that the render path get passed through the character 
encoder upon url generation and through the decoder upon parsing.  This means 
that if a page name has a character escape sequence (eg, 0x9), bad things could 
happen.  Not really sure how to avoid/fix this.
3) Added "+" as a character to be encoded, since the URL encoder seems to 
encode both " " and "+" as "+".  Please verify this.

> Parameters not x-www-form-urlencoded
> ------------------------------------
>
>                 Key: PLUTO-420
>                 URL: https://issues.apache.org/jira/browse/PLUTO-420
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.2.0, 1.1-286-COMPATIBILITY
>         Environment: apache-tomcat-5.5.23
> Linux
> java version "1.5.0_12"
>            Reporter: Kay Schieck
>         Attachments: testcase-patch.txt, testcase-patch.txt, 
> url-parser-patch.txt
>
>
> It seems that parameters added to a PortletURL not converted to a 
> x-www-form-urlencoded figure.
> For instance
> PortletURL.setParameter("Ä & ü", "< ö >");
> leads to
> http://localhost:8080/pluto/portal//TCK00004/__rp0x3portlet0x1jp0x1RenderRequest0x1web0x2GetPublicParameterSetNullTestPortlet_Ä
>  & ü/0x60x8ö0x80x7?"
> The key and a part of he value is not encodet.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to