-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 4a4067a)
- Loading branch information
Showing
12 changed files
with
312 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
model/model-intest/src/test/resources/iteration/metarole-dummy-associations.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!-- | ||
~ Copyright (C) 2010-2023 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<role xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" | ||
oid="fc07a007-fdd4-44d3-99cf-d57b4df9509d"> | ||
<name>metarole-dummy-associations</name> | ||
<inducement> | ||
<construction> | ||
<resourceRef oid="64ae70db-2b2c-418e-b2bd-d167a28cfbd3"/> | ||
<kind>entitlement</kind> | ||
<intent>group</intent> | ||
</construction> | ||
</inducement> | ||
<inducement> | ||
<construction> | ||
<resourceRef oid="64ae70db-2b2c-418e-b2bd-d167a28cfbd3"/> | ||
<kind>account</kind> | ||
<intent>default</intent> | ||
<association> | ||
<ref>ri:group</ref> | ||
<outbound> | ||
<strength>strong</strength> | ||
<expression> | ||
<associationFromLink> | ||
<projectionDiscriminator> | ||
<kind>entitlement</kind> | ||
<intent>group</intent> | ||
</projectionDiscriminator> | ||
</associationFromLink> | ||
</expression> | ||
</outbound> | ||
</association> | ||
</construction> | ||
<order>2</order> | ||
<focusType>UserType</focusType> | ||
</inducement> | ||
</role> |
Oops, something went wrong.