[midPoint-git] [Evolveum/midpoint] 4df183: Fix handling of deleted focus in ContextLoader

mederly noreply at github.com
Wed Aug 25 13:01:24 CEST 2021


  Branch: refs/heads/tmp/mid-4856
  Home:   https://github.com/Evolveum/midpoint
  Commit: 4df183e5630d1b5dc79dbc74a5c03544e1cfbbea
      https://github.com/Evolveum/midpoint/commit/4df183e5630d1b5dc79dbc74a5c03544e1cfbbea
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-08-25 (Wed, 25 Aug 2021)

  Changed paths:
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensFocusContext.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/executor/DeltaExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/executor/FocusChangeExecution.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/ContextLoader.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/AssignmentProcessor.java

  Log Message:
  -----------
  Fix handling of deleted focus in ContextLoader

The context loading in later clockwork clicks (after focus was deleted)
resulted in old, current, and new object being set to the same value
of objectOld. This confused e.g. updated AssignmentProcessor, which
(in 4.4) executes also in cases where focus is being deleted.

The loading was fixed by introducing focusContext.deleted flag. If it
is present, both objectCurrent and objectNew are set to null by the
loader.

Related to MID-4856.




More information about the midPoint-svn mailing list