Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] How to remove inconsistent Grouper rules

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] How to remove inconsistent Grouper rules


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Olivier Salaün <>, "" <>
  • Subject: RE: [grouper-users] How to remove inconsistent Grouper rules
  • Date: Tue, 14 Jan 2020 17:19:55 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=isc.upenn.edu; dmarc=pass action=none header.from=isc.upenn.edu; dkim=pass header.d=isc.upenn.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=P6LgkRVj94FZSeaYQRLOslEnpN7F2KcuWWqF+d8HHKg=; b=MV02QoI30KDLD9XA1PFxRnb2LkvSzaWI6W4zpnFLWIhToWC2h9HZH7uZBwUwWd4c/rhlaf9tgH6oku9nlevtZw4fPJYUf8OjcjFDZsFGgCTiABx2XqGGPn0Uattgcn6eGS3zkQahhq289hy0W0yY7sRLeDKJ/xqqgWsiZ9Jsk1kvn85FSCl6LWlSWID8RmFwkqLEanq7rG+608Q2Xa2Ih6tVoKvTO3TVGUJTCrQQQoBEkBtj6N6/jWqCjU12NWa0fVaEE+gxN7w3d5AJcHv+9C6BdtvVBkODKecaoX3QZr5UmNqBhUpu2nPXpASRGaClqQAYtCc6Vn0AaP/kEXf0MQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EofKbFATknkh5USm70F8jXMKqMKJd4K9rqNbUGdJsvzX2bPhH18fdxyZFemO76quXJEAhx6JUsKCubX+a0HxVW1eFv99uWPBYXm65oWk6CfFSUjccREiem1kodBM71FNZxE459xsxCTtVcIctr8FsjdJl5ZO8R8P58iX4FdKxkOP+Zsx1mUQ3ie5FoyvX6D0aATrNdLUnwbWvSgVrt6Z7N1dO19MvxnJCbPqsOOCg1y9wESFTL+2jMd9eKxTxenz0mi7wEyo5zGSJHJFSZKEFXvQCXBobdsmPY4i1PbDgOsHWsaLz6QsMQOl/B3M+ZZN+p/L4tGVoEgwZV7cVkBqOw==

Go to the lite ui and “view or assign attributes” and query rule attributes on folders and groups.  You can remove or edit from there.  Ok?

 

 

From: <> On Behalf Of Olivier Salaün
Sent: Tuesday, January 14, 2020 9:40 AM
To:
Subject: [grouper-users] How to remove inconsistent Grouper rules

 

Hello,

We are running Grouper 2.2.2.

We have a couple of stems where we can no more create child groups. The addGroup operation fails with this error:

Subject not found by id: 7fb0e77383324299941d5685d9e9820c, Problem in HibernateSession: HibernateSession (6523f4b8): notNew, notReadonly, READ_WRITE_NEW, activeTransaction, session (6e031511), Problem in HibernateSession: HibernateSession (12be9d42): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (6e031511), Problem saving group: ur1:ress:data:ufr:931:31SA:test, thread: 9ed78e5

The same error occurs from both the web GUI and from GSH.

Setting GSH in debug, we found out that the error is caused by rules on that stem that refer to a group that no more exists :

2020-01-14 09:26:17,853: edu.internet2.middleware.grouper.rules.RuleEngine [main] DEBUG RuleEngine.fireRule(482) -  - Rules engine processing rulesBean: group: ur1:ress:data:ufr:922:22BC:testolivier, , found 4 matching rule definitions, ruleDefinition should fire: attributeAssignTypeId: 99fd9d3867d649458767f0fd73941f38, actAsSourceId: g:isa, actAsSubjectId: GrouperSystem, checkStemScope: SUB, checkType: groupCreate, thenEnum: assignGroupPrivilegeToGroupId, thenEnumArg0: g:gsa :::: e1ae892a90974323bc9d1f6d98d973fe, thenEnumArg1: admin, , enumResult: true, ruleDefinition should fire: attributeAssignTypeId: b8c5ca700d0d406bbbe41fdd7dda7fd9, actAsSourceId: g:isa, actAsSubjectId: GrouperSystem, checkStemScope: SUB, checkType: groupCreate, thenEnum: assignGroupPrivilegeToGroupId, thenEnumArg0: g:gsa :::: 25eda98d40e64718823b87cf987e5af5, thenEnumArg1: update, read, view, , EXCEPTION: edu.internet2.middleware.subject.SubjectNotFoundException: Subject not found by id: 25eda98d40e64718823b87cf987e5af5

Querying the Grouper database shows 28 such inconsistent rules :

select * from grouper_rules_v where rule_then_enum_arg0 not in (select 'g:gsa :::: ' || id from grouper_groups);

We don't know how we got in this situation, but we need to get rid of these rules to solve the problem.

What is the best way to remove these rules? What GSH commands could help?

Thanks

-- 
Olivier Salaün
DSI / pôle SI / équipe SNUM
Tel : 02 23 23 74 54



Archive powered by MHonArc 2.6.19.

Top of Page