Bug 793557 (JBEPP-636)

Summary: NullPointerException with LDAP in GroupDAOImpl.findGroups
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Martin Weiler <mweiler>
Component: PortalAssignee: Thomas Heute <theute>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.0.1.GACC: boleslaw.dawidowicz, cjlyons
Target Milestone: ---   
Target Release: 5.1.0.CR01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-636
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-23 07:58:44 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:

Description Martin Weiler 2010-11-15 13:51:43 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A000000458B9
project_key: JBEPP

After configuring EPP 5 with LDAP, configuring portlets in edit mode fails with a NullPointerException:

Caused by: java.lang.NullPointerException
	at org.exoplatform.services.organization.idm.GroupDAOImpl.findGroups(GroupDAOImpl.java:364)
	at org.exoplatform.webui.organization.UIGroupMembershipSelector.<init>(UIGroupMembershipSelector.java:68)
	... 76 more


This is caused by a failing null check in the findGroups method. If parent is null and id is not null a NPE is thrown:

if ((parent == null && id == null) || (id != null && id.equals(parent.getId())))

Comment 1 boleslaw.dawidowicz 2010-11-22 18:56:28 UTC
Sync of https://jira.jboss.org/browse/GTNPORTAL-1677

Comment 2 boleslaw.dawidowicz 2010-11-22 19:39:50 UTC
Need to sync fix from GateIn trunk http://fisheye.jboss.org/changelog/gatein/portal/trunk?cs=5207

Comment 3 Thomas Heute 2010-11-22 21:07:03 UTC
Link: Added: This issue is related to GTNPORTAL-1677