[seam-issues] [JBoss JIRA] (SEAMSECURITY-69) Call to associateGroups(head, branch) does not persist the group relationship

Bill Elliot (JIRA) jira-events at lists.jboss.org
Wed Jan 25 18:59:49 EST 2012


    [ https://issues.jboss.org/browse/SEAMSECURITY-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662043#comment-12662043 ] 

Bill Elliot commented on SEAMSECURITY-69:
-----------------------------------------

Any update on this?
                
> Call to associateGroups(head, branch) does not persist the group relationship
> -----------------------------------------------------------------------------
>
>                 Key: SEAMSECURITY-69
>                 URL: https://issues.jboss.org/browse/SEAMSECURITY-69
>             Project: Seam Security
>          Issue Type: Bug
>    Affects Versions: 3.0.0.Final
>         Environment: Windows 7 x64, MySQL 5.1
>            Reporter: Bill Elliot
>
> This is using MySQL 5.1 and it appears the association is not being persisted. If I manually enter the table row the association is detected correctly. But, the call to associateGroups is not persisting the relationship. I have used the following code to test out this: 
> package org.jboss.seam.security.examples.idmconsole.tests;
> import javax.inject.Inject;
> import org.picketlink.idm.api.Group;
> import org.picketlink.idm.api.IdentitySession;
> import org.picketlink.idm.api.PersistenceManager;
> import org.picketlink.idm.api.RelationshipManager;
> import org.picketlink.idm.common.exception.IdentityException;
> public class TestSecurity {
>         @Inject IdentitySession identitySession;
>          
>         public String testAction() throws IdentityException {
>                 PersistenceManager pm = identitySession.getPersistenceManager();
>                 RelationshipManager rm = identitySession.getRelationshipManager();
>                 Group head = pm.findGroup("Head Office", "ORGANIZATION_UNIT");
>                 Group branch = pm.findGroup("Branch Office", "ORGANIZATION_UNIT");
>                 if( ! rm.isAssociated(head, branch) ) {
>                         rm.associateGroups(head, branch);
>                 }
>                 boolean isAssociated = rm.isAssociated(head, branch);
>                 return null;
>         }
> }
> The 2 groups in the test code exist in my test DB when I run the above code. I single step through the code to verify the situation after each line and everything is as expected, except that the call to rm.associateGroups(head, branch); does not persist the association.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list