{"action":"created","issue":{"url":"https://api.github.com/repos/google/bazel/issues/238","labels_url":"https://api.github.com/repos/google/bazel/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/google/bazel/issues/238/comments","events_url":"https://api.github.com/repos/google/bazel/issues/238/events","html_url":"https://github.com/google/bazel/issues/238","id":86284036,"number":238,"title":"Preserve permissions when http_archive unzips","user":{"login":"kchodorow","id":17042,"avatar_url":"https://avatars.githubusercontent.com/u/17042?v=3","gravatar_id":"","url":"https://api.github.com/users/kchodorow","html_url":"https://github.com/kchodorow","followers_url":"https://api.github.com/users/kchodorow/followers","following_url":"https://api.github.com/users/kchodorow/following{/other_user}","gists_url":"https://api.github.com/users/kchodorow/gists{/gist_id}","starred_url":"https://api.github.com/users/kchodorow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchodorow/subscriptions","organizations_url":"https://api.github.com/users/kchodorow/orgs","repos_url":"https://api.github.com/users/kchodorow/repos","events_url":"https://api.github.com/users/kchodorow/events{/privacy}","received_events_url":"https://api.github.com/users/kchodorow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/bazel/labels/P3","name":"P3","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-08T18:33:31Z","updated_at":"2015-06-10T14:13:40Z","closed_at":null,"body":"If you zip up an executable and then download/extract it via [new_]http_archive, the \"executable\" ends up with 644, even if running `unzip thing.zip` results in a 755."},"comment":{"url":"https://api.github.com/repos/google/bazel/issues/comments/110768716","html_url":"https://github.com/google/bazel/issues/238#issuecomment-110768716","issue_url":"https://api.github.com/repos/google/bazel/issues/238","id":110768716,"user":{"login":"kchodorow","id":17042,"avatar_url":"https://avatars.githubusercontent.com/u/17042?v=3","gravatar_id":"","url":"https://api.github.com/users/kchodorow","html_url":"https://github.com/kchodorow","followers_url":"https://api.github.com/users/kchodorow/followers","following_url":"https://api.github.com/users/kchodorow/following{/other_user}","gists_url":"https://api.github.com/users/kchodorow/gists{/gist_id}","starred_url":"https://api.github.com/users/kchodorow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kchodorow/subscriptions","organizations_url":"https://api.github.com/users/kchodorow/orgs","repos_url":"https://api.github.com/users/kchodorow/repos","events_url":"https://api.github.com/users/kchodorow/events{/privacy}","received_events_url":"https://api.github.com/users/kchodorow/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T14:13:40Z","updated_at":"2015-06-10T14:13:40Z","body":"I thought this would be an easy fix, but unfortunately the Apache Commons compress library refuses to return the permissions.  The zip's central directory header has the permission set in the external file attributes, but `zipFileEntry.getExternalAttributes()` returns 0.  I've sent a message to user@commons.apache.org about it, waiting to see what they say."}}