{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/23822","labels_url":"https://api.github.com/repos/saltstack/salt/issues/23822/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/23822/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/23822/events","html_url":"https://github.com/saltstack/salt/issues/23822","id":77228807,"number":23822,"title":"Zip file extracted permissions are incorrect","user":{"login":"sidcarter","id":72859,"avatar_url":"https://avatars.githubusercontent.com/u/72859?v=3","gravatar_id":"","url":"https://api.github.com/users/sidcarter","html_url":"https://github.com/sidcarter","followers_url":"https://api.github.com/users/sidcarter/followers","following_url":"https://api.github.com/users/sidcarter/following{/other_user}","gists_url":"https://api.github.com/users/sidcarter/gists{/gist_id}","starred_url":"https://api.github.com/users/sidcarter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sidcarter/subscriptions","organizations_url":"https://api.github.com/users/sidcarter/orgs","repos_url":"https://api.github.com/users/sidcarter/repos","events_url":"https://api.github.com/users/sidcarter/events{/privacy}","received_events_url":"https://api.github.com/users/sidcarter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P1","name":"P1","color":"2181ee"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform%20Mgmt","name":"Platform Mgmt","color":"006b75"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Regression","name":"Regression","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/13","html_url":"https://github.com/saltstack/salt/milestones/Approved","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/13/labels","id":9265,"number":13,"title":"Approved","description":"All issues that are ready to be worked on, both bugs and features.","creator":{"login":"thatch45","id":507599,"avatar_url":"https://avatars.githubusercontent.com/u/507599?v=3","gravatar_id":"","url":"https://api.github.com/users/thatch45","html_url":"https://github.com/thatch45","followers_url":"https://api.github.com/users/thatch45/followers","following_url":"https://api.github.com/users/thatch45/following{/other_user}","gists_url":"https://api.github.com/users/thatch45/gists{/gist_id}","starred_url":"https://api.github.com/users/thatch45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thatch45/subscriptions","organizations_url":"https://api.github.com/users/thatch45/orgs","repos_url":"https://api.github.com/users/thatch45/repos","events_url":"https://api.github.com/users/thatch45/events{/privacy}","received_events_url":"https://api.github.com/users/thatch45/received_events","type":"User","site_admin":false},"open_issues":2271,"closed_issues":2033,"state":"open","created_at":"2011-05-14T04:00:56Z","updated_at":"2015-05-20T23:00:08Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-05-17T06:13:59Z","updated_at":"2015-05-21T04:29:05Z","closed_at":null,"body":"I'm using this state to install packer:\r\n\r\n```\r\n{% set version = '0.7.5' %}\r\n\r\npacker:\r\n  archive:\r\n    - extracted\r\n    - name: /usr/local/bin/\r\n    - source: https://dl.bintray.com/mitchellh/packer/packer_{{version}}_linux_amd64.zip\r\n    - source_hash: sha256=8fab291c8cc988bd0004195677924ab6846aee5800b6c8696d71d33456701ef6\r\n    - archive_format: zip\r\n    - if_missing: /usr/local/bin/packer\r\n```\r\n\r\nThis state command itself worked fine without any issues, but then I noticed that the permissions were all wrong. \r\n```\r\n# salt --version\r\nsalt 2015.5.0 (Lithium)\r\n```\r\n```\r\n# ls -l\r\ntotal 318964\r\n-rw-r--r-- 1 root root 10087048 May 17 05:47 packer\r\n-rw-r--r-- 1 root root 10293560 May 17 05:47 packer-builder-amazon-chroot\r\n-rw-r--r-- 1 root root 11110464 May 17 05:47 packer-builder-amazon-ebs\r\n-rw-r--r-- 1 root root 11146448 May 17 05:47 packer-builder-amazon-instance\r\n-rw-r--r-- 1 root root 10437344 May 17 05:47 packer-builder-digitalocean\r\n-rw-r--r-- 1 root root  9394712 May 17 05:47 packer-builder-docker\r\n```\r\n\r\nIf I extracted the zip directly, I get this:\r\n\r\n```\r\n~/test# ls -l\r\ntotal 318964\r\n-rwxr-xr-x 1 root root 10087048 Dec 10 03:17 packer\r\n-rwxr-xr-x 1 root root 10293560 Dec 10 03:17 packer-builder-amazon-chroot\r\n-rwxr-xr-x 1 root root 11110464 Dec 10 03:17 packer-builder-amazon-ebs\r\n-rwxr-xr-x 1 root root 11146448 Dec 10 03:17 packer-builder-amazon-instance\r\n-rwxr-xr-x 1 root root 10437344 Dec 10 03:17 packer-builder-digitalocean\r\n-rwxr-xr-x 1 root root  9394712 Dec 10 03:17 packer-builder-docker\r\n```\r\nI don't know of any options I can pass to fix this. Is this a bug?"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/104130927","html_url":"https://github.com/saltstack/salt/issues/23822#issuecomment-104130927","issue_url":"https://api.github.com/repos/saltstack/salt/issues/23822","id":104130927,"user":{"login":"jfindlay","id":702905,"avatar_url":"https://avatars.githubusercontent.com/u/702905?v=3","gravatar_id":"","url":"https://api.github.com/users/jfindlay","html_url":"https://github.com/jfindlay","followers_url":"https://api.github.com/users/jfindlay/followers","following_url":"https://api.github.com/users/jfindlay/following{/other_user}","gists_url":"https://api.github.com/users/jfindlay/gists{/gist_id}","starred_url":"https://api.github.com/users/jfindlay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfindlay/subscriptions","organizations_url":"https://api.github.com/users/jfindlay/orgs","repos_url":"https://api.github.com/users/jfindlay/repos","events_url":"https://api.github.com/users/jfindlay/events{/privacy}","received_events_url":"https://api.github.com/users/jfindlay/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T04:29:05Z","updated_at":"2015-05-21T04:29:05Z","body":"@sebest, do you have a reference to the upstream bug?  Does one need to be filed? :-)"}}