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 pl...@jakarta.apache.org on 2004/10/15 02:28:51 UTC

[jira] Updated: (PLUTO-73) PortletControlParameter incorrectly encodes null values as "null"

The following issue has been updated:

    Updater: Ken Weiner (mailto:kweiner@unicon.net)
       Date: Thu, 14 Oct 2004 5:27 PM
    Comment:
Patch for fix described above.
    Changes:
             Attachment changed to patch.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/PLUTO-73?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/PLUTO-73

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: PLUTO-73
    Summary: PortletControlParameter incorrectly encodes null values as "null"
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Pluto
 Components: 
             portal driver
   Versions:
             Current CVS

   Assignee: 
   Reporter: Ken Weiner

    Created: Thu, 14 Oct 2004 5:27 PM
    Updated: Thu, 14 Oct 2004 5:27 PM

Description:
org.apache.pluto.portalImpl.core.PortalControlParameter encodes null parameter values as the String "null".  This means that if a render parameter is set with a null value, the request.getParameter("paramName") will return the String "null" rather than a null value.

This is why the test portlet throws an exception when you click the "Return to index" button.

I am attaching a patch to PortalControlParameter that checks for null before trying to encode the parameter.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira