{"action":"created","issue":{"url":"https://api.github.com/repos/dotCMS/core/issues/9856","repository_url":"https://api.github.com/repos/dotCMS/core","labels_url":"https://api.github.com/repos/dotCMS/core/issues/9856/labels{/name}","comments_url":"https://api.github.com/repos/dotCMS/core/issues/9856/comments","events_url":"https://api.github.com/repos/dotCMS/core/issues/9856/events","html_url":"https://github.com/dotCMS/core/issues/9856","id":180185409,"number":9856,"title":"Delete file created when snapshop downloaded via REST","user":{"login":"dsilvam","id":1576794,"avatar_url":"https://avatars.githubusercontent.com/u/1576794?v=3","gravatar_id":"","url":"https://api.github.com/users/dsilvam","html_url":"https://github.com/dsilvam","followers_url":"https://api.github.com/users/dsilvam/followers","following_url":"https://api.github.com/users/dsilvam/following{/other_user}","gists_url":"https://api.github.com/users/dsilvam/gists{/gist_id}","starred_url":"https://api.github.com/users/dsilvam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsilvam/subscriptions","organizations_url":"https://api.github.com/users/dsilvam/orgs","repos_url":"https://api.github.com/users/dsilvam/repos","events_url":"https://api.github.com/users/dsilvam/events{/privacy}","received_events_url":"https://api.github.com/users/dsilvam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotCMS/core/labels/Release%20:%203.7.0","name":"Release : 3.7.0","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotCMS/core/milestones/44","html_url":"https://github.com/dotCMS/core/milestones/Rex%20Current","labels_url":"https://api.github.com/repos/dotCMS/core/milestones/44/labels","id":2035849,"number":44,"title":"Rex Current","description":"Starting the work for the testing infraestructure","creator":{"login":"dsilvam","id":1576794,"avatar_url":"https://avatars.githubusercontent.com/u/1576794?v=3","gravatar_id":"","url":"https://api.github.com/users/dsilvam","html_url":"https://github.com/dsilvam","followers_url":"https://api.github.com/users/dsilvam/followers","following_url":"https://api.github.com/users/dsilvam/following{/other_user}","gists_url":"https://api.github.com/users/dsilvam/gists{/gist_id}","starred_url":"https://api.github.com/users/dsilvam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsilvam/subscriptions","organizations_url":"https://api.github.com/users/dsilvam/orgs","repos_url":"https://api.github.com/users/dsilvam/repos","events_url":"https://api.github.com/users/dsilvam/events{/privacy}","received_events_url":"https://api.github.com/users/dsilvam/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":0,"state":"open","created_at":"2016-09-28T19:39:43Z","updated_at":"2016-09-30T21:41:59Z","due_on":"2016-09-30T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-09-29T23:09:08Z","updated_at":"2016-09-30T22:54:33Z","closed_at":null,"body":"We are leaving a timestamped zip of the snapshot when it is created/downloaded via REST.\r\nThis needs to be deleted since there is not a way to re-request it or a reason to persist it. See [here](https://github.com/dotCMS/core/issues/9127#issuecomment-250536250). \r\n\r\n## Expected Behavior\r\nTimestamped zip is deleted after response has been fully delivered to the client (or has failed)\r\n\r\n## Current Behavior\r\nThe file is not cleaned up and persists indefinitely \r\n\r\n## Possible Solution\r\nDelete the file after response has been fully delivered to the client (or has failed)\r\n\r\n## Known Workaround\r\nDelete manually\r\n\r\n## Steps to Reproduce \r\nRun: curl --user admin@dotcms.com:admin -XGET http://[dotcms-host]:[port]/api/v1/esindex/snapshot/index/[index_name] > snapshot.zip\r\n\r\nFile will left persisted under dotsecure/backup"},"comment":{"url":"https://api.github.com/repos/dotCMS/core/issues/comments/250870545","html_url":"https://github.com/dotCMS/core/issues/9856#issuecomment-250870545","issue_url":"https://api.github.com/repos/dotCMS/core/issues/9856","id":250870545,"user":{"login":"maurizo","id":8960865,"avatar_url":"https://avatars.githubusercontent.com/u/8960865?v=3","gravatar_id":"","url":"https://api.github.com/users/maurizo","html_url":"https://github.com/maurizo","followers_url":"https://api.github.com/users/maurizo/followers","following_url":"https://api.github.com/users/maurizo/following{/other_user}","gists_url":"https://api.github.com/users/maurizo/gists{/gist_id}","starred_url":"https://api.github.com/users/maurizo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maurizo/subscriptions","organizations_url":"https://api.github.com/users/maurizo/orgs","repos_url":"https://api.github.com/users/maurizo/repos","events_url":"https://api.github.com/users/maurizo/events{/privacy}","received_events_url":"https://api.github.com/users/maurizo/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T22:54:33Z","updated_at":"2016-09-30T22:54:33Z","body":"Fixed on #9127 by https://github.com/dotCMS/core/commit/21f8011cf27e7a833bf0edae9c419ff0de3bbc9f"}}
{"actor":{"display_login":"maurizo"}}