[midPoint-git] [Evolveum/midpoint] 8021ab: Fix handling old vs current object for inbounds
mederly
noreply at github.com
Fri Jan 10 08:55:06 CET 2025
Branch: refs/heads/support-4.9
Home: https://github.com/Evolveum/midpoint
Commit: 8021ab5855b7a119742c4f8a792facbb85766670
https://github.com/Evolveum/midpoint/commit/8021ab5855b7a119742c4f8a792facbb85766670
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M gui/admin-gui/src/main/java/com/evolveum/midpoint/gui/impl/page/self/credentials/PropagatePasswordPanel.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/AbstractResourceObjectDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/CompositeObjectDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectClassDefinitionImpl.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectDefinitionUtil.java
R infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectInboundDefinition.java
A infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ResourceObjectInboundProcessingDefinition.java
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 infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowAttributeDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowItemDefinition.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/ShadowLikeValue.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/processor/deleg/ResourceObjectDefinitionDelegator.java
M infra/schema/src/main/java/com/evolveum/midpoint/schema/util/CorrelatorsDefinitionUtil.java
M infra/schema/src/main/resources/xml/ns/public/common/common-provisioning-3.xsd
R model/model-api/src/main/java/com/evolveum/midpoint/model/api/InboundSourceData.java
M model/model-api/src/main/java/com/evolveum/midpoint/model/api/context/ModelContext.java
M model/model-common/src/test/java/com/evolveum/midpoint/model/common/mapping/TestMappingMetadata.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/ResourceObjectProcessingContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/AssociationConstructionExpressionEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/expr/AssociationSynchronizationExpressionEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensElementContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensProjectionContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/LensUtil.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/AssociationMapper.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/AssociationValuesTripleComputation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/credentials/ProjectionCredentialsProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/DefaultSingleShadowInboundsProcessingContextImpl.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/FullInboundsProcessing.java
A model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/InboundSourceData.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessing.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/SingleShadowInboundsProcessingContext.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/FullInboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/InboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/LimitedInboundsSource.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItem.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/MappedSourceItems.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/focus/inbounds/prep/SingleShadowInboundsPreparation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ProjectionUpdateOperation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/policy/PolicyRuleEnforcer.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/PreMappingsEvaluator.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/SynchronizationContext.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/AbstractModelImplementationIntegrationTest.java
M model/model-impl/src/test/java/com/evolveum/midpoint/model/impl/lens/TestProjector.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestPreviewChanges.java
M testing/story/src/test/resources/associations-real/resource-ldap.xml
Log Message:
-----------
Fix handling old vs current object for inbounds
Source triples (item-delta-item) for inbound mappings were not
prepared precisely enough: (1) sync deltas and computed ones were used
in the same way, even if they have different nature; (2) "old" and
"current" object states were not used appropriately either.
This commit brings some order to this area. Now we strictly distinguish
between sync deltas (that occur even before the old state of the object)
and the ones computed by the projector, which stand between old and
current object state. We also more prudently distinguish between
these two states.
Also, some leftovers from 4.9 development (both in schema and in code)
were removed, parts of the code were simplified and documented.
This resolves MID-9960.
(cherry picked from commit d3a673a5c4a51de1baafee89b03e2c2eef78ddfb)
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