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

Problem with two modifications on dead resource

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2 (Crius)
    • None
    • None

    Description

      0. take clean repo, import opendj resource (-sync-no-extension-advanced)
      1. create user u1 with assigned account on opendj, click SAVE
      2. reopen u1
      2a. stop opendj (for the changes NOT to be applied)
      2b. change given name on account to u1a
      2c. save
      3. start opendj (to be able to reopen u1)
      4. reopen u1
      4a. stop opendj (for the changes NOT to be applied)
      4b. change given name on account to u1b
      4c. save

      Now the objectChange in shadow is wrong:

      <c:objectChange xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-2a"
                         xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-2"
                         xmlns:t="http://prism.evolveum.com/xml/ns/public/types-2"
                         xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-2"
                         xmlns:q="http://prism.evolveum.com/xml/ns/public/query-2"
                         xmlns:cap="http://midpoint.evolveum.com/xml/ns/public/resource/capabilities-2"
                         xmlns:apti="http://midpoint.evolveum.com/xml/ns/public/common/api-types-2"
                         xmlns:wfcf="http://midpoint.evolveum.com/xml/ns/model/workflow/common-forms-2"
                         xmlns:m="http://midpoint.evolveum.com/xml/ns/public/model/model-context-2"
                         xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
                         xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
            <t:changeType>modify</t:changeType>
            <t:objectType>c:ShadowType</t:objectType>
            <t:oid>af01aac2-1f36-4bf9-8596-ddce10827e32</t:oid>
            <t:modification>
               <t:modificationType>add</t:modificationType>
               <t:path xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd">c:attributes</t:path>
               <t:value>
                  <ri:givenName xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2"
                                xmlns="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2"
                                xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd"
                                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                                xsi:type="xsd:string">u1b</ri:givenName>
                  <ri:givenName xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2"
                                xmlns="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2"
                                xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd"
                                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                                xsi:type="xsd:string">u1a</ri:givenName>
               </t:value>
            </t:modification>
            <t:modification>
               <t:modificationType>delete</t:modificationType>
               <t:path xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd">c:attributes</t:path>
               <t:value>
                  <ri:givenName xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2"
                                xmlns="http://midpoint.evolveum.com/xml/ns/public/resource/instance-2"
                                xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd"
                                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                                xsi:type="xsd:string">u1</ri:givenName>
               </t:value>
            </t:modification>
            <t:modification>
               <t:modificationType>replace</t:modificationType>
               <t:path xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd">c:metadata</t:path>
               <t:value>
                  <c:modifyChannel xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd"
                                   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                                   xsi:type="xsd:string">http://midpoint.evolveum.com/xml/ns/public/gui/channels-2#user</c:modifyChannel>
               </t:value>
            </t:modification>
            <t:modification>
               <t:modificationType>replace</t:modificationType>
               <t:path xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd">c:metadata</t:path>
               <t:value>
                  <c:modifyTimestamp xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd"
                                     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                                     xsi:type="xsd:dateTime">2013-07-26T09:09:00.765+02:00</c:modifyTimestamp>
               </t:value>
            </t:modification>
            <t:modification>
               <t:modificationType>replace</t:modificationType>
               <t:path xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd">c:metadata</t:path>
               <t:value>
                  <c:modifierRef xmlns:gen784="http://midpoint.evolveum.com/xml/ns/fake/sqlRepository-1.xsd"
                                 oid="00000000-0000-0000-0000-000000000002"/>
               </t:value>
            </t:modification>
         </c:objectChange>
      

      and the reconciliation fails with

      2013-07-26 09:18:43,454 [UCF] [midPointScheduler_Worker-6] ERROR (com.evolveum.midpoint.model.util.AbstractSearchIterativeResultHandler): Reconciliation of object object:af01aac2-1f36-4bf9-8596-ddce10827e32(uid=u1,ou=people,dc=example,dc=com) from resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2(Localhost OpenDJ (no extension schema)) failed: com.evolveum.midpoint.util.exception.SystemException: Synchronization action failed, reason: Attempt to get single value from property {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}givenName with multiple values
      com.evolveum.midpoint.util.exception.SystemException: com.evolveum.midpoint.util.exception.SystemException: Synchronization action failed, reason: Attempt to get single value from property {http://midpoint.evolveum.com/xml/ns/public/common/common-2a}givenName with multiple values
      

      Attachments

        Activity

          People

            mederly Pavol Mederly
            mederly Pavol Mederly
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: