{"action":"created","issue":{"url":"https://api.github.com/repos/instructure/canvas-lms/issues/921","repository_url":"https://api.github.com/repos/instructure/canvas-lms","labels_url":"https://api.github.com/repos/instructure/canvas-lms/issues/921/labels{/name}","comments_url":"https://api.github.com/repos/instructure/canvas-lms/issues/921/comments","events_url":"https://api.github.com/repos/instructure/canvas-lms/issues/921/events","html_url":"https://github.com/instructure/canvas-lms/pull/921","id":182621084,"number":921,"title":"Parsing and taking URI.host from HostUrl.cdn_host","user":{"login":"jorgevbo","id":1534102,"avatar_url":"https://avatars.githubusercontent.com/u/1534102?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgevbo","html_url":"https://github.com/jorgevbo","followers_url":"https://api.github.com/users/jorgevbo/followers","following_url":"https://api.github.com/users/jorgevbo/following{/other_user}","gists_url":"https://api.github.com/users/jorgevbo/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgevbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgevbo/subscriptions","organizations_url":"https://api.github.com/users/jorgevbo/orgs","repos_url":"https://api.github.com/users/jorgevbo/repos","events_url":"https://api.github.com/users/jorgevbo/events{/privacy}","received_events_url":"https://api.github.com/users/jorgevbo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/instructure/canvas-lms/labels/Waiting:%20Contributor","name":"Waiting: Contributor","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-12T20:07:26Z","updated_at":"2016-10-20T19:31:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/instructure/canvas-lms/pulls/921","html_url":"https://github.com/instructure/canvas-lms/pull/921","diff_url":"https://github.com/instructure/canvas-lms/pull/921.diff","patch_url":"https://github.com/instructure/canvas-lms/pull/921.patch"},"body":"HostUrl.cdn_host contains full URL. Parsing and taking URI.host.\r\n\r\nWhen It assign uri.host, Ruby raise a exception:\r\n\r\nURI::InvalidComponentError (bad component(expected host component): https://xxxxxxxxxx.cloudfront.net):\r\n/usr/lib/ruby/2.1.0/uri/generic.rb:605:in check_host' /usr/lib/ruby/2.1.0/uri/generic.rb:646:inhost='\r\n/var/canvas/app/models/user.rb:1319:in avatar_fallback_url' /var/canvas/app/helpers/avatar_helper.rb:77:inavatar_url_for_user'\r\n/var/canvas/lib/api/v1/user.rb:73:in block in user_json' /var/canvas/lib/api/v1/user.rb:48:intap'\r\n/var/canvas/lib/api/v1/user.rb:48:in user_json' /var/canvas/app/controllers/users_controller.rb:1053:inapi_show'"},"comment":{"url":"https://api.github.com/repos/instructure/canvas-lms/issues/comments/255204900","html_url":"https://github.com/instructure/canvas-lms/pull/921#issuecomment-255204900","issue_url":"https://api.github.com/repos/instructure/canvas-lms/issues/921","id":255204900,"user":{"login":"tierra","id":106098,"avatar_url":"https://avatars.githubusercontent.com/u/106098?v=3","gravatar_id":"","url":"https://api.github.com/users/tierra","html_url":"https://github.com/tierra","followers_url":"https://api.github.com/users/tierra/followers","following_url":"https://api.github.com/users/tierra/following{/other_user}","gists_url":"https://api.github.com/users/tierra/gists{/gist_id}","starred_url":"https://api.github.com/users/tierra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tierra/subscriptions","organizations_url":"https://api.github.com/users/tierra/orgs","repos_url":"https://api.github.com/users/tierra/repos","events_url":"https://api.github.com/users/tierra/events{/privacy}","received_events_url":"https://api.github.com/users/tierra/received_events","type":"User","site_admin":false},"created_at":"2016-10-20T19:31:23Z","updated_at":"2016-10-20T19:31:23Z","body":"This is just waiting on a fix for that selenium spec btw:\r\n\r\n```\r\nrspec  spec/selenium/speedgrader_comments_spec.rb\r\n```"}}
{"actor":{"display_login":"tierra"}}