Portlets using request.getPreferences do not Work after Upgrading to WebCenter PS3 or Later (Doc ID 1338073.1)

Last updated on JULY 18, 2017

Applies to:

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

Symptoms


Portlets using request.getPreferences do not work after upgrading to WebCenter PS3 or later.  The following code works fine before the upgrade and it will correctly set the value:

request.getPreferences().setValue("setting1", "test");
request.getPreferences().store();

However after upgrade the above code no longer works.

STEPS

The issue can be reproduced at will with the following steps:

  1. Open your producer application that has calls to request.getPreferences in JDeveloper 11.1.1.4.0 or later to upgrade it from a previous release.

  2. Deploy the producer to a WebCenter domain in the WC_Portlet managed server.

  3. Add the Portlet to a page in WebCenter Spaces or a custom WebCenter application.
    Here you will find your Portlet no longer works.

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