{"action":"created","issue":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/8099","labels_url":"https://api.github.com/repos/Elgg/Elgg/issues/8099/labels{/name}","comments_url":"https://api.github.com/repos/Elgg/Elgg/issues/8099/comments","events_url":"https://api.github.com/repos/Elgg/Elgg/issues/8099/events","html_url":"https://github.com/Elgg/Elgg/issues/8099","id":63638959,"number":8099,"title":"Race condition when deleting users","user":{"login":"beck24","id":738363,"avatar_url":"https://avatars.githubusercontent.com/u/738363?v=3","gravatar_id":"","url":"https://api.github.com/users/beck24","html_url":"https://github.com/beck24","followers_url":"https://api.github.com/users/beck24/followers","following_url":"https://api.github.com/users/beck24/following{/other_user}","gists_url":"https://api.github.com/users/beck24/gists{/gist_id}","starred_url":"https://api.github.com/users/beck24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beck24/subscriptions","organizations_url":"https://api.github.com/users/beck24/orgs","repos_url":"https://api.github.com/users/beck24/repos","events_url":"https://api.github.com/users/beck24/events{/privacy}","received_events_url":"https://api.github.com/users/beck24/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-23T06:30:40Z","updated_at":"2015-03-23T06:39:24Z","closed_at":null,"body":"This has happened a couple of times on the community site, and I wasn't completely sure this was the reason, but it happened tonight as I deleted as spammer and confirmed my suspicions.\r\n\r\nThe user delete action is initiated - this triggers the 'delete', 'user' event\r\nThat event clears so the system prepares to delete the user - it recursively deletes all content owned or contained by the user.\r\nAfter this the user entity is finally deleted.\r\n\r\nIf the user is active at the time of deletion and posting content, new content can be posted between the time of the recursive delete and the user entity being deleted.  This leaves an orphaned entity in the database and leads to WSOD wherever it's displayed."},"comment":{"url":"https://api.github.com/repos/Elgg/Elgg/issues/comments/84839315","html_url":"https://github.com/Elgg/Elgg/issues/8099#issuecomment-84839315","issue_url":"https://api.github.com/repos/Elgg/Elgg/issues/8099","id":84839315,"user":{"login":"beck24","id":738363,"avatar_url":"https://avatars.githubusercontent.com/u/738363?v=3","gravatar_id":"","url":"https://api.github.com/users/beck24","html_url":"https://github.com/beck24","followers_url":"https://api.github.com/users/beck24/followers","following_url":"https://api.github.com/users/beck24/following{/other_user}","gists_url":"https://api.github.com/users/beck24/gists{/gist_id}","starred_url":"https://api.github.com/users/beck24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beck24/subscriptions","organizations_url":"https://api.github.com/users/beck24/orgs","repos_url":"https://api.github.com/users/beck24/repos","events_url":"https://api.github.com/users/beck24/events{/privacy}","received_events_url":"https://api.github.com/users/beck24/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T06:39:24Z","updated_at":"2015-03-23T06:39:24Z","body":"This may also happen if a process disables a user, it may leave content enabled for a disabled user on race conditions"}}