Portletrequest.getRemoteUser(), Portletrequest.getUserPrincipal() and Portletrequest.isUserInRole() Return Null Value In WebCenter PS3+
(Doc ID 1314948.1)
Last updated on NOVEMBER 03, 2022
Applies to:
Oracle WebCenter Portal - Version 11.1.1.4.0 to 11.1.1.6.0 [Release 11g]Information in this document applies to any platform.
Symptoms
Portletrequest.getRemoteUser(), Portletrequest.getUserPrincipal() and Portletrequest.isUserInRole() return NULL value in WebCenter PS3.
STEPS
The issue can be reproduced at will with the following steps:
- Install WebCenter Suite 11.1.1.4 or above.
- Create a simple JSR 286 portlet.
In the doView method of the portlet class make a call to any of the following APIs and output it to System out:
Portletrequest.getRemoteUser()
Portletrequest.getUserPrincipal()
Portletrequest.isUserInRole() - Build the portlets and deploy them as a WSRP producer to the WC_Portlet managed server.
- Register the portlet producer with WebCenter Spaces.
- Login to WebCenter Spaces and place the portlet on a page.
Review system output.
You will see the above APIs return NULL value.
Changes
Upgraded a Producer application from WebCenter PS2 to PS3 or higher.
This was working fine in previous release.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |