[midPoint-git] [Evolveum/midpoint] 69e6b9: Ignore no-expression mappings for associations

mederly noreply at github.com
Thu Oct 3 12:55:45 CEST 2024


  Branch: refs/heads/tmp/mid-10076
  Home:   https://github.com/Evolveum/midpoint
  Commit: 69e6b9a6374a3c4f892532e1da19e7b82d921e9a
      https://github.com/Evolveum/midpoint/commit/69e6b9a6374a3c4f892532e1da19e7b82d921e9a
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2024-10-03 (Thu, 03 Oct 2024)

  Changed paths:
    M docs/expressions/expressions/index.adoc
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAssociationDefinition.java
    M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAssociationDefinitionImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/EvaluatedPlainResourceObjectConstructionImpl.java
    M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItems.java
    M model/model-intest/src/test/resources/associations/resource-dummy-ad.xml
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/ExpressionFactory.java
    M repo/repo-common/src/main/java/com/evolveum/midpoint/repo/common/expression/evaluator/AsIsExpressionEvaluator.java

  Log Message:
  -----------
  Ignore no-expression mappings for associations

Currently, inbound/outbound mappings without expressions in association
types make no sense: they are interpreted as "asIs" mappings, but fail
because of missing source (outbound case) or type incompatibility
(association->assignment, inbound case).

This troubles background tasks when resource configuration is edited
in the GUI, as the first step is to create+save such empty mappings, and
only later they are filled-in by an expression.

Hence, this commit makes such empty associations mappings to be ignored.

It is questionable whether it's the correct way, though. In the future,
when we'll provide a reasonable default behavior for such mappings,
we might want these empty mappings to be effective.

Related to MID-10076.



To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications


More information about the midPoint-svn mailing list