{"action":"closed","issue":{"url":"https://api.github.com/repos/EUDAT-B2SAFE/B2HANDLE/issues/84","repository_url":"https://api.github.com/repos/EUDAT-B2SAFE/B2HANDLE","labels_url":"https://api.github.com/repos/EUDAT-B2SAFE/B2HANDLE/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/EUDAT-B2SAFE/B2HANDLE/issues/84/comments","events_url":"https://api.github.com/repos/EUDAT-B2SAFE/B2HANDLE/issues/84/events","html_url":"https://github.com/EUDAT-B2SAFE/B2HANDLE/issues/84","id":155975637,"number":84,"title":"When http instead of https is used, handle creation is not carried out but no error is thrown","user":{"login":"merretbuurman","id":13016367,"avatar_url":"https://avatars.githubusercontent.com/u/13016367?v=3","gravatar_id":"","url":"https://api.github.com/users/merretbuurman","html_url":"https://github.com/merretbuurman","followers_url":"https://api.github.com/users/merretbuurman/followers","following_url":"https://api.github.com/users/merretbuurman/following{/other_user}","gists_url":"https://api.github.com/users/merretbuurman/gists{/gist_id}","starred_url":"https://api.github.com/users/merretbuurman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/merretbuurman/subscriptions","organizations_url":"https://api.github.com/users/merretbuurman/orgs","repos_url":"https://api.github.com/users/merretbuurman/repos","events_url":"https://api.github.com/users/merretbuurman/events{/privacy}","received_events_url":"https://api.github.com/users/merretbuurman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EUDAT-B2SAFE/B2HANDLE/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"TobiasWeigel","id":1713724,"avatar_url":"https://avatars.githubusercontent.com/u/1713724?v=3","gravatar_id":"","url":"https://api.github.com/users/TobiasWeigel","html_url":"https://github.com/TobiasWeigel","followers_url":"https://api.github.com/users/TobiasWeigel/followers","following_url":"https://api.github.com/users/TobiasWeigel/following{/other_user}","gists_url":"https://api.github.com/users/TobiasWeigel/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiasWeigel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiasWeigel/subscriptions","organizations_url":"https://api.github.com/users/TobiasWeigel/orgs","repos_url":"https://api.github.com/users/TobiasWeigel/repos","events_url":"https://api.github.com/users/TobiasWeigel/events{/privacy}","received_events_url":"https://api.github.com/users/TobiasWeigel/received_events","type":"User","site_admin":false},"assignees":[{"login":"TobiasWeigel","id":1713724,"avatar_url":"https://avatars.githubusercontent.com/u/1713724?v=3","gravatar_id":"","url":"https://api.github.com/users/TobiasWeigel","html_url":"https://github.com/TobiasWeigel","followers_url":"https://api.github.com/users/TobiasWeigel/followers","following_url":"https://api.github.com/users/TobiasWeigel/following{/other_user}","gists_url":"https://api.github.com/users/TobiasWeigel/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiasWeigel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiasWeigel/subscriptions","organizations_url":"https://api.github.com/users/TobiasWeigel/orgs","repos_url":"https://api.github.com/users/TobiasWeigel/repos","events_url":"https://api.github.com/users/TobiasWeigel/events{/privacy}","received_events_url":"https://api.github.com/users/TobiasWeigel/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-05-20T14:27:49Z","updated_at":"2016-07-21T15:11:33Z","closed_at":"2016-07-21T15:11:33Z","body":"Behaviour:\r\nWhen http instead of https is used, handle creation is not carried out but NO ERROR IS THROWN (when trying to overwrite existing handles). In case the handles did not exist, a 404 Error is thrown, instead of creating the handle.\r\n\r\nExplanation:\r\nWhen a HTTP request is redirected to HTTPS using a 302 code, the python.requests library changed the request verb from GET to PUT, to imitate common browser behaviour (see [0,1,2]).\r\nIf we try to create a handle that already exist (overwrite), this GET request returns a 200, which the library interprets as creation success. Thus, no error is thrown.\r\nIf the handle does not exist yet, a 404 is thrown on the GET request - which is confusing for a user, but at least it's a noticeable error.\r\n\r\n[0] https://github.com/request/request/issues/29\r\n[1] Code lines in requests.sessions:\r\n        # Do what the browsers do, despite standards...\r\n        # First, turn 302s into GETs.\r\n        if response.status_code == codes.found and method != 'HEAD':\r\n            method = 'GET'\r\n[2] German Wikipedia says: \"Die Browser folgen meist mit einem GET, auch wenn der ursprüngliche Request ein POST war\" (browsers usually follow up with a GET even if the original request was a POST.)(https://de.wikipedia.org/wiki/HTTP-Statuscode)."}}
{"actor":{"display_login":"merretbuurman"}}