Return-Path: Delivered-To: apmail-portals-jetspeed-dev-archive@www.apache.org Received: (qmail 19764 invoked from network); 7 Apr 2010 13:45:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Apr 2010 13:45:55 -0000 Received: (qmail 191 invoked by uid 500); 7 Apr 2010 13:45:55 -0000 Delivered-To: apmail-portals-jetspeed-dev-archive@portals.apache.org Received: (qmail 173 invoked by uid 500); 7 Apr 2010 13:45:55 -0000 Mailing-List: contact jetspeed-dev-help@portals.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@portals.apache.org Received: (qmail 165 invoked by uid 99); 7 Apr 2010 13:45:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Apr 2010 13:45:55 +0000 X-ASF-Spam-Status: No, hits=-1809.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Apr 2010 13:45:53 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 87503234C4AC for ; Wed, 7 Apr 2010 13:45:33 +0000 (UTC) Message-ID: <1867504471.43491270647933553.JavaMail.jira@brutus.apache.org> Date: Wed, 7 Apr 2010 13:45:33 +0000 (UTC) From: "Ate Douma (JIRA)" To: jetspeed-dev@portals.apache.org Subject: [jira] Resolved: (JS2-1153) Problem with GroupManager In-Reply-To: <102232070.487441269519987125.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JS2-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ate Douma resolved JS2-1153. ---------------------------- Resolution: Fixed Fix committed. > Problem with GroupManager > ------------------------- > > Key: JS2-1153 > URL: https://issues.apache.org/jira/browse/JS2-1153 > Project: Jetspeed 2 > Issue Type: Bug > Components: Components Core > Affects Versions: 2.2.0 > Reporter: Francisco Javier Rosado > Assignee: Ate Douma > Fix For: 2.2.1 > > > When I make an association between two groups, the methods getGroupsAssociatedTo and getGroupsAssociatedFrom returns the same result. for example: > this.groupManager.addGroupToGroup(AA, BB, JetspeedPrincipalAssociationType.IS_PART_OF); > This returns two records: > List lista = this.groupManager.getGroupsAssociatedTo(AA, JetspeedPrincipalAssociationType.IS_PART_OF ); > List lista = this.groupManager.getGroupsAssociatedFrom(AA, JetspeedPrincipalAssociationType.IS_PART_OF ); > This returno no records: > List lista = this.groupManager.getGroupsAssociatedTo(BB, JetspeedPrincipalAssociationType.IS_PART_OF ); > List lista = this.groupManager.getGroupsAssociatedFrom(BB, JetspeedPrincipalAssociationType.IS_PART_OF ); > I think the problem is in class [GroupManagerImpl], who extends [BaseJetspeedPrincipalManager]. GroupManagerImpl has "getGroupsAssociatedFrom" and "getGroupsAssociatedTo" methods, but both call the same method of [BaseJetspeedPrincipalManager]: > /* (non-Javadoc) > * @see org.apache.jetspeed.security.GroupManager#getGroupsAssociatedFrom(org.apache.jetspeed.security.Group, java.lang.String) > */ > @SuppressWarnings("unchecked") > public List getGroupsAssociatedFrom(Group from, String associationName) > { > return (List)getAssociatedFrom(from.getName(), from.getType(), associationName); > } > > /* (non-Javadoc) > * @see org.apache.jetspeed.security.GroupManager#getGroupsAssociatedTo(org.apache.jetspeed.security.Group, java.lang.String) > */ > @SuppressWarnings("unchecked") > public List getGroupsAssociatedTo(Group to, String associationName) > { > return (List)getAssociatedFrom(to.getName(), to.getType(), associationName); > } > when "getGroupsAssociatedTo" method must call "BaseJetspeedPrincipalManager.getAssociatedTo", nor "BaseJetspeedPrincipalManager.getAssociatedFrom". > Regards > Francisco Rosado -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org For additional commands, e-mail: jetspeed-dev-help@portals.apache.org