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

Livesync from CSV connector resource has bad conflict user processing, fatal error is not recorded to shadow

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 4.0.1
    • 4.0.1, 4.1
    • None

    Description

      I'm using CSV resource as the source resource. See localhost-contractors.xml in MID-102 training.

      There is a livesync task configured. Everything works normally.

      Now I try to add an account which should cause attempt to create the username which already exists. (This is intentional to show error).

      Previously (6/2019), livesync would indicate an error, continue, and the shadow object would be created and contain the exception.

      Now with 4.0.1, this does not happen:

      1. livesync indicates partial fatal error, does not suspend itself
      2. livesync does not try to refetch the account each 5 seconds. The token is not updated.
      3. shadow does not contain any exception
      4. midpoint.log contains (see attached):

      Shadow:

      <shadow xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3" xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3" xmlns:org="http://midpoint.evolveum.com/xml/ns/public/common/org-3" xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3" xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3" xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3" oid="9013bcfd-7ab3-4c09-ba66-2c938f1de02d" version="40">
          <name>ce0f52f0-3713-11e8-8517-67927e85e225</name>
          <operationExecution id="20">
              <timestamp>2019-09-25T16:48:38.540+02:00</timestamp>
              <status>success</status>
              <initiatorRef oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="c:UserType">
                  <!-- administrator -->
              </initiatorRef>
              <taskRef oid="5ca197c8-8794-439a-b521-b8deb259cf8a" relation="org:default" type="c:TaskType">
                  <!-- Contractor DB Synchronization -->
              </taskRef>
              <channel>http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#liveSync</channel>
          </operationExecution>
          <resourceRef oid="ff735c0a-21e3-11e8-a91a-df0065248d2d" relation="org:default" type="c:ResourceType">
              <!-- ExAmPLE, Inc. Contractor DB -->
          </resourceRef>
          <synchronizationSituation>unmatched</synchronizationSituation>
          <synchronizationTimestamp>2019-09-25T16:48:38.509+02:00</synchronizationTimestamp>
          <fullSynchronizationTimestamp>2019-09-25T16:48:38.509+02:00</fullSynchronizationTimestamp>
          <synchronizationSituationDescription>
              <situation>unmatched</situation>
              <timestamp>2019-09-25T16:48:38.509+02:00</timestamp>
              <channel>http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#liveSync</channel>
              <full>true</full>
          </synchronizationSituationDescription>
          <objectClass>ri:AccountObjectClass</objectClass>
          <primaryIdentifierValue>ce0f52f0-3713-11e8-8517-67927e85e225</primaryIdentifierValue>
          <kind>account</kind>
          <intent>default</intent>
          <exists>true</exists>
          <attributes>
              <ri:cid>ce0f52f0-3713-11e8-8517-67927e85e225</ri:cid>
          </attributes>
          <activation/>
      </shadow>
      

      Attachments

        Issue Links

          Activity

            People

              vix Ivan Noris
              vix Ivan Noris
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: