My Oracle Support Banner

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

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

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.