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 "Michael Freedman (JIRA)" <ji...@apache.org> on 2009/10/16 20:20:31 UTC

[jira] Created: (PLUTO-581) org.apache.pluto.driver.url.impl.PortalURLParserImpl not properly decoding public/private render parameters

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

                 Key: PLUTO-581
                 URL: https://issues.apache.org/jira/browse/PLUTO-581
             Project: Pluto
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Michael Freedman


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);
            }
        }

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


[jira] Updated: (PLUTO-581) org.apache.pluto.driver.url.impl.PortalURLParserImpl not properly decoding public/private render parameters

Posted by "Ate Douma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma updated PLUTO-581:
----------------------------

    Fix Version/s: 2.0.2
      Component/s: portal driver

> org.apache.pluto.driver.url.impl.PortalURLParserImpl not properly decoding public/private render parameters
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PLUTO-581
>                 URL: https://issues.apache.org/jira/browse/PLUTO-581
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 2.0.0
>            Reporter: Michael Freedman
>            Assignee: Ate Douma
>             Fix For: 2.0.2
>
>
> 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);
>             }
>         }

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

        

[jira] Assigned: (PLUTO-581) org.apache.pluto.driver.url.impl.PortalURLParserImpl not properly decoding public/private render parameters

Posted by "Ate Douma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma reassigned PLUTO-581:
-------------------------------

    Assignee: Ate Douma

> org.apache.pluto.driver.url.impl.PortalURLParserImpl not properly decoding public/private render parameters
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PLUTO-581
>                 URL: https://issues.apache.org/jira/browse/PLUTO-581
>             Project: Pluto
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Michael Freedman
>            Assignee: Ate Douma
>
> 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);
>             }
>         }

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

        

[jira] Resolved: (PLUTO-581) org.apache.pluto.driver.url.impl.PortalURLParserImpl not properly decoding public/private render parameters

Posted by "Ate Douma (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ate Douma resolved PLUTO-581.
-----------------------------

    Fix Version/s: 2.1.0
       Resolution: Fixed

Fix applied, thanks Mike!

> org.apache.pluto.driver.url.impl.PortalURLParserImpl not properly decoding public/private render parameters
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: PLUTO-581
>                 URL: https://issues.apache.org/jira/browse/PLUTO-581
>             Project: Pluto
>          Issue Type: Bug
>          Components: portal driver
>    Affects Versions: 2.0.0
>            Reporter: Michael Freedman
>            Assignee: Ate Douma
>             Fix For: 2.0.2, 2.1.0
>
>
> 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);
>             }
>         }

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