[midPoint-git] [Evolveum/midpoint] 16dcab: Fix assigned projections with focus iteration
mederly
noreply at github.com
Thu Mar 9 18:58:27 CET 2023
Branch: refs/heads/support-4.4
Home: https://github.com/Evolveum/midpoint
Commit: 16dcab79bae5d9804d031b86bfacd9be5508c1fa
https://github.com/Evolveum/midpoint/commit/16dcab79bae5d9804d031b86bfacd9be5508c1fa
Author: Pavol Mederly <mederly at evolveum.com>
Date: 2023-03-09 (Thu, 09 Mar 2023)
Changed paths:
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/construction/ConstructionEvaluation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/EvaluatedResourceObjectConstructionImpl.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/construction/ItemEvaluation.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/ActivationProcessor.java
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/lens/projector/loader/ProjectionFullLoadOperation.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/TestIteration.java
A model/model-intest/src/test/resources/iteration/metarole-dummy-associations.xml
A model/model-intest/src/test/resources/iteration/resource-dummy-associations.xml
A model/model-intest/src/test/resources/iteration/role-cs-101.xml
A model/model-intest/src/test/resources/iteration/user-template-simple-iteration.xml
M repo/repo-test-util/src/main/java/com/evolveum/midpoint/test/TestResource.java
Log Message:
-----------
Fix assigned projections with focus iteration
When the assigned resource object constructions are evaluated repeatedly
(for example, when focus iteration is engaged), midPoint may try to
fetch not-yet-existing projection. It is because of limitations of the
current LensProjectionContext#isAdd implementation (see the javadoc
added).
Either we would improve that method, or - as a quicker albeit maybe not
so comprehensive fix - we simply avoid loading projections without OID
when evaluating such constructions. The latter approach was selected
for this commit.
This resolves MID-8569.
(cherry picked from commit 4a4067a9ce2482be2d48c004d559aebfe756c865)
More information about the midPoint-svn
mailing list