{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/fbctf/issues/111","repository_url":"https://api.github.com/repos/facebook/fbctf","labels_url":"https://api.github.com/repos/facebook/fbctf/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/facebook/fbctf/issues/111/comments","events_url":"https://api.github.com/repos/facebook/fbctf/issues/111/events","html_url":"https://github.com/facebook/fbctf/issues/111","id":157088711,"number":111,"title":"Deleting a user leads to unusable admin area","user":{"login":"paulmar","id":3985614,"avatar_url":"https://avatars.githubusercontent.com/u/3985614?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmar","html_url":"https://github.com/paulmar","followers_url":"https://api.github.com/users/paulmar/followers","following_url":"https://api.github.com/users/paulmar/following{/other_user}","gists_url":"https://api.github.com/users/paulmar/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmar/subscriptions","organizations_url":"https://api.github.com/users/paulmar/orgs","repos_url":"https://api.github.com/users/paulmar/repos","events_url":"https://api.github.com/users/paulmar/events{/privacy}","received_events_url":"https://api.github.com/users/paulmar/received_events","type":"User","site_admin":false},"labels":[{"id":341471933,"url":"https://api.github.com/repos/facebook/fbctf/labels/bug","name":"bug","color":"fc2929","default":true},{"id":383632375,"url":"https://api.github.com/repos/facebook/fbctf/labels/platform","name":"platform","color":"b60205","default":false}],"state":"open","locked":false,"assignee":{"login":"javuto","id":1271349,"avatar_url":"https://avatars.githubusercontent.com/u/1271349?v=3","gravatar_id":"","url":"https://api.github.com/users/javuto","html_url":"https://github.com/javuto","followers_url":"https://api.github.com/users/javuto/followers","following_url":"https://api.github.com/users/javuto/following{/other_user}","gists_url":"https://api.github.com/users/javuto/gists{/gist_id}","starred_url":"https://api.github.com/users/javuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javuto/subscriptions","organizations_url":"https://api.github.com/users/javuto/orgs","repos_url":"https://api.github.com/users/javuto/repos","events_url":"https://api.github.com/users/javuto/events{/privacy}","received_events_url":"https://api.github.com/users/javuto/received_events","type":"User","site_admin":false},"assignees":[{"login":"javuto","id":1271349,"avatar_url":"https://avatars.githubusercontent.com/u/1271349?v=3","gravatar_id":"","url":"https://api.github.com/users/javuto","html_url":"https://github.com/javuto","followers_url":"https://api.github.com/users/javuto/followers","following_url":"https://api.github.com/users/javuto/following{/other_user}","gists_url":"https://api.github.com/users/javuto/gists{/gist_id}","starred_url":"https://api.github.com/users/javuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javuto/subscriptions","organizations_url":"https://api.github.com/users/javuto/orgs","repos_url":"https://api.github.com/users/javuto/repos","events_url":"https://api.github.com/users/javuto/events{/privacy}","received_events_url":"https://api.github.com/users/javuto/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2016-05-26T21:59:20Z","updated_at":"2016-11-28T10:33:33Z","closed_at":null,"body":"After deleting a regular user through the admin area, parts of the admin become unusable.\n\nAccessing the Configuration section does not work:\n`[Thu May 26 21:56:56 2016] [hphp] [10216:7f418afff700:715:000001] [] \\nFatal error: Uncaught exception 'HH\\\\InvariantException' with message 'Expected exactly one result' in /var/www/fbctf/src/models/Session.php:94\\nStack trace:\\n#0 /var/www/fbctf/src/models/Session.php(94): HH\\\\invariant_violation()\\n#1 (): Session::gen()\\n#2 (): HH\\\\WaitHandle->join()\\n#3 /var/www/fbctf/src/SessionUtils.php(59): HH\\\\Asio\\\\join()\\n#4 (): SessionUtils::read()\\n#5 (): call_user_func()\\n#6 /var/www/fbctf/src/SessionUtils.php(32): __SystemLib\\\\SessionForwardingHandler->read()\\n#7 /var/www/fbctf/src/inc/gameboard/modules/leaderboard.php(6): SessionUtils::sessionStart()\\n#8 {main}`\n\nEnding the game does not work:\n`Thu May 26 21:53:51 2016] [hphp] [10216:7f41747ff700:534:000001] [] \\nFatal error: Uncaught exception 'OutOfBoundsException' with message 'Integer key 0 is out of bounds' in /var/www/fbctf/src/models/Control.php:37\\nStack trace:\\n#0 /var/www/fbctf/src/models/Level.php(827): Control::genScriptPid()\\n#1 /var/www/fbctf/src/models/Control.php(109): Level::genStopBaseScoring()\\n#2 /var/www/fbctf/src/controllers/ajax/AdminAjaxController.php(441): Control::genEnd()\\n#3 /var/www/fbctf/src/controllers/ajax/AjaxController.php(14): AdminAjaxController->genHandleAction()\\n#4 /var/www/fbctf/src/Router.php(57): AjaxController->genHandleRequest()\\n#5 /var/www/fbctf/src/Router.php(13): Router::genRouteAjax()\\n#6 /var/www/fbctf/src/index.php(7): Router::genRoute()\\n#7 (): genInit()\\n#8 (): HH\\\\WaitHandle->join()\\n#9 /var/www/fbctf/src/index.php(19): HH\\\\Asio\\\\join()\\n#10 {main}`\n"},"comment":{"url":"https://api.github.com/repos/facebook/fbctf/issues/comments/263237218","html_url":"https://github.com/facebook/fbctf/issues/111#issuecomment-263237218","issue_url":"https://api.github.com/repos/facebook/fbctf/issues/111","id":263237218,"user":{"login":"justinwray","id":22864312,"avatar_url":"https://avatars.githubusercontent.com/u/22864312?v=3","gravatar_id":"","url":"https://api.github.com/users/justinwray","html_url":"https://github.com/justinwray","followers_url":"https://api.github.com/users/justinwray/followers","following_url":"https://api.github.com/users/justinwray/following{/other_user}","gists_url":"https://api.github.com/users/justinwray/gists{/gist_id}","starred_url":"https://api.github.com/users/justinwray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinwray/subscriptions","organizations_url":"https://api.github.com/users/justinwray/orgs","repos_url":"https://api.github.com/users/justinwray/repos","events_url":"https://api.github.com/users/justinwray/events{/privacy}","received_events_url":"https://api.github.com/users/justinwray/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T10:33:33Z","updated_at":"2016-11-28T10:33:33Z","body":"This issue should be resolved in PR #372."}}
{"actor":{"display_login":"justinwray"}}