Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.1, 4.2
-
None
-
Active subscription
-
v4.1, master
Description
When using objectSynchronizationSorter for setting synchronization states on account, after correct evaluation is synchronization state overriden.
Attaching resource XML (CSVsource.xml) with sample data CSV (source.csv).
Steps to replicate:
- import resource
- connectorRef update in resource
- CSV file path update in connector config
- create reconciliation task for imported resource (dry run)
- set logger Synchronization service (c.e.m.model.impl.sync) to TRACE
- execute reconciliation task
- one user should be UNMATCHED (test1) and one DISPUTED (test2) - both are evaluated as UNMATCHED
- logs from synchronization contains similar results as below (overriden state from DISPUTED to UNMATCHED):
2020-10-09 08:45:34,518 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Setting synchronization situation to synchronization context: DISPUTED 2020-10-09 08:45:34,518 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Setting correlated owner to synchronization context: null 2020-10-09 08:45:34,519 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION determined policy: SAP user synchronization 2020-10-09 08:45:34,519 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Synchronization is enabled, focus class: class com.evolveum.midpoint.xml.ns._public.common.common_3.UserType, found applicable policy: SAP user synchronization 2020-10-09 08:45:34,519 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Determining situation for resource object shadow. 2020-10-09 08:45:34,520 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Resource object shadow doesn't have owner. 2020-10-09 08:45:34,520 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Correlated owner present in synchronization context: null 2020-10-09 08:45:34,520 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: CORRELATION: Looking for list of UserType objects based on correlation rule. 2020-10-09 08:45:34,520 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] WARN (com.evolveum.midpoint.model.impl.sync.SynchronizationExpressionsEvaluator): Correlation rule for resource 'resource:8fad42dd-569b-4ae3-8701-03f534a658bc(CSV_source)' doesn't contain query, returning empty list of users. 2020-10-09 08:45:34,520 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: SITUATION: 'unmatched', currentOwner=null, correlatedOwner=null 2020-10-09 08:45:34,527 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] DEBUG (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: DONE (dry run) for shadow:1226b679-838c-419f-b05a-0b0ca92c08fa(test2) 2020-10-09 08:45:34,527 [SYNCHRONIZATION_SERVICE] [midPointScheduler_Worker-2] DEBUG (com.evolveum.midpoint.model.impl.sync.SynchronizeAccountResultHandler): #### notify change finished 2020-10-09 08:45:34,528 [] [midPointScheduler_Worker-2] INFO (com.evolveum.midpoint.model.impl.sync.ReconciliationTaskHandler): Finished resource part of resource:8fad42dd-569b-4ae3-8701-03f534a658bc(CSV_source) reconciliation: Processed 2 account(s), got 0 error(s). Average time for one object: 13.0 ms (wall clock time average: 36.0 ms).