grouper-users - Re: [grouper-users] unable to add group to group field (2.3)
Subject: Grouper Users - Open Discussion List
List archive
- From: Shilen Patel <>
- To: Jim Fox <>
- Cc: "" <>
- Subject: Re: [grouper-users] unable to add group to group field (2.3)
- Date: Fri, 4 Aug 2017 11:35:00 +0000
- Accept-language: en-US
- Authentication-results: oit.duke.edu; spf=none
- Ironport-phdr: 9a23:u4B/DBJ4R999jNZHCNmcpTZWNBhigK39O0sv0rFitYgeI/3xwZ3uMQTl6Ol3ixeRBMOAuqIC07KempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9ZDeZwZFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLdQgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhicZOTAk7GHZhM9+jKxZrx2vphxw34Hab46OOfpiZ6PQZ88WSXZbU8pPUSFKH4Oyb5EID+oEJetWson9p1oKrRSgAwmnGfnhxSVUhnDo2a0xzuMsERrG3AwhG9IBrnLUoc7oO6cPUuC60rPEwiveYPNLwDrw7pXDfB4mofGJR71wcMzRxFE0GALFiVWfso7lMC2J2eQRqGib8/BvVf6ui2E7sQ1xuSKgxtkyhYXRhoIVy0vL+Ct8wIkrIN23U1B0YcS/EJtQtiGaL5Z5TdklQ21yoyY10KMGtoCjcCcRyJUnwAXQa/6ZfIeU/hLvTv2RLi1mhH17fr+0mhW88VC4x+HhVsS4zkxGoyRfntXRtX0A0wbf5taIR/Z95kutxDaC2x7J5uxKO0w5m6XWJ4Qvz7IoiJYfrEXOEjX4lUnolqOaa0Yp9vWy5+j6YLjrp5mRPJJuhA7kKKQhgMm/DPw4MgcQW2ib/vyx1Lj58k34RLVGl/I2k6fAvJzHIckXvKm5Aw5J0oo59hm/EjSm38oCkXYZMV1FZQqLj4nvO17QPPD1FeqzjlSynDtxyf3KJKDtD5bJI3TZjrvscrZw51ZZyAUpzNBf45xUCqsGIPL2QkLxr9zYDh49MwOqxebqE8hy1p4dWW2RGKOWLr7dsUKQ6uI1P+aMfJMVuCr6K/U96P7ul3g5mUIFfaa3x5sbcW24Hu94LEWDenrhmdMBEWYRvgoiV+zmlkeOUT9VZ3auQa08/Dc7B5y6DYvdXIyinqGO3DroVqFRM0JHDxiiFmegI4uDS98TYTmSI8lujjsCE7WtVtly+wupsVrBy7tjI+ycwiQEuJargMN15unekzk+6D95ScmRzjfeHClPgmoUSmpuj+hEqktnxwLb3A==
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
>> What is grouper_group_sets for?
It's used to efficiently calculate effective memberships.
>> How did I get duplicates? Something from the 2.1->2.3 upgrade?
Possibly. The upgrade does add some group sets, but I can't see how it
would have added duplicates unless you were running multiple instances of
the upgrade at the same time. There is a create_time column on the group
set table so that may tell you when the duplicates were added. Also, what
fields do the field_id columns correspond to in the duplicates?
>> How do I get rid of them?
Hopefully, for each set of duplicates, no more than 1 has a foreign key to
another group set. If that's the case, it should be safe to just delete
one row without a foreign key. Would a patch help?
- Shilen
On 8/3/17, 6:46 PM, "Jim Fox"
<>
wrote:
>
>I do seem to have duplicates. In this case there are two entries that
>differ only in parent_id.
>
>What is grouper_group_sets for?
>How did I get duplicates? Something from the 2.1->2.3 upgrade?
>How do I get rid of them?
>
>Thanks,
>
>Jim
>
>
>On Thu, 3 Aug 2017, Shilen Patel wrote:
>
>> Date: Thu, 3 Aug 2017 15:32:01
>> From: Shilen Patel
>> <>
>> To: Jim Fox
>> <>
>> Cc:
>> ""
>>
>> <>
>> Subject: Re: [grouper-users] unable to add group to group field (2.3)
>>
>> Looks like you may have duplicates in your group set table. I don't
>>think bad membership finder catches that right now. I can add it there,
>>but
>> you can verify by running this I think:
>>
>> select owner_group_id, member_group_id, field_id from grouper_group_set
>>where depth='0' and owner_group_id is not null and member_group_id is not
>> null and field_id is not null group by owner_group_id, member_group_id,
>>field_id having count(*) > 1
>>
>> Thanks!
>>
>> - Shilen
>>
>> On 8/3/17, 6:13 PM, "Jim Fox"
>> <>
>> wrote:
>>
>>
>> This is experimenting with grouper api 2.3
>>
>> I am trying to add a group as a field member (not membership). I get an
>> exception: (sorry for the messay post)
>>
>> I am able to add non-group subjects.
>>
>> Something to do with group sets?
>>
>> Jim
>>
>> ------------------------------------------------------
>> Aug 03, 2017 2:59:11 PM org.apache.catalina.core.StandardWrapperValve
>>invoke
>> SEVERE: Servlet.service() for servlet [gws] in context with path
>>[/gws_grouper] threw exception [Request processing failed; nested
>>exception
>> is java.lang.RuntimeException:
>>edu.internet2.middleware.grouper.internal.dao.GrouperDAOException:
>>Problem in HibernateSession:
>> HibernateSession (6c4c2a54): notNew, notReadonly, READ_WRITE_NEW,
>>activeTransaction, session (5bd96f94),
>> Exception in uniqueResult: (class
>>edu.internet2.middleware.grouper.group.GroupSet), ByHqlStatic, query:
>>'select gs from GroupSet as gs where
>> gs.ownerGroupId = :id and memberGroupId = :id and fieldId = :field and
>>depth='0'', cacheable: true, cacheRegion:
>>
>>edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupSetDAO.FindSe
>>lfGroup, tx type: null, tx type: nullBind var[0]: 'Param (class
>> java.lang.String): 'id'->'881fef48f9e32bedf88b8fe5d96ed250'Bind var[1]:
>>'Param (class java.lang.String):
>> 'field'->'0094f3965ca2419286d3c4c3c9a1fb4e', ,
>> Exception in save: edu.internet2.middleware.grouper.Membership,
>>edu.internet2.middleware.grouper.hibernate.ByObject@44744e2e,
>> Problem in HibernateSession: HibernateSession (6e7b95d1): notNew,
>>notReadonly, READ_WRITE_NEW, activeTransaction, session (5bd96f94),
>> Exception in save: edu.internet2.middleware.grouper.Membership,
>>ByObjectStatic, query: ', cacheable: null, cacheRegion: null, entityName:
>> ImmediateMembershipEntry, tx type: null,
>> , group name: u:fox:spud97, subject: Subject groupName: u:fox:spud97,
>>sourceId: g:gsa, field: authorized-senders,
>> Problem in HibernateSession: HibernateSession (29610a0e): new,
>>notReadonly, READ_WRITE_NEW, notActiveTransaction, session (5bd96f94)]
>>with
>> root cause
>> org.hibernate.NonUniqueResultException: query did not return a unique
>>result: 2
>> at
>>org.hibernate.internal.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.
>>java:971)
>> at
>>org.hibernate.internal.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.j
>>ava:960)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByHql.uniqueResult(ByHql.java:
>>282)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByHqlStatic$1.callback(ByHqlSt
>>atic.java:348)
>> at
>>edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHiber
>>nateSession(HibernateSession.java:700)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByHqlStatic.uniqueResult(ByHql
>>Static.java:339)
>> at
>>edu.internet2.middleware.grouper.internal.dao.hib3.Hib3GroupSetDAO.findSe
>>lfGroup(Hib3GroupSetDAO.java:356)
>> at
>>edu.internet2.middleware.grouper.Membership.processPostMembershipSaveOrUp
>>date(Membership.java:2135)
>> at
>>edu.internet2.middleware.grouper.Membership.onPostSave(Membership.java:19
>>97)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObject.save(ByObject.java:22
>>4)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObjectStatic$7.callback(ByOb
>>jectStatic.java:494)
>> at
>>edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHiber
>>nateSession(HibernateSession.java:700)
>> at
>>edu.internet2.middleware.grouper.hibernate.ByObjectStatic.save(ByObjectSt
>>atic.java:481)
>> at
>>edu.internet2.middleware.grouper.internal.dao.hib3.Hib3MembershipDAO.save
>>(Hib3MembershipDAO.java:2053)
>> at
>>edu.internet2.middleware.grouper.Membership.internal_addImmediateMembersh
>>ip(Membership.java:1246)
>> at
>>edu.internet2.middleware.grouper.Group$4.callback(Group.java:1392)
>> at
>>edu.internet2.middleware.grouper.hibernate.HibernateSession.callbackHiber
>>nateSession(HibernateSession.java:700)
>> at
>>edu.internet2.middleware.grouper.Group.internal_addMember(Group.java:1364
>>)
>> at
>>edu.internet2.middleware.grouper.Group.addMember(Group.java:938)
>> at
>>edu.internet2.middleware.grouper.Group.addMember(Group.java:899)
>> at
>>edu.washington.gws.group.grouper.GrouperGroupFactory.updateFieldMembers(G
>>rouperGroupFactory.java:848)
>> ...
>>
>>
>>
>>
>>
>>
>>
>>
- [grouper-users] unable to add group to group field (2.3), Jim Fox, 08/03/2017
- Re: [grouper-users] unable to add group to group field (2.3), Shilen Patel, 08/03/2017
- Re: [grouper-users] unable to add group to group field (2.3), Jim Fox, 08/03/2017
- Re: [grouper-users] unable to add group to group field (2.3), Shilen Patel, 08/04/2017
- Re: [grouper-users] unable to add group to group field (2.3), Shilen Patel, 08/04/2017
- Re: [grouper-users] unable to add group to group field (2.3), Jim Fox, 08/04/2017
- Re: [grouper-users] unable to add group to group field (2.3), Jim Fox, 08/08/2017
- Re: [grouper-users] unable to add group to group field (2.3), Shilen Patel, 08/09/2017
- Re: [grouper-users] unable to add group to group field (2.3), Jim Fox, 08/07/2017
- Re: [grouper-users] unable to add group to group field (2.3), Shilen Patel, 08/04/2017
- Re: [grouper-users] unable to add group to group field (2.3), Shilen Patel, 08/04/2017
- Re: [grouper-users] unable to add group to group field (2.3), Jim Fox, 08/03/2017
- Re: [grouper-users] unable to add group to group field (2.3), Shilen Patel, 08/03/2017
Archive powered by MHonArc 2.6.19.