[midPoint-git] [Evolveum/midpoint] c8e18d: Fix maxAssignees evaluator and TestPolicyRules

mederly noreply at github.com
Fri Nov 8 11:38:37 CET 2024


  Branch: refs/heads/support-4.9
  Home:   https://github.com/Evolveum/midpoint
  Commit: c8e18db57396ef9d6d256c5e3adbf089b3e6f9bc
      https://github.com/Evolveum/midpoint/commit/c8e18db57396ef9d6d256c5e3adbf089b3e6f9bc
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-11-08 (Fri, 08 Nov 2024)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/ObjectPolicyRulesEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/evaluators/MultiplicityConstraintEvaluator.java
    M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/rbac/TestPolicyRules.java
    M model/model-intest/src/test/resources/rbac/policy-rules/333-classification-information-security-responsibility.xml
    M model/model-intest/src/test/resources/rbac/policy-rules/role-friendly-introvert.xml

  Log Message:
  -----------
  Fix maxAssignees evaluator and TestPolicyRules

1. MultiplicityConstraintEvaluator contained a bug regarding
maxAssignees evaluation (wrong comparison operator).

2. TestPolicyRules was fixed:

a) there were some issues with the policy rules in objects involved,
like missing markRef, "record" policy action, and especially
evaluationTarget default was not appropriate. Some of these should
be fixed in midPoint code later, see e.g. MID-9929.

b) Temporarily unused marks were removed from the policy object.

c) Role recomputation had to be added.

3. Logging for rules evaluation was slightly improved.

This should resolve MID-9869, at least for now.

(cherry picked from commit 8d23183c50249e1d59e73ba7dc20aaac9948908e)



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list