You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by ws...@ws.apache.org on 2004/09/29 01:01:32 UTC

[jira] Updated: (WSRP4J-35) ProxyPortlet should not assume that given name is available

The following issue has been updated:

    Updater: Ken Weiner (mailto:kweiner@unicon.net)
       Date: Tue, 28 Sep 2004 3:59 PM
    Comment:
Patch for portlet.xml that adds user attributes.
    Changes:
             Attachment changed to portlet-xml-patch.txt
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/WSRP4J-35?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/WSRP4J-35

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: WSRP4J-35
    Summary: ProxyPortlet should not assume that given name is available
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: WSRP4J
 Components: 
             Portlets
   Versions:
             current (nightly)

   Assignee: 
   Reporter: Ken Weiner

    Created: Tue, 28 Sep 2004 3:59 PM
    Updated: Tue, 28 Sep 2004 3:59 PM

Description:
Regarding the ProxyPortlet.fillUserProfile() method...

The code assumes that if user information (the userInfo Map) is available, then a user attribute of the name "name.given" exists.  First, this attribute might not exists, so the code should check for null.  Second, the user's given name should be represented by "user.given.name" as specified in the Portlet Specification.  Also, the user.given.name attribute should be declared in the portlet's portlet.xml deployment descriptor.  Actually, you might as well add all the attributes associated with the PersonName object in WSRP.

I will attach a patch file for the ProxyPortlet and for the portlet.xml.

By the way, I discovered this problem as soon as I configured my portal to return a non-null object from the PortletRequest.getRemoteUser() method.  This had the effect of causing the ProxyPortlet to call the fillUserProfile() method which resulted in a NullPointerException because the "name.given" attribute was not present.


---------------------------------------------------------------------
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