[midPoint-git] [Evolveum/midpoint] 1ddcad: Fix double evaluation of policy rules

mederly noreply at github.com
Tue Aug 8 13:19:27 CEST 2023


  Branch: refs/heads/feature/mid-6913
  Home:   https://github.com/Evolveum/midpoint
  Commit: 1ddcadbe0d64a90c66d89343ff25dda08c0a733d
      https://github.com/Evolveum/midpoint/commit/1ddcadbe0d64a90c66d89343ff25dda08c0a733d
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-08-08 (Tue, 08 Aug 2023)

  Changed paths:
    A infra/schema/src/main/java/com/evolveum/midpoint/schema/error/ErrorStackDumper.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/result/OperationResult.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/ExceptionUtil.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/PolicyRuleEvaluator.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/PolicyRuleProcessor.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/util/ModelImplUtils.java

  Log Message:
  -----------
  Fix double evaluation of policy rules

The recently introduced checks for double evaluation of policy rules
revealed that it occurs when a focus is being deleted. This commit fixes
that.

This should fix failing TestLinkedObjects.

Also, introducing highly experimental "logical stack trace" that uses
OperationResult objects to provide a context of an error meaningful
to the engineer.




More information about the midPoint-svn mailing list