{"action":"closed","issue":{"url":"https://api.github.com/repos/TryGhost/Ghost/issues/7267","repository_url":"https://api.github.com/repos/TryGhost/Ghost","labels_url":"https://api.github.com/repos/TryGhost/Ghost/issues/7267/labels{/name}","comments_url":"https://api.github.com/repos/TryGhost/Ghost/issues/7267/comments","events_url":"https://api.github.com/repos/TryGhost/Ghost/issues/7267/events","html_url":"https://github.com/TryGhost/Ghost/issues/7267","id":173111314,"number":7267,"title":"Theme uploader/downloader assumes ownership of `content/themes`","user":{"login":"ErisDS","id":101513,"avatar_url":"https://avatars.githubusercontent.com/u/101513?v=3","gravatar_id":"","url":"https://api.github.com/users/ErisDS","html_url":"https://github.com/ErisDS","followers_url":"https://api.github.com/users/ErisDS/followers","following_url":"https://api.github.com/users/ErisDS/following{/other_user}","gists_url":"https://api.github.com/users/ErisDS/gists{/gist_id}","starred_url":"https://api.github.com/users/ErisDS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErisDS/subscriptions","organizations_url":"https://api.github.com/users/ErisDS/orgs","repos_url":"https://api.github.com/users/ErisDS/repos","events_url":"https://api.github.com/users/ErisDS/events{/privacy}","received_events_url":"https://api.github.com/users/ErisDS/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-25T04:23:56Z","updated_at":"2016-08-25T07:22:22Z","closed_at":"2016-08-25T07:22:22Z","body":"Whilst playing around trying to understand the download bug #7266 I lost a zip file that I didn't expect to lose.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Create a new theme for testing purposes in content/themes/themename\r\n2. Compress that theme, so you can test uploading it, it should live at content/themes/themename.zip\r\n3. Uploading the theme\r\n4. See the overwrite warning - cool, Ghost gets permission to overwrite my folder\r\n5. After the theme is uploaded, the zip file you uploaded from is gone without permission\r\n\r\nI understand why this is happening & that I'm doing a weird thing by uploading a file from the same directory it's about to be uploaded to, however the removal of the file is unexpected. I think zip files that are uploaded need to be stored somewhere temporary, and then deleted from the temporary location. "}}
{"actor":{"display_login":"kirrg001"}}