...
Look at the rule_valid column for the reason. You might want to run this query and see if any of the results are problems. Note, this will also show some of the invalid rules
Code Block |
---|
select assigned_to_type, assigned_to_group_name, assigned_to_stem_name, assigned_to_attribute_def_name, 'memberSubjectIdNotFound' as reason, assigned_to_member_subject_id as the_data from grouper_rules_v where assigned_to_member_subject_id is not null and not exists (select 1 from grouper_members gm where gm.subject_id = assigned_to_member_subject_id) union all select assigned_to_type, assigned_to_group_name, assigned_to_stem_name, assigned_to_attribute_def_name, 'missingRuleCheckOwnerId' as reason, rule_check_owner_id as the_data from grouper_rules_v where rule_check_owner_id is not null and not exists (select 1 from grouper_groups gg where gg.id = rule_check_owner_id) and not exists (select 1 from grouper_stems gs where gs.id = rule_check_owner_id) and not exists (select 1 from grouper_attribute_def gad where gad.id = rule_check_owner_id) union all select assigned_to_type, assigned_to_group_name, assigned_to_stem_name, assigned_to_attribute_def_name, 'missingRuleCheckOwnerName' as reason, rule_check_owner_name as the_data from grouper_rules_v where rule_check_owner_name is not null and not exists (select 1 from grouper_groups gg where gg.name = rule_check_owner_name) and not exists (select 1 from grouper_stems gs where gs.name = rule_check_owner_name) and not exists (select 1 from grouper_attribute_def gad where gad.name = rule_check_owner_name) union all select assigned_to_type, assigned_to_group_name, assigned_to_stem_name, assigned_to_attribute_def_name, 'missingRuleIfOwnerId' as reason, rule_if_owner_id as the_data from grouper_rules_v where rule_if_owner_id is not null and not exists (select 1 from grouper_groups gg where gg.id = rule_if_owner_id) and not exists (select 1 from grouper_stems gs where gs.id = rule_if_owner_id) and not exists (select 1 from grouper_attribute_def gad where gad.id = rule_if_owner_id) union all select assigned_to_type, assigned_to_group_name, assigned_to_stem_name, assigned_to_attribute_def_name, 'missingRuleIfOwnerName' as reason, rule_if_owner_name as the_data from grouper_rules_v where rule_if_owner_name is not null and not exists (select 1 from grouper_groups gg where gg.name = rule_if_owner_name) and not exists (select 1 from grouper_stems gs where gs.name = rule_valid != 'T'_if_owner_name) and not exists (select 1 from grouper_attribute_def gad where gad.name = rule_if_owner_name) |
Troubleshooting rules
To troubleshoot rules, set the logging debug level, and check the grouper logs. Edit the log4j.properties:
...