alphagov/paas-admin

Cannot display list of org members when a user is deleted from UAA but not from CF

Closed this issue · 0 comments

46bit commented

When a member of your org has been deleted from UAA but still exists in CF, paas-admin returns a HTTP 500 error for the org's members page.

Here's the error message from my environment:

2019-08-09T11:19:20.89+0100 [APP/PROC/WEB/1] OUT {"level":50,"time":1565345960892,"pid":12,"hostname":"e1f8d666-5451-4965-573b-9d75","req":{"method":"GET","url":"/organisations/b4989f51-7709-4533-ab50-b4410600b589/users"},"msg":"UAAClient: get /Users/badb45db-273d-45fa-b543-fecb23486530 failed with status 404 and data {\"error_description\":\"User badb45db-273d-45fa-b543-fecb23486530 does not exist\",\"error\":\"scim_resource_not_found\",\"message\":\"User badb45db-273d-45fa-b543-fecb23486530 does not exist\"}","stack":"Error: UAAClient: get /Users/badb45db-273d-45fa-b543-fecb23486530 failed with status 404 and data {\"error_description\":\"User badb45db-273d-45fa-b543-fecb23486530 does not exist\",\"error\":\"scim_resource_not_found\",\"message\":\"User badb45db-273d-45fa-b543-fecb23486530 does not exist\"}\n    at /home/vcap/app/dist/webpack:/src/lib/uaa/uaa.ts:203:11\n    at Generator.next (<anonymous>)\n    at fulfilled (/home/vcap/deps/0/node_modules/tslib/tslib.js:107:62)\n    at process._tickCallback (internal/process/next_tick.js:68:7)","type":"Error","v":1}