Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-14585

Querying reconciliation association entry is not working for external_dj

    Details

    • Target Version/s:
    • Verified Version/s:
    • Story Points:
      1
    • Sprint:
      2020.05 - IDM, 2020.06 - IDM, 2020.07 - IDM

      Description

      Related to this JIRA https://bugster.forgerock.org/jira/browse/OPENIDM-12263

      Query recon assoc endpoint for external_dj repo is not working as expected. Also failing with embedded_dj_explicit_table repo

      Steps to reproduce:

      1. run IDM with sync-with-csv example
      2. Perform recon with persistAssociations=true. eg.:
        curl --location --request POST 'http://idm.example.com:8080/openidm/recon?_action=recon&mapping=systemCsvfileAccounts_managedUser&waitForCompletion=true/&persistAssociations=true&analyze=true' \
        --header 'X-OpenIDM-Username: openidm-admin' \
        --header 'X-OpenIDM-Password: openidm-admin' \
        --header 'Cookie: session-jwt='
        
      3. Query Recon assoc header:
        curl --location --request GET 'http://idm.example.com:8080/openidm/recon/assoc?_queryFilter=true' \
        --header 'Content-Type: application/json' \
        --header 'X-OpenIDM-Username: openidm-admin' \
        --header 'X-OpenIDM-Password: openidm-admin' \
        --header 'Cookie: session-jwt=' \
        --header 'Accept-API-Version: resource=1.0'
        

        or Query Recon assoc entry:

        curl --location --request GET 'http://idm.example.com:8080/openidm/recon/assoc/57e40a1c-33e6-4f69-ac1e-e2b2bf77b0b7-502/entry?_queryFilter=true' \
        --header 'Content-Type: application/json' \
        --header 'X-OpenIDM-Username: openidm-admin' \
        --header 'X-OpenIDM-Password: openidm-admin' \
        --header 'Cookie: session-jwt=' \
        --header 'Accept-API-Version: resource=1.0'
        

      Expected result: Query recon assoc header should return two records and Query recon assoc entry should return correct fields for that association entry
      Actual result: For some reason one assoc record has missing fields:

       {
                  "_id": "4f19f6f0-8e5a-4cf6-9156-65ac35a9f4cb-308",
                  "_rev": "000000003a0c96dd",
                  "finishTime": "2020-04-15T10:19:16.461031Z",
                  "isAnalysis": true,
                  "mapping": "systemCsvfileAccounts_managedUser",
                  "sourceResourceCollection": "system/csvfile/account",
                  "targetResourceCollection": "managed/user"
              },
              {
                  "_rev": "0000000079762ec8"
              }
      

      and therefore this entry cannot be queried (tests failing)

      Tested with the 7.0.0-SNAPSHOT 597de27 and DJ 7.0.0-SNAPSHOT a173d8a12bf
      Please note that embedded_dj is working correctly

        Attachments

          Activity

            People

            • Assignee:
              dhogan Dirk Hogan
              Reporter:
              alexander.dracka Alexander Dracka
              QA Assignee:
              Julian Keller
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: