{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4217","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4217/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4217/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4217/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/4217","id":166544097,"number":4217,"title":"Uri Module in 2.1 follows redirects strangely","user":{"login":"richard-hulm","id":11884765,"avatar_url":"https://avatars.githubusercontent.com/u/11884765?v=3","gravatar_id":"","url":"https://api.github.com/users/richard-hulm","html_url":"https://github.com/richard-hulm","followers_url":"https://api.github.com/users/richard-hulm/followers","following_url":"https://api.github.com/users/richard-hulm/following{/other_user}","gists_url":"https://api.github.com/users/richard-hulm/gists{/gist_id}","starred_url":"https://api.github.com/users/richard-hulm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richard-hulm/subscriptions","organizations_url":"https://api.github.com/users/richard-hulm/orgs","repos_url":"https://api.github.com/users/richard-hulm/repos","events_url":"https://api.github.com/users/richard-hulm/events{/privacy}","received_events_url":"https://api.github.com/users/richard-hulm/received_events","type":"User","site_admin":false},"labels":[{"id":437720344,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/affects_2.1","name":"affects_2.1","color":"5319e7","default":false},{"id":132571937,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":132571933,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P2","name":"P2","color":"fad8c7","default":false},{"id":414073372,"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-07-20T09:59:38Z","updated_at":"2016-11-22T09:54:26Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\n##### ISSUE TYPE\n- Bug Report\n##### COMPONENT NAME\n\nuri\n##### ANSIBLE VERSION\n\n```\nansible 2.1.0.0\n```\n##### OS / ENVIRONMENT\n\n<!---\nCentos 7 && Fedora 22\n-->\n##### SUMMARY\n\nURI module, set with follow_redirects: all\n\nIf we issue a post request, and get a 307 back\nthe subsequent redirected request seems to be a GET request instead of a POST as expected\n##### STEPS TO REPRODUCE\n\n```\n\n---\n- name: Test playbook\n  hosts: all\n  become: false\n\n  tasks:\n  - name: Test redirects\n    uri:\n      url: \"http://httpbin.org/status/307\"\n      method: \"POST\"\n      body: test\n      follow_redirects: all\n    register: stuff\n\n  - debug:\n      msg: \"{{stuff}}\"\n```\n##### EXPECTED RESULTS\n\nIn the above playbook, the \"url\" returned is httpbin.org/get which is incorrect! Should have redirected to the post URL.\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/262195842","html_url":"https://github.com/ansible/ansible-modules-core/issues/4217#issuecomment-262195842","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/4217","id":262195842,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T09:54:26Z","updated_at":"2016-11-22T09:54:26Z","body":"@romeotheriault, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}