{"action":"created","issue":{"url":"https://api.github.com/repos/cloudfoundry/uaa/issues/143","labels_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/143/comments","events_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/143/events","html_url":"https://github.com/cloudfoundry/uaa/pull/143","id":66953941,"number":143,"title":"Handle UsernameNotFoundException thrown from UaaUserDatabase","user":{"login":"prcjac","id":2217954,"avatar_url":"https://avatars.githubusercontent.com/u/2217954?v=3","gravatar_id":"","url":"https://api.github.com/users/prcjac","html_url":"https://github.com/prcjac","followers_url":"https://api.github.com/users/prcjac/followers","following_url":"https://api.github.com/users/prcjac/following{/other_user}","gists_url":"https://api.github.com/users/prcjac/gists{/gist_id}","starred_url":"https://api.github.com/users/prcjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prcjac/subscriptions","organizations_url":"https://api.github.com/users/prcjac/orgs","repos_url":"https://api.github.com/users/prcjac/repos","events_url":"https://api.github.com/users/prcjac/events{/privacy}","received_events_url":"https://api.github.com/users/prcjac/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-07T18:00:42Z","updated_at":"2015-04-07T18:00:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cloudfoundry/uaa/pulls/143","html_url":"https://github.com/cloudfoundry/uaa/pull/143","diff_url":"https://github.com/cloudfoundry/uaa/pull/143.diff","patch_url":"https://github.com/cloudfoundry/uaa/pull/143.patch"},"body":"If a token is supplied that contains a GUID for a user that isn't\r\npresent in the database, a UsernameNotFoundException is thrown. The\r\nexception isn't handled by the calling method and since it's runtime it\r\npropogates, triggering a HttpClientErrorException in any Spring security\r\napp using UAA as the OAuth2 provider.\r\nInstead the user lookup is surrounded by a try catch which throws an\r\nappropriate InvalidTokenException, if the user isn't found, which is\r\nhandled correctly."},"comment":{"url":"https://api.github.com/repos/cloudfoundry/uaa/issues/comments/90677983","html_url":"https://github.com/cloudfoundry/uaa/pull/143#issuecomment-90677983","issue_url":"https://api.github.com/repos/cloudfoundry/uaa/issues/143","id":90677983,"user":{"login":"cfdreddbot","id":5149451,"avatar_url":"https://avatars.githubusercontent.com/u/5149451?v=3","gravatar_id":"","url":"https://api.github.com/users/cfdreddbot","html_url":"https://github.com/cfdreddbot","followers_url":"https://api.github.com/users/cfdreddbot/followers","following_url":"https://api.github.com/users/cfdreddbot/following{/other_user}","gists_url":"https://api.github.com/users/cfdreddbot/gists{/gist_id}","starred_url":"https://api.github.com/users/cfdreddbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfdreddbot/subscriptions","organizations_url":"https://api.github.com/users/cfdreddbot/orgs","repos_url":"https://api.github.com/users/cfdreddbot/repos","events_url":"https://api.github.com/users/cfdreddbot/events{/privacy}","received_events_url":"https://api.github.com/users/cfdreddbot/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T18:00:42Z","updated_at":"2015-04-07T18:00:42Z","body":"Hey prcjac!\n\nThanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA.\n"}}