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

Dry run reconciliation does not set situation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.9.1
    • 3.9.1, 4.0
    • None
    • Active subscription
    • v3.9support-52-g66a6929

    Description

      There is a change in behaviour in dry run reconciliation since 3.8.

      I have a two-intent configuration, both intents have synchronization configuration.

      The reconciliation with dry-run will correctly correlate and decide the situation, but it is not stored in shadow. AFAIK the dry run should to everything except applying reaction(s).

      2019-01-24 14:26:14,839 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: received change notification
      :  ResourceObjectShadowChangeDescription(http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#discovery)
          resource:resource:10000000-9999-9999-0000-a000ff000002(CSV-1 (Document Access))
          objectDelta: null
          oldShadow: null
          currentShadow:
            shadow: (e35be37e-fdc4-47b5-82a3-da8cdf7d71f3, ShadowType)
                attributes: 
                    lname: Test
                    login: _xxx88
                    fname: Test
                objectClass: {...resource/instance-3}AccountObjectClass
                credentials: 
                    password: 
                        value: ProtectedStringType([encrypted data])
                exists: true
                activation: 
                    administrativeStatus: DISABLED
                resourceRef: oid=null(ResourceType)*
          unrelatedChange: true
      2019-01-24 14:26:14,839 [] [midPointScheduler_Worker-1] INFO (com.evolveum.midpoint.expression): XXX Synchronization condition for account/default; name (getName()) = null; name (getAttributeValue) = _xxx88; evaluated to false
      2019-01-24 14:26:14,840 [] [midPointScheduler_Worker-1] INFO (com.evolveum.midpoint.expression): XXX Synchronization condition for account/test; name (getName()) = null; name (getAttribute) = _xxx88; evaluated to true
      2019-01-24 14:26:14,840 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION determined policy: Test account
      2019-01-24 14:26:14,847 [] [midPointScheduler_Worker-1] DEBUG (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: UNRELATED CHNAGE for shadow:e35be37e-fdc4-47b5-82a3-da8cdf7d71f3(null)
      2019-01-24 14:26:14,850 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizeAccountResultHandler): Reconciliation considering object:
        shadow: (e35be37e-fdc4-47b5-82a3-da8cdf7d71f3, v1, ShadowType)
            name: _xxx88
            resourceRef: oid=10000000-9999-9999-0000-a000ff000002(ResourceType)[default]
            synchronizationTimestamp: 2019-01-24T14:26:14.841+01:00
            fullSynchronizationTimestamp: 2019-01-24T14:26:14.841+01:00
            objectClass: {...resource/instance-3}AccountObjectClass
            kind: ACCOUNT
            intent: test
            exists: true
            attributes: 
                lname: Test
                login: _xxx88
                fname: Test
            activation: 
                administrativeStatus: DISABLED
            credentials: 
                password: 
                    value: ProtectedStringType([encrypted data])
                    metadata: 
                        createTimestamp: 2019-01-24T14:26:14.829+01:00
                        creatorRef: oid=00000000-0000-0000-0000-000000000002(UserType)[default]
      2019-01-24 14:26:14,851 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: received change notification
      :  ResourceObjectShadowChangeDescription(http://midpoint.evolveum.com/xml/ns/public/provisioning/channels-3#reconciliation)
          resource:resource:10000000-9999-9999-0000-a000ff000002(CSV-1 (Document Access))
          objectDelta: null
          oldShadow: null
          currentShadow:
            shadow: (e35be37e-fdc4-47b5-82a3-da8cdf7d71f3, v1, ShadowType)
                name: _xxx88
                resourceRef: oid=10000000-9999-9999-0000-a000ff000002(ResourceType)[default]
                synchronizationTimestamp: 2019-01-24T14:26:14.841+01:00
                fullSynchronizationTimestamp: 2019-01-24T14:26:14.841+01:00
                objectClass: {...resource/instance-3}AccountObjectClass
                kind: ACCOUNT
                intent: test
                exists: true
               attributes: 
                    lname: Test
                    login: _xxx88
                    fname: Test
                activation: 
                    administrativeStatus: DISABLED
                credentials: 
                    password: 
                        value: ProtectedStringType([encrypted data])
                        metadata: 
                            createTimestamp: 2019-01-24T14:26:14.829+01:00
                            creatorRef: oid=00000000-0000-0000-0000-000000000002(UserType)[default]
          unrelatedChange: false
      2019-01-24 14:26:14,861 [] [midPointScheduler_Worker-1] INFO (com.evolveum.midpoint.expression): XXX Synchronization condition for account/test; name (getName()) = _xxx88; name (getAttribute) = _xxx88; evaluated to true
      2019-01-24 14:26:14,861 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION determined policy: Test account
      2019-01-24 14:26:14,861 [] [midPointScheduler_Worker-1] 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: Test account
      2019-01-24 14:26:14,861 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Determining situation for resource object shadow.
      2019-01-24 14:26:14,864 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Resource object shadow doesn't have owner.
      2019-01-24 14:26:14,864 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): Correlated owner present in synchronization context: null
      2019-01-24 14:26:14,864 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: CORRELATION: Looking for list of UserType objects based on correlation rule.
      2019-01-24 14:26:14,864 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.CorrelationConfirmationEvaluator): Condition null in correlation expression evaluated to true
      2019-01-24 14:26:14,865 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.CorrelationConfirmationEvaluator): SYNCHRONIZATION: CORRELATION: expression for results in filter
      Filter:
        EQUAL:
          PATH: name
          DEF: PPD:{.../common/common-3}name {http://prism.evolveum.com/xml/ns/public/types-3}PolyStringType[0,1],RAM
          VALUE:
              PolyString(xxx88,xxx88)
          MATCHING: {http://prism.evolveum.com/xml/ns/public/matching-rule-3}polyStringNorm
      Paging: null
      2019-01-24 14:26:14,867 [] [midPointScheduler_Worker-1] DEBUG (com.evolveum.midpoint.model.impl.sync.CorrelationConfirmationEvaluator): SYNCHRONIZATION: CORRELATION: expression for shadow:e35be37e-fdc4-47b5-82a3-da8cdf7d71f3(_xxx88) returned 0 users: []
      2019-01-24 14:26:14,868 [] [midPointScheduler_Worker-1] TRACE (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: SITUATION: 'unmatched', currentOwner=null, correlatedOwner=null
      2019-01-24 14:26:14,875 [] [midPointScheduler_Worker-1] DEBUG (com.evolveum.midpoint.model.impl.sync.SynchronizationServiceImpl): SYNCHRONIZATION: DONE (dry run) for shadow:e35be37e-fdc4-47b5-82a3-da8cdf7d71f3(_xxx88)
      
      <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="e35be37e-fdc4-47b5-82a3-da8cdf7d71f3" version="2">
          <name>_xxx88</name>
          <resourceRef oid="10000000-9999-9999-0000-a000ff000002" relation="org:default" type="c:ResourceType"/>
          <synchronizationTimestamp>2019-01-24T14:26:14.868+01:00</synchronizationTimestamp>
          <fullSynchronizationTimestamp>2019-01-24T14:26:14.868+01:00</fullSynchronizationTimestamp>
          <objectClass>ri:AccountObjectClass</objectClass>
          <kind>account</kind>
          <intent>test</intent>
          <exists>true</exists>
          <attributes>
              <ri:login>_xxx88</ri:login>
          </attributes>
          <activation/>
          <credentials>
              <password>
                  <metadata>
                      <createTimestamp>2019-01-24T14:26:14.829+01:00</createTimestamp>
                      <creatorRef xmlns:tns="http://midpoint.evolveum.com/xml/ns/public/common/common-3" oid="00000000-0000-0000-0000-000000000002" relation="org:default" type="tns:UserType"/>
                  </metadata>
              </password>
          </credentials>
      </shadow>
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: