[midPoint-git] [Evolveum/midpoint] d062fc: Fix duplicate name delta during shadow refresh

mederly noreply at github.com
Thu Jul 7 16:26:29 CEST 2022


  Branch: refs/heads/support-4.4
  Home:   https://github.com/Evolveum/midpoint
  Commit: d062fca647484775b76d22be9f172ee4fa93ff87
      https://github.com/Evolveum/midpoint/commit/d062fca647484775b76d22be9f172ee4fa93ff87
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/RefreshHelper.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowManager.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowUpdater.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/manual/AbstractManualResourceTest.java
    A provisioning/provisioning-impl/src/test/resources/manual/account-black.xml

  Log Message:
  -----------
  Fix duplicate name delta during shadow refresh

Delta for $shadow/name was created twice: first in
RefreshHelper#refreshShadowAsyncStatus, and then in
ShadowUpdater#extractRepoShadowChanges. This caused the consistency
checks in repository to fail.

The latter method was adapted to allow only single `name` delta
to pass through.

This should resolve MID-7985 and MID-7924.

(cherry-picked and adapted from commit
0de9509050016c7183d18b686f986ac6d865ed89)




More information about the midPoint-svn mailing list