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 OCTOBER 09, 2023
Applies to:
Oracle WebCenter Portal - Version 12.2.1.3.191015 and laterInformation 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:
- Create a test portal.
- Create a page in the Portal:
e.g.:
SecurePage -
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
-
-
Edit the Portal
-
Get the Page Information for SecurePage
-
Set the following EL expression in the Visibility filed for SecurePage:
#{WCSecurityContext.userInScopedRole['SecureRole']
-
-
Connect to WebCenter Portal as testuser1 and navigate to the Portal.
Confirm the user can see SecurePage. -
Connect to WebCenter Portal as testuser2 and navigate to the Portal.
Note the user can see the SecurePage2 as well.
This is unexpected. -
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 |