-
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 "get" for resources with broken connectorRef
Exceptions during abstract or inherited resources completion attempts are now handled correctly. This ensures that "getObject" operations on resources with dangling connectorRef values are treated gracefully. This resolves MID-8619.
- Loading branch information
Showing
8 changed files
with
177 additions
and
24 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
15 changes: 15 additions & 0 deletions
15
...rovisioning-impl/src/test/resources/dummy/resource-instance-with-broken-connector-ref.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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2018 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<resource oid="201e83f6-184e-46b0-92ec-16d1b639f6cb" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"> | ||
<name>resource-instance-with-broken-connector-ref</name> | ||
<super> | ||
<resourceRef oid="c41900ce-6b86-476a-a7c9-6eb797f7d405"/> | ||
</super> | ||
</resource> |
15 changes: 15 additions & 0 deletions
15
...rovisioning-impl/src/test/resources/dummy/resource-template-with-broken-connector-ref.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,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2018 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<resource oid="c41900ce-6b86-476a-a7c9-6eb797f7d405" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"> | ||
<name>resource-template-with-broken-connector-ref</name> | ||
<template>true</template> | ||
<abstract>true</abstract> | ||
<connectorRef oid="cb4bcb48-4325-405d-a4a4-260de5640232"/> <!-- random value --> | ||
</resource> |
13 changes: 13 additions & 0 deletions
13
...sioning/provisioning-impl/src/test/resources/dummy/resource-with-broken-connector-ref.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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
~ Copyright (c) 2010-2018 Evolveum and contributors | ||
~ | ||
~ This work is dual-licensed under the Apache License 2.0 | ||
~ and European Union Public License. See LICENSE file for details. | ||
--> | ||
|
||
<resource oid="fe1de27d-684c-44c8-9cf6-a691fdf392fd" | ||
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"> | ||
<name>resource-with-broken-connector-ref</name> | ||
<connectorRef oid="cb4bcb48-4325-405d-a4a4-260de5640232"/> <!-- random value --> | ||
</resource> |