-
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 "incomplete but having value" issue in tasks
When e.g. refreshing a task, we unintentionally created a task prism object with result marked as incomplete and having a value at the same time. A serialized form of such tasks (e.g. in trace files) was then not parseable because of "Attempt to store multiple values in single-valued property" exception. Resolves MID-7583.
- Loading branch information
Showing
5 changed files
with
112 additions
and
1 deletion.
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
11 changes: 11 additions & 0 deletions
11
model/model-intest/src/test/resources/tracing/archetype-dummy.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,11 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
|
||
<archetype xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
oid="70f3f752-89fc-46e5-80f5-b15c2a4bd5e5"> | ||
<name>dummy</name> | ||
</archetype> |
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
40 changes: 40 additions & 0 deletions
40
model/model-intest/src/test/resources/tracing/task-recompute-administrator-traced.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,40 @@ | ||
<!-- | ||
~ 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. | ||
--> | ||
|
||
<task xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" | ||
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" | ||
oid="80b30eb9-55d3-40dc-a674-cc1c9e0400d6"> | ||
<name>task-recompute-administrator-traced</name> | ||
<assignment> | ||
<targetRef oid="70f3f752-89fc-46e5-80f5-b15c2a4bd5e5" type="ArchetypeType"/> | ||
</assignment> | ||
<ownerRef oid="00000000-0000-0000-0000-000000000002" type="UserType"/> | ||
<executionState>runnable</executionState> | ||
<activity> | ||
<work> | ||
<recomputation> | ||
<objects> | ||
<type>UserType</type> | ||
<query> | ||
<q:filter> | ||
<q:inOid> | ||
<q:value>00000000-0000-0000-0000-000000000002</q:value> | ||
</q:inOid> | ||
</q:filter> | ||
</query> | ||
</objects> | ||
</recomputation> | ||
</work> | ||
<reporting> | ||
<tracing> | ||
<tracingProfile> | ||
<ref>functional-model-logging</ref> | ||
</tracingProfile> | ||
</tracing> | ||
</reporting> | ||
</activity> | ||
</task> |
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