{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/11806","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11806/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11806/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11806/events","html_url":"https://github.com/joomla/joomla-cms/issues/11806","id":173423831,"number":11806,"title":"Download of update package failed","user":{"login":"lunopad","id":21255453,"avatar_url":"https://avatars.githubusercontent.com/u/21255453?v=3","gravatar_id":"","url":"https://api.github.com/users/lunopad","html_url":"https://github.com/lunopad","followers_url":"https://api.github.com/users/lunopad/followers","following_url":"https://api.github.com/users/lunopad/following{/other_user}","gists_url":"https://api.github.com/users/lunopad/gists{/gist_id}","starred_url":"https://api.github.com/users/lunopad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunopad/subscriptions","organizations_url":"https://api.github.com/users/lunopad/orgs","repos_url":"https://api.github.com/users/lunopad/repos","events_url":"https://api.github.com/users/lunopad/events{/privacy}","received_events_url":"https://api.github.com/users/lunopad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-26T10:41:38Z","updated_at":"2016-08-26T17:54:23Z","closed_at":null,"body":"I was trying to update Joomla! from version 3.6.0 to 3.6.2 using the Update component, but all I had is the message \"Download of update package failed\". \r\n\r\nSo, I made a brief research and discovered where it fails:\r\njoomla-cms/administrator/components/com_joomlaupdate/models/default.php\r\n317 line:\r\n`\r\nif (!$result || ($result->code != 200 && $result->code != 310))\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n`\r\nso, we have to get 200 or 310 to continue downloading\r\n\r\nin my case $result->code == 302 \r\n\r\n$result->code is the server response code \r\nand https://developer.mozilla.org/en-US/docs/Web/HTTP/Status says there is no such response code as 310.\r\n\r\nIs it a bug or do I do something wrong?\r\nThank you.\r\n\r\n(according to logs joomla was trying to download update package from https://github.com/joomla/joomla-cms/releases/download/3.6.2/Joomla_3.6.2-Stable-Update_Package.zip)\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/242805274","html_url":"https://github.com/joomla/joomla-cms/issues/11806#issuecomment-242805274","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/11806","id":242805274,"user":{"login":"zero-24","id":2596554,"avatar_url":"https://avatars.githubusercontent.com/u/2596554?v=3","gravatar_id":"","url":"https://api.github.com/users/zero-24","html_url":"https://github.com/zero-24","followers_url":"https://api.github.com/users/zero-24/followers","following_url":"https://api.github.com/users/zero-24/following{/other_user}","gists_url":"https://api.github.com/users/zero-24/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-24/subscriptions","organizations_url":"https://api.github.com/users/zero-24/orgs","repos_url":"https://api.github.com/users/zero-24/repos","events_url":"https://api.github.com/users/zero-24/events{/privacy}","received_events_url":"https://api.github.com/users/zero-24/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T17:54:23Z","updated_at":"2016-08-26T17:54:23Z","body":"Sorry @mbabker i don't want to blame you for that\r\n\r\nBut waht about the idea to allow more response codes than just 200? like 301, 302 and other (not checked them all yet)"}}
{"actor":{"display_login":"zero-24"}}