-
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 problems with dead entitlement shadows
When a dead entitlement shadow exists, both associationTargetSearch and entitlement resolution (in subject-to-object case) do not work correctly. This is now fixed: we explicitly reject dead shadows in those situations. This resolves MID-7895.
- Loading branch information
Showing
11 changed files
with
142 additions
and
30 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
22 changes: 22 additions & 0 deletions
22
model/model-intest/src/test/resources/entitlements/account-guybrush-dead.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,22 @@ | ||
<!-- | ||
~ Copyright (C) 2010-2022 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<shadow xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" | ||
oid="2947d268-1d43-4114-bd4c-f4aa723d884a"> | ||
<name>guybrush</name> | ||
<resourceRef oid="10000000-0000-0000-0000-000000001104" type="ResourceType"/> | ||
<dead>true</dead> | ||
<objectClass>ri:AccountObjectClass</objectClass> | ||
<kind>account</kind> | ||
<intent>default</intent> | ||
<attributes> | ||
<icfs:name>guybrush</icfs:name> | ||
<icfs:uid>guybrush</icfs:uid> | ||
</attributes> | ||
</shadow> |
23 changes: 23 additions & 0 deletions
23
model/model-intest/src/test/resources/entitlements/group-mapmakers-dead.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,23 @@ | ||
<!-- | ||
~ Copyright (C) 2010-2022 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<shadow xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" | ||
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" | ||
oid="1ff68c92-d526-4cfb-8df5-539bc5fdd097"> | ||
<name>mapmakers</name> | ||
<resourceRef oid="10000000-0000-0000-0000-000000000004"/> | ||
<dead>true</dead> | ||
<objectClass>ri:GroupObjectClass</objectClass> | ||
<kind>entitlement</kind> | ||
<intent>unknown</intent> | ||
<exists>false</exists> | ||
<attributes> | ||
<icfs:name>mapmakers</icfs:name> | ||
<icfs:uid>mapmakers</icfs:uid> | ||
</attributes> | ||
</shadow> |
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
Oops, something went wrong.