[
https://issues.apache.org/jira/browse/PLUTO-477?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Dalquist resolved PLUTO-477.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.1.6
2.0.0
Allow the UserInfoService to return a null map by short-circuting in
PortletRequestImpl.createUserInfoMap() and returning null immediately when the
UserInfoService returns null.
Added unit test to verify fix
Cleaned up javadocs on UserInfoService to more accurately describe the
implementation contract.
> PortletRequestImpl throws a NullPointerException when getting USER_INFO for
> unauthenticated users
> -------------------------------------------------------------------------------------------------
>
> Key: PLUTO-477
> URL: https://issues.apache.org/jira/browse/PLUTO-477
> Project: Pluto
> Issue Type: Bug
> Components: portlet container
> Affects Versions: 2.0.0, 1.1.5
> Reporter: Eric Dalquist
> Assignee: Eric Dalquist
> Fix For: 2.0.0, 1.1.6
>
>
> PLT.17.2 states:
> If the request is done in the context of an un-authenticated user, calls
> to the getAttribute method of the request using the USER_INFO constant must
> return null.
> Currently the PortletRequestImpl.createUserInfoMap() does not handle the case
> of UserInfoService.getUserInfo returning null for an unauthenticated user and
> will throw a NullPointerException in this case.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.