Uploaded image for project: 'MidPoint'
  1. MidPoint
  2. MID-6608

Synchronization status override

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1, 4.2
    • 4.3, 4.2.1
    • Model
    • 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:

      1. import resource
      2. connectorRef update in resource
      3. CSV file path update in connector config
      4. create reconciliation task for imported resource (dry run)
      5. set logger Synchronization service (c.e.m.model.impl.sync) to TRACE
      6. execute reconciliation task
      7. one user should be UNMATCHED (test1) and one DISPUTED (test2) - both are evaluated as UNMATCHED
      8. 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).

      Attachments

        1. CSVsource.xml
          6 kB
        2. source.csv
          0.0 kB

        Activity

          People

            rgrupac Richard Grupac
            rgrupac Richard Grupac
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: