My Oracle Support Banner

Unable to set Visibility of Pages (Hide/Show) Using EL Expressions in WebCenter Portal due to EL Expressions Being Reset (Doc ID 2681777.1)

Last updated on JUNE 18, 2020

Applies to:

Oracle WebCenter Portal - Version 12.2.1.3.191015 and later
Information in this document applies to any platform.

Symptoms


ACTUAL BEHAVIOR

Unable to set visibility of Pages (Hide/Show) using EL Expressions in WebCenter Portal due to EL expressions being reset.

Trying to set the Page Visibility per the following documentation:

Building Portals with Oracle WebCenter Portal
9 Managing a Portal Page
Showing or Hiding a Page in the Portal Navigation
 

EXPECTED BEHAVIOR

Expect to be able to hide/show pages using EL expressions.

STEPS

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

  1. Create a test portal.
     
  2. Create a page in the Portal:
    e.g.:
     
    SecurePage 
  3. Go to the Portal Security settings

    • Select the Roles Tab

    • Create a new Role: 

    • Role Name: SecureRole
      Role Template: Authenticated-User 

    • Select the SecureRole and then "Edit Permissions" 

    • Select the following check box and click Save:
       
         View Pages and Content

    • Select the Members Tab

      Add a users as members of the portal with the following roles:

      testuser1 - SecureRole
      testuser2 - Viewer 

  4. Edit the Portal

    • Get the Page Information for SecurePage

    • Set the following EL expression in the Visibility filed for SecurePage:

      #{WCSecurityContext.userInScopedRole['SecureRole'] 

  5. Connect to WebCenter Portal as testuser1 and navigate to the Portal.
    Confirm the user can see SecurePage. 

  6. Connect to WebCenter Portal as testuser2 and navigate to the Portal.
    Note the user can see the SecurePage2 as well.
    This is unexpected. 

  7. Edit the Portal

    • Get the Page Information for SecurePage

    • Note the Visibility Field is back to default (check box selected)
      The EL expression is lost!

      Note: It is observed that a few times the EL expression is retained but eventually it gets reset. 



Changes

 

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


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