https://redmine.czechidm.com/https://redmine.czechidm.com/themes/purplemine2/favicon/favicon.ico?16339658642021-01-25T15:00:50ZIdStory Identity ManagerIdStory Identity Manager - Defect #2660: Missing configuration of one system after exporting+importing 2 systems at the same time, missing settings of synchronization of contractshttps://redmine.czechidm.com/issues/2660?journal_id=143982021-01-25T15:00:50ZAlena Peterováalena.peterova@bcvsolutions.eu
<ul><li><strong>File</strong> <a href="/attachments/920">sync_contracts_import.png</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/920/sync_contracts_import.png">sync_contracts_import.png</a> added</li><li><strong>Subject</strong> changed from <i>Missing configuration of one system after exporting+importing 2 systems at the same time</i> to <i>Missing configuration of one system after exporting+importing 2 systems at the same time, missing settings of synchronization of contracts</i></li></ul><p>Update: even when importing the "HR - contracts" as a single system, it's not fully OK - the synchronization settings is missing from the imported systems. There is a message:<br /><img src="https://redmine.czechidm.com/attachments/download/920/sync_contracts_import.png" alt="" /></p> IdStory Identity Manager - Defect #2660: Missing configuration of one system after exporting+importing 2 systems at the same time, missing settings of synchronization of contractshttps://redmine.czechidm.com/issues/2660?journal_id=143992021-01-25T16:15:57ZVít Švanda
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li><li><strong>Target version</strong> set to <i>10.8.0</i></li></ul> IdStory Identity Manager - Defect #2660: Missing configuration of one system after exporting+importing 2 systems at the same time, missing settings of synchronization of contractshttps://redmine.czechidm.com/issues/2660?journal_id=144132021-01-26T11:14:01ZVít Švanda
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Needs feedback</i></li><li><strong>Assignee</strong> changed from <i>Vít Švanda</i> to <i>Radek Tomiška</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>90</i></li></ul><p>Fixed - Problem was in the export operation. Exactly in IdmFormInstanceDto. This DTO is unique, because doesn't have a table in DB and ID. I need ID for export in every DTO. As workaround I setted ID of form definition to the IdmFormInstanceDto. This caused the problem, because this ID is not unique for more systems with same connector (has same form definitions). ID of DTO is use as name of file in batch, so IdmFormInstanceDtos were override by next system.</p>
<p>I fixed this by generate unique UUID for every IdmFormInstanceDto.</p>
<p>I created test for this case too.</p>
<p>Commit: <a class="external" href="https://github.com/bcvsolutions/CzechIdMng/commit/2589eb1dfabfe6502f9b7c7da52126ec25af020b">https://github.com/bcvsolutions/CzechIdMng/commit/2589eb1dfabfe6502f9b7c7da52126ec25af020b</a><br />Commit: <a class="external" href="https://github.com/bcvsolutions/CzechIdMng/commit/5c64e890c7b2bc4c0b345a9be28f056a268a40ae">https://github.com/bcvsolutions/CzechIdMng/commit/5c64e890c7b2bc4c0b345a9be28f056a268a40ae</a></p>
<p>Note: The reason SyncContractConfig import was canceled in the batch is that no entity from the required fields was found. In this case, I expect that the node / tree type was not found because it does not exist on the target IdM.</p> IdStory Identity Manager - Defect #2660: Missing configuration of one system after exporting+importing 2 systems at the same time, missing settings of synchronization of contractshttps://redmine.czechidm.com/issues/2660?journal_id=144142021-01-26T11:29:17ZAlena Peterováalena.peterova@bcvsolutions.eu
<ul></ul><p>Vít Švanda wrote:</p>
<blockquote>
<p>Note: The reason SyncContractConfig import was canceled in the batch is that no entity from the required fields was found. In this case, I expect that the node / tree type was not found because it does not exist on the target IdM.</p>
</blockquote>
<p>There was only default tree type with the same code "ORGANIZATIONS" in both environments, that should be enough for the import, isn't it? That's what I understood from <a class="external" href="https://redmine.czechidm.com/issues/2348#note-9">https://redmine.czechidm.com/issues/2348#note-9</a><br />The UID of the tree type is usually not the same, because the tree types are generated automatically.</p> IdStory Identity Manager - Defect #2660: Missing configuration of one system after exporting+importing 2 systems at the same time, missing settings of synchronization of contractshttps://redmine.czechidm.com/issues/2660?journal_id=144182021-01-26T13:21:20ZVít Švanda
<ul></ul><p>Alena Peterová wrote:</p>
<blockquote>
<p>There was only default tree type with the same code "ORGANIZATIONS" in both environments, that should be enough for the import, isn't it? That's what I understood from <a class="external" href="https://redmine.czechidm.com/issues/2348#note-9">https://redmine.czechidm.com/issues/2348#note-9</a><br />The UID of the tree type is usually not the same, because the tree types are generated automatically.</p>
</blockquote>
<p>You have right, tree type and node should be searching by code. I debugged import and I found your scenario. You don't have filled in the tree node but only tree type. I counted with tree node. Exported batch doesn't contains embedded tree type data in this scenario.</p>
<p>I improved export. Scenario with filling only tree type works now too.</p>
<p>Commit: <a class="external" href="https://github.com/bcvsolutions/CzechIdMng/commit/13d9a9e7f2ed650cae593ca620fe9a9a40b89556">https://github.com/bcvsolutions/CzechIdMng/commit/13d9a9e7f2ed650cae593ca620fe9a9a40b89556</a></p> IdStory Identity Manager - Defect #2660: Missing configuration of one system after exporting+importing 2 systems at the same time, missing settings of synchronization of contractshttps://redmine.czechidm.com/issues/2660?journal_id=144592021-02-08T13:49:35ZRadek Tomiškaradek.tomiska@bcvsolutions.eu
<ul><li><strong>Status</strong> changed from <i>Needs feedback</i> to <i>Closed</i></li><li><strong>Assignee</strong> changed from <i>Radek Tomiška</i> to <i>Vít Švanda</i></li><li><strong>% Done</strong> changed from <i>90</i> to <i>100</i></li></ul><p>I did test and code review, both issues are ok now, thx!</p>