Bug 793556 (JBEPP-635)

Summary: StackOverflowError if LDAP groups contain circular cross references
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, epp-bugs
Target Milestone: ---   
Target Release: 5.1.0.CR01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-635
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-25 08:29: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:37:20 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000004TRXx
project_key: JBEPP

Having configured to read groups from LDAP, EPP 5.0.1.GA fails to start with the following error:

WARN  [core.security.SetCurrentIdentityFilter] An error occured while cache user profile
javax.servlet.ServletException: java.lang.StackOverflowError
	at org.exoplatform.portal.application.PortalController.onService(PortalController.java:131)
	at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:116)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
[...]
Caused by: java.lang.StackOverflowError
	at org.exoplatform.services.organization.idm.GroupDAOImpl.getGroupId(GroupDAOImpl.java:576)
	at org.exoplatform.services.organization.idm.GroupDAOImpl.getGroupId(GroupDAOImpl.java:611)
[...]

This is caused by some groups in the LDAP structure containing a circular cross reference, which leads to a loop in the GroupDAOImpl.getGroupId(..) method.

Comment 1 boleslaw.dawidowicz 2010-11-22 20:25:11 UTC
Sync of https://jira.jboss.org/browse/GTNPORTAL-1680

Comment 2 boleslaw.dawidowicz 2010-11-23 10:46:04 UTC
Fix need to be merged from gatein trunk: 
http://fisheye.jboss.org/changelog/gatein/portal/trunk?cs=5214

Comment 3 Thomas Heute 2010-11-25 08:21:32 UTC
Link: Added: This issue is related to GTNPORTAL-1680