[midPoint-git] [Evolveum/midpoint] 2a3204: Fix updating index-only attributes in provisioning

mederly noreply at github.com
Fri Sep 10 08:48:50 CEST 2021


  Branch: refs/heads/support-4.3
  Home:   https://github.com/Evolveum/midpoint
  Commit: 2a32047cb7158cfc79ee535c40579c3fd63d995a
      https://github.com/Evolveum/midpoint/commit/2a32047cb7158cfc79ee535c40579c3fd63d995a
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-08-25 (Wed, 25 Aug 2021)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ObjectClassComplexTypeDefinition.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceAttributeContainer.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/GetHelper.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowDeltaComputer.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/dummy/AbstractBasicDummyTest.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/TestDummyCaching.java
    A provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/TestDummyCachingIndexOnly.java
    A provisioning/provisioning-impl/src/test/resources/dummy/dummy-caching/resource-dummy-index-only.xml
    M provisioning/provisioning-impl/testng-integration.xml
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java

  Log Message:
  -----------
  Fix updating index-only attributes in provisioning

Index-only cached attributes were not correctly maintained in repo.
This is now fixed:

1) ShadowUpdater#updateShadow now explicitly retrieves index-only
attributes from the repository before computing update deltas
(if needed).

2) ResourceAttributeContainer#convertFromContainer method now correctly
preserves "incomplete" flag on individual attributes.

This should fix MID-7162.

(cherry picked from commit 0f5ad9b8bad20ddffcdf063cc0bad432f2eaacdc)


  Commit: d11acf251e0da46ea3f90596289a6d0cb230a4e9
      https://github.com/Evolveum/midpoint/commit/d11acf251e0da46ea3f90596289a6d0cb230a4e9
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ObjectClassComplexTypeDefinition.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceAttributeContainer.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/GetHelper.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/manager/ShadowDeltaComputer.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/dummy/AbstractBasicDummyTest.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/TestDummyCaching.java
    A provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/dummy/TestDummyCachingIndexOnly.java
    A provisioning/provisioning-impl/src/test/resources/dummy/dummy-caching/resource-dummy-index-only.xml
    M provisioning/provisioning-impl/testng-integration.xml
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/AbstractIntegrationTest.java

  Log Message:
  -----------
  Merge branch 'tmp/mid-7162-on-4.3' into support-4.3


Compare: https://github.com/Evolveum/midpoint/compare/9c5ead1bb854...d11acf251e0d


More information about the midPoint-svn mailing list