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

REST - Deleting user with a non existent relationship object returns 404

    XMLWordPrintable

    Details

      Description

      When you delete a managed user with a non-existent relationship, the HTTP DELETE command returns a 404 Not found although the user is deleted.

      How to reproduce

      1. Create user1
      2. Create user2
      3. Create a direct report (user1 reports to user2)
      4. Use the UI (or a script) to delete both users at the same time
        1. Because users are deleted simultaneously, the user1 deletion returns a 404 (which is because the relationship object no longer exists) although the user is deleted. 
      5. Check the gif recording: https://recordit.co/GCuYQq8bgE

      Expected behavior

      Since the user is actually deleted, the HTTP response should be a 200 OK. The 404 which is caused by the non-existing relationship object, is misleading.
      Perhaps, it should ignore the relationship object deletion failure (since the user is eventually deleted).

      Workaround

      Delete the users one-by-one

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              brmiller Brendan Miller
              Reporter:
              anastasios.kampas Anastasios Kampas
              QA Assignee:
              Alexander Dracka Alexander Dracka
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: