{"action":"created","issue":{"url":"https://api.github.com/repos/topcoder-platform/community-app/issues/1575","repository_url":"https://api.github.com/repos/topcoder-platform/community-app","labels_url":"https://api.github.com/repos/topcoder-platform/community-app/issues/1575/labels{/name}","comments_url":"https://api.github.com/repos/topcoder-platform/community-app/issues/1575/comments","events_url":"https://api.github.com/repos/topcoder-platform/community-app/issues/1575/events","html_url":"https://github.com/topcoder-platform/community-app/issues/1575","id":363697334,"node_id":"MDU6SXNzdWUzNjM2OTczMzQ=","number":1575,"title":"[$50] Submission Response Error Handling","user":{"login":"cwdcwd","id":1504607,"node_id":"MDQ6VXNlcjE1MDQ2MDc=","avatar_url":"https://avatars3.githubusercontent.com/u/1504607?v=4","gravatar_id":"","url":"https://api.github.com/users/cwdcwd","html_url":"https://github.com/cwdcwd","followers_url":"https://api.github.com/users/cwdcwd/followers","following_url":"https://api.github.com/users/cwdcwd/following{/other_user}","gists_url":"https://api.github.com/users/cwdcwd/gists{/gist_id}","starred_url":"https://api.github.com/users/cwdcwd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwdcwd/subscriptions","organizations_url":"https://api.github.com/users/cwdcwd/orgs","repos_url":"https://api.github.com/users/cwdcwd/repos","events_url":"https://api.github.com/users/cwdcwd/events{/privacy}","received_events_url":"https://api.github.com/users/cwdcwd/received_events","type":"User","site_admin":false},"labels":[{"id":1052875166,"node_id":"MDU6TGFiZWwxMDUyODc1MTY2","url":"https://api.github.com/repos/topcoder-platform/community-app/labels/tcx_Assigned","name":"tcx_Assigned","color":"004E00","default":false}],"state":"open","locked":false,"assignee":{"login":"sumitdaga","id":7769148,"node_id":"MDQ6VXNlcjc3NjkxNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7769148?v=4","gravatar_id":"","url":"https://api.github.com/users/sumitdaga","html_url":"https://github.com/sumitdaga","followers_url":"https://api.github.com/users/sumitdaga/followers","following_url":"https://api.github.com/users/sumitdaga/following{/other_user}","gists_url":"https://api.github.com/users/sumitdaga/gists{/gist_id}","starred_url":"https://api.github.com/users/sumitdaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumitdaga/subscriptions","organizations_url":"https://api.github.com/users/sumitdaga/orgs","repos_url":"https://api.github.com/users/sumitdaga/repos","events_url":"https://api.github.com/users/sumitdaga/events{/privacy}","received_events_url":"https://api.github.com/users/sumitdaga/received_events","type":"User","site_admin":false},"assignees":[{"login":"sumitdaga","id":7769148,"node_id":"MDQ6VXNlcjc3NjkxNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7769148?v=4","gravatar_id":"","url":"https://api.github.com/users/sumitdaga","html_url":"https://github.com/sumitdaga","followers_url":"https://api.github.com/users/sumitdaga/followers","following_url":"https://api.github.com/users/sumitdaga/following{/other_user}","gists_url":"https://api.github.com/users/sumitdaga/gists{/gist_id}","starred_url":"https://api.github.com/users/sumitdaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumitdaga/subscriptions","organizations_url":"https://api.github.com/users/sumitdaga/orgs","repos_url":"https://api.github.com/users/sumitdaga/repos","events_url":"https://api.github.com/users/sumitdaga/events{/privacy}","received_events_url":"https://api.github.com/users/sumitdaga/received_events","type":"User","site_admin":false}],"milestone":null,"comments":21,"created_at":"2018-09-25T17:50:48Z","updated_at":"2018-09-27T07:46:14Z","closed_at":null,"author_association":"MEMBER","body":"**Description of bug**\r\nCurrently, when the submission API receives a `POST` of a submission the API checks that the user has the proper role applied to their JWT in order to POST. When the user does _not_ have the right role (or the roles are missing) the API returns a 403. The front end Community App is not handling this 403 correctly (and likely not handling any error codes) and is hiding the issue from the end user.\r\n\r\n**To Reproduce**\r\nSteps to reproduce the behavior:\r\n1. POST submission to API with and invalid JWT\r\n \r\n\r\n**Expected behavior**\r\nFront end should gracefully handle and report error to end user\r\n\r\n\r\n**Additional context**\r\nThis is most often seen with Topgear SSO users that have a botched/missing role set\r\n"},"comment":{"url":"https://api.github.com/repos/topcoder-platform/community-app/issues/comments/424992296","html_url":"https://github.com/topcoder-platform/community-app/issues/1575#issuecomment-424992296","issue_url":"https://api.github.com/repos/topcoder-platform/community-app/issues/1575","id":424992296,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDk5MjI5Ng==","user":{"login":"sumitdaga","id":7769148,"node_id":"MDQ6VXNlcjc3NjkxNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/7769148?v=4","gravatar_id":"","url":"https://api.github.com/users/sumitdaga","html_url":"https://github.com/sumitdaga","followers_url":"https://api.github.com/users/sumitdaga/followers","following_url":"https://api.github.com/users/sumitdaga/following{/other_user}","gists_url":"https://api.github.com/users/sumitdaga/gists{/gist_id}","starred_url":"https://api.github.com/users/sumitdaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumitdaga/subscriptions","organizations_url":"https://api.github.com/users/sumitdaga/orgs","repos_url":"https://api.github.com/users/sumitdaga/repos","events_url":"https://api.github.com/users/sumitdaga/events{/privacy}","received_events_url":"https://api.github.com/users/sumitdaga/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T07:46:14Z","updated_at":"2018-09-27T07:46:14Z","author_association":"CONTRIBUTOR","body":"@cwdcwd  \r\nplease check the PR #1591 \r\n\r\nit should fix the issue but i am not sure if this is the best way to do it though ...  \r\nplease check the code changes too ...just to be sure that it does not break anything else or that it is the correct way to handle this!"}}
{"actor":{"display_login":"sumitdaga"}}