ADF Context In Portlet Returns Always "Anonymous" After Migration To PS4

(Doc ID 1379705.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle WebCenter Portal - Version: 11.1.1.5.0 and later   [Release: 11g and later ]
Information in this document applies to any platform.

Symptoms

The environment has been upgraded from WebCenter PS2 to PS4.

WebCenter ADF portlet created originally in PS2 environment and ported to PS4 doesn't work anymore.

The following code:

ADFContext adfContext = ADFContext.getCurrent();
Prinicipal principal = adfContext.getSecurityContext().getUserPrincipal();

was working fine in the ADF portlets for the WebCenter PS2.

After migration to PS4 the code returns always "anonymous" and not principal of currently logged in user.


Changes

The environment has been upgraded from WebCenter PS2 to PS4.

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