Portletrequest.getRemoteUser(), Portletrequest.getUserPrincipal() and Portletrequest.isUserInRole() Return Null Value In WebCenter PS3+ (Doc ID 1314948.1)

Last updated on NOVEMBER 07, 2012

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:

  1. Install WebCenter Suite 11.1.1.4 or above.

  2. 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()

  3. Build the portlets and deploy them as a WSRP producer to the WC_Portlet managed server.

  4. Register the portlet producer with WebCenter Spaces.

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

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms