{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2336","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2336/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2336/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2336/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2336","id":157348085,"number":2336,"title":"unarchive: file not found for zip archive with space files","user":{"login":"TheBigfoot","id":746624,"avatar_url":"https://avatars.githubusercontent.com/u/746624?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBigfoot","html_url":"https://github.com/TheBigfoot","followers_url":"https://api.github.com/users/TheBigfoot/followers","following_url":"https://api.github.com/users/TheBigfoot/following{/other_user}","gists_url":"https://api.github.com/users/TheBigfoot/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBigfoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBigfoot/subscriptions","organizations_url":"https://api.github.com/users/TheBigfoot/orgs","repos_url":"https://api.github.com/users/TheBigfoot/repos","events_url":"https://api.github.com/users/TheBigfoot/events{/privacy}","received_events_url":"https://api.github.com/users/TheBigfoot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-28T17:11:02Z","updated_at":"2016-06-06T06:37:39Z","closed_at":null,"body":"##### ISSUE TYPE\r\n - Bug Report\r\n\r\n##### COMPONENT NAME\r\nunarchive module\r\n\r\n##### ANSIBLE VERSION\r\n```\r\n$ ansible --version\r\nansible 2.1.0.0\r\n  config file = /home/droeder/tech/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### CONFIGURATION\r\n```\r\n[defaults]\r\n# Some var for commenting in templates\r\nansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} \r\nretry_files_enabled = False\r\ninventory= hosts\r\n\r\n```\r\n\r\n##### OS / ENVIRONMENT\r\n```\r\n$ cat /etc/debian_version \r\nstretch/sid\r\n$ python --version\r\nPython 2.7.11+\r\n```\r\n\r\n##### SUMMARY\r\nunarchive is failing to extract a zip archive, when a file with spaces is in archive.\r\n\r\n```\r\nTASK [archive : Break unarchive module] ****************************************\r\nfatal: [munin.naetverk.net]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"path /tmp/archive/file with spaces.txt does not exist\", \"path\": \"/tmp/archive/file with spaces.txt\", \"state\": \"absent\"}\r\n```\r\n\r\nThis is not reproducable with tgz. They work fine.\r\n\r\n##### STEPS TO REPRODUCE\r\n```\r\n$ mkdir archive\r\n$ echo \"Content\" > archive/filename\\ with\\ spaces.txt\r\n$ zip archive.zip archive archive/filename\\ with\\ spaces.txt\r\nUnarchive with ansible like below\r\n```\r\n\r\n```\r\n- name: Break unarchive module\r\n  unarchive: src=/root/archive.zip\r\n             copy=no\r\n             dest=/tmp/\r\n```\r\n\r\n\r\n##### EXPECTED RESULTS\r\nA successfull extracted archive and no error\r\n\r\n##### ACTUAL RESULTS\r\n\r\nAnsible is failing, but the directory is extracted correctly on the host.\r\n\r\n```\r\nfatal: [desthost]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_args\": {\"backup\": null, \"content\": null, \"copy\": false, \"creates\": null, \"delimiter\": null, \"dest\": \"/tmp/\", \"directory_mode\": null, \"exclude\": [], \"extra_opts\": [], \"follow\": false, \"force\": null, \"group\": null, \"keep_newer\": false, \"list_files\": false, \"mode\": null, \"original_basename\": \"archive.zip\", \"owner\": null, \"regexp\": null, \"remote_src\": null, \"selevel\": null, \"serole\": null, \"setype\": null, \"seuser\": null, \"src\": \"/root/archive.zip\"}}, \"msg\": \"path /tmp/archive/filename with spaces.txt does not exist\", \"path\": \"/tmp/archive/filename with spaces.txt\", \"state\": \"absent\"}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/223879181","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2336#issuecomment-223879181","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2336","id":223879181,"user":{"login":"TheBigfoot","id":746624,"avatar_url":"https://avatars.githubusercontent.com/u/746624?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBigfoot","html_url":"https://github.com/TheBigfoot","followers_url":"https://api.github.com/users/TheBigfoot/followers","following_url":"https://api.github.com/users/TheBigfoot/following{/other_user}","gists_url":"https://api.github.com/users/TheBigfoot/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBigfoot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBigfoot/subscriptions","organizations_url":"https://api.github.com/users/TheBigfoot/orgs","repos_url":"https://api.github.com/users/TheBigfoot/repos","events_url":"https://api.github.com/users/TheBigfoot/events{/privacy}","received_events_url":"https://api.github.com/users/TheBigfoot/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T06:37:39Z","updated_at":"2016-06-06T06:37:39Z","body":"Target OS is CentOS \r\n`CentOS Linux release 7.2.1511 (Core)`\r\nLocal Python version is 2.7.5"}}
{"actor":{"display_login":"TheBigfoot"}}