[midPoint-git] [Evolveum/midpoint] d4139f: Fill-in association identifiers completely

mederly noreply at github.com
Mon Apr 24 12:12:20 CEST 2023


  Branch: refs/heads/support-4.6
  Home:   https://github.com/Evolveum/midpoint
  Commit: d4139f25df29e7199b19d147d19d14a95edf0802
      https://github.com/Evolveum/midpoint/commit/d4139f25df29e7199b19d147d19d14a95edf0802
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2023-04-24 (Mon, 24 Apr 2023)

  Changed paths:
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/AttributeDefinitionStore.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceAttributeContainer.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceAttributeContainerImpl.java
    M infra/test-util/src/main/java/com/evolveum/midpoint/test/util/MidPointTestConstants.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ProvisioningContext.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/ProvisioningContextFactory.java
    M provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/ShadowedObjectConstruction.java
    M provisioning/provisioning-impl/src/test/java/com/evolveum/midpoint/provisioning/impl/opendj/TestOpenDj.java
    M provisioning/provisioning-impl/src/test/resources/opendj/resource-opendj.xml
    M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/ShadowAssociationAsserter.java
    A repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/asserter/ShadowAssociationValueAsserter.java

  Log Message:
  -----------
  Fill-in association identifiers completely

The provisioning module fill-is in shadowRef to all association values
when returning a shadowed resource object. However, identifiers were
originally not touched - they may or may not be present completely,
depending on the situation. This caused issues where the naming
attribute was expected to evaluate tolerant/intolerant patterns
but only primary identifier (uid) was present.

Now we copy all the identifiers from the resolved shadow, along with
the shadowRef. It should ensure that tolerant/intolerant patterns
can be always evaluated.

Related to MID-8815.

(cherry picked and adapted from commit
b5db18c587dd73b7c3f3f0597275a83117d5f537)




More information about the midPoint-svn mailing list