Bug 888617
| Summary: | JPP6 + LDAP: ArrayIndexOutOfBoundsException | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Portal Platform 6 | Reporter: | Tomas Kyjovsky <tkyjovsk> | ||||||||
| Component: | Portal | Assignee: | Default User <jbpapp-maint> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 6.0.0 | CC: | bdawidow, epp-bugs, theute | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2013-04-16 08:55:27 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 665840 [details]
stack trace
Created attachment 665842 [details]
webUI code displayed instead of table
Created attachment 665843 [details]
user with membership type "member" displayed twice
Exception has been fixed and should not happen in ER5
For duplicated entries you need to also change this config option to "true" in idm-configuration.xml
<!-- if "associationMembershipType" option is used and this option is set to true
then Membership with MembershipType configured to be stored as PicketLink IDM association
will not be stored as PicketLink IDM Role -->
<field name="ignoreMappedMembershipType">
<boolean>false</boolean>
</field>
This needs to be done before first start and on clean db to prevent duplicated membership roles from being created.
The exception no longer appears in JPP-6.0.0.ER5 however duplicated entries are still present even with ignoreMappedMembershipType set to true before first run. I created a separate bug #902894 for the duplicate memberships. |
Description of problem: When JPP is configured with LDAP provider an ArrayIndexOutOfBoundsException occurs when working with Group management in Users and Groups Management portlet. Bare webUI code appears instead of user-group memberships table. Version-Release number of selected component (if applicable): JPP-6.0.0.ER4.2 LDAPs (all supported): msad2008, msad2008R2, msad2012, opends12, opends20, opends22u1, openldap24, oracleds11g, rhds71, rhds81, rhds82, rhds90, sunds61 Steps to Reproduce: 1. configure JPP-6.0.0.ER4.2 with any of the supported LDAP server 2. - sign in as root - go to Group management tab of Users and Groups Management portlet a) - go to Platform / Users b) - go to Platform / Guests - add mary,demo as members Actual results: ArrayIndexOutOfBoundsException in server log (attached) Displayed webUI code: SHARED/bootstrap window.require(["SHARED/base","SHARED/webui-ext","SHARED/portalControl","SHARED/skin","SHARED/uiForm"],function(base,webuiExt,portalControl,skin) { webuiExt.UITree.init('UIGroupExplorer', 'CollapseIcon',false,portalControl);base.Browser.onLoad();}); Expected results: No exceptions, no webUI code. Users-groups memberships table displayed. Additional info: - Looks like this only affects groups on deeper levels. Top-level groups are not affected (Customers, Organization, Partners, Platform). - When user has membership type "member" this membership is displayed twice in the table. - This problem doesn't occur on a clean JPP-6.0.0.ER4.2 installation (with no LDAP setup). - This problem didn't occur on JPP-6.0.0.ER3.