You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "David Hay (JIRA)" <ji...@apache.org> on 2006/08/10 22:38:13 UTC

[jira] Created: (PLUTO-246) PortalURLParser should URLEncode query string parameters

PortalURLParser should URLEncode query string parameters
--------------------------------------------------------

                 Key: PLUTO-246
                 URL: http://issues.apache.org/jira/browse/PLUTO-246
             Project: Pluto
          Issue Type: Bug
          Components: portal driver
    Affects Versions: 1.1.0-beta1
            Reporter: David Hay


The PortalURLParser builds a query string for action window parameters.  These parameters should be URL encoded to allow names and values to contain characters such as '&' and other special characters.

Change line 219-220 as follows:

                    query.append("&").append(URLEncoder.encode(param.getName(), "UTF-8")).append("=")
                    		.append(URLEncoder.encode(param.getValues()[i], "UTF-8"));



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (PLUTO-246) PortalURLParser should URLEncode query string parameters

Posted by "David Hay (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/PLUTO-246?page=all ]

David Hay updated PLUTO-246:
----------------------------

    Attachment: PortalURLParser.java-encodeURL.patch

Attaching patch to PortalURLParser.java that handles the URL encoding and any exceptions.

> PortalURLParser should URLEncode query string parameters
> --------------------------------------------------------
>
>                 Key: PLUTO-246
>                 URL: http://issues.apache.org/jira/browse/PLUTO-246
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.0-beta1
>            Reporter: David Hay
>         Attachments: PortalURLParser.java-encodeURL.patch
>
>
> The PortalURLParser builds a query string for action window parameters.  These parameters should be URL encoded to allow names and values to contain characters such as '&' and other special characters.
> Change line 219-220 as follows:
>                     query.append("&").append(URLEncoder.encode(param.getName(), "UTF-8")).append("=")
>                     		.append(URLEncoder.encode(param.getValues()[i], "UTF-8"));

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (PLUTO-246) PortalURLParser should URLEncode query string parameters

Posted by "Craig Doremus (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/PLUTO-246?page=all ]

Craig Doremus resolved PLUTO-246.
---------------------------------

    Fix Version/s: 1.1.0
       Resolution: Fixed

Applied David's patch in SVN revision 434170. Please confirm this fix. Thank you!

> PortalURLParser should URLEncode query string parameters
> --------------------------------------------------------
>
>                 Key: PLUTO-246
>                 URL: http://issues.apache.org/jira/browse/PLUTO-246
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 1.1.0-beta1
>            Reporter: David Hay
>             Fix For: 1.1.0
>
>         Attachments: PortalURLParser.java-encodeURL.patch
>
>
> The PortalURLParser builds a query string for action window parameters.  These parameters should be URL encoded to allow names and values to contain characters such as '&' and other special characters.
> Change line 219-220 as follows:
>                     query.append("&").append(URLEncoder.encode(param.getName(), "UTF-8")).append("=")
>                     		.append(URLEncoder.encode(param.getValues()[i], "UTF-8"));

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira