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

Queued Sync - Queue entry is not properly cleaned if managed and system user is deleted

    XMLWordPrintable

Details

    Description

      If managed user is deleted and instantly same user in system endpoint is deleted, queued sync is not properly cleaned despite fact, that remainingRetries is 0.

      Steps to reproduce

      1. Use OpenIDM with sync-with-ldap-bidirectional sample and enable queued sync
      2. Create user
        curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --header "Content-Type: application/json" --header "If-None-Match: *" --data '{"userName": "rsutter", "givenName": "rick", "sn": "sutter", "mail": "rick@example.com", "telephoneNumber": "6669876987", "password": "Th3Password", "description": "Just another user"}' --request PUT "http://localhost:8080/openidm/managed/user/ricksutter"
        
        {"_id":"ricksutter","_rev":"00000000a2c9e15c","userName":"rsutter","givenName":"rick","sn":"sutter","mail":"rick@example.com","telephoneNumber":"6669876987","description":"Just another user","accountStatus":"active","effectiveRoles":[],"effectiveAssignments":[]}
        
      3. Wait until queue is empty (ldap user should be created)
      4. Delete managed user, then ldap user at once
      5. Queue is not cleaned
        curl --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin"  --request GET "curl http://localhost:8080/openidm/sync/queue?_queryFilter=true"
        
        [{'_id': 'a56a2c2c-79e6-49a7-9758-056575c8e46a', '_rev': '0000000049896fe2', 'mapping': 'managedUser_systemLdapAccounts', 'resourceId': 'ricksutter', 'remainingRetries': 0, 'syncAction': 'notifyDelete', 'state': 'ACQUIRED', 'resourceCollection': 'managed/user', 'nodeId': 'node1', 'createDate': '2018-09-11T13:19:45.631Z'}]
        

      OpenIDM logs doesn't contain any exception.

      Attachments

        Activity

          People

            dhogan Dirk Hogan
            michal.orlik@profiq.cz Michal Orlik
            Michal Orlik Michal Orlik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: