{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/18423","labels_url":"https://api.github.com/repos/owncloud/core/issues/18423/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/18423/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/18423/events","html_url":"https://github.com/owncloud/core/pull/18423","id":101874720,"number":18423,"title":"occ command line tool to encrypt all files","user":{"login":"schiesbn","id":1589737,"avatar_url":"https://avatars.githubusercontent.com/u/1589737?v=3","gravatar_id":"","url":"https://api.github.com/users/schiesbn","html_url":"https://github.com/schiesbn","followers_url":"https://api.github.com/users/schiesbn/followers","following_url":"https://api.github.com/users/schiesbn/following{/other_user}","gists_url":"https://api.github.com/users/schiesbn/gists{/gist_id}","starred_url":"https://api.github.com/users/schiesbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schiesbn/subscriptions","organizations_url":"https://api.github.com/users/schiesbn/orgs","repos_url":"https://api.github.com/users/schiesbn/repos","events_url":"https://api.github.com/users/schiesbn/events{/privacy}","received_events_url":"https://api.github.com/users/schiesbn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/3%20-%20To%20Review","name":"3 - To Review","color":"ededed"},{"url":"https://api.github.com/repos/owncloud/core/labels/app:encryption","name":"app:encryption","color":"02d7e1"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/37","html_url":"https://github.com/owncloud/core/milestones/8.2-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/37/labels","id":993629,"number":37,"title":"8.2-current","description":"","creator":{"login":"craigpg","id":160667,"avatar_url":"https://avatars.githubusercontent.com/u/160667?v=3","gravatar_id":"","url":"https://api.github.com/users/craigpg","html_url":"https://github.com/craigpg","followers_url":"https://api.github.com/users/craigpg/followers","following_url":"https://api.github.com/users/craigpg/following{/other_user}","gists_url":"https://api.github.com/users/craigpg/gists{/gist_id}","starred_url":"https://api.github.com/users/craigpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/craigpg/subscriptions","organizations_url":"https://api.github.com/users/craigpg/orgs","repos_url":"https://api.github.com/users/craigpg/repos","events_url":"https://api.github.com/users/craigpg/events{/privacy}","received_events_url":"https://api.github.com/users/craigpg/received_events","type":"User","site_admin":false},"open_issues":639,"closed_issues":541,"state":"open","created_at":"2015-02-24T16:19:37Z","updated_at":"2015-08-28T19:05:02Z","due_on":"2015-10-20T04:00:00Z","closed_at":null},"comments":60,"created_at":"2015-08-19T11:57:32Z","updated_at":"2015-08-28T20:47:07Z","closed_at":"2015-08-28T18:44:55Z","pull_request":{"url":"https://api.github.com/repos/owncloud/core/pulls/18423","html_url":"https://github.com/owncloud/core/pull/18423","diff_url":"https://github.com/owncloud/core/pull/18423.diff","patch_url":"https://github.com/owncloud/core/pull/18423.patch"},"body":"occ command line tool to encrypt all files, just call without any parameters\r\n\r\n````\r\n./occ encryption:encrypt_all\r\n````\r\n\r\n- [x] Need to add unit tests. But I already tested it to a large extend manually. So feel free to have a look, test and start reviewing it while I will write the remaining unit tests\r\n\r\n\r\nSteps to test:\r\n- setup ownCloud\r\n- create a nice setup (multiple users, shared files/folders, external storages,... make it as complex as you wish)\r\n- enable default encryption module and server side encryption in the admin settings\r\n- if you have external storages now you can decide in the settings which one should be encrypted and which not\r\n- logout\r\n- run the occ command"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/135884283","html_url":"https://github.com/owncloud/core/pull/18423#issuecomment-135884283","issue_url":"https://api.github.com/repos/owncloud/core/issues/18423","id":135884283,"user":{"login":"owncloud-bot","id":2709266,"avatar_url":"https://avatars.githubusercontent.com/u/2709266?v=3","gravatar_id":"","url":"https://api.github.com/users/owncloud-bot","html_url":"https://github.com/owncloud-bot","followers_url":"https://api.github.com/users/owncloud-bot/followers","following_url":"https://api.github.com/users/owncloud-bot/following{/other_user}","gists_url":"https://api.github.com/users/owncloud-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/owncloud-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/owncloud-bot/subscriptions","organizations_url":"https://api.github.com/users/owncloud-bot/orgs","repos_url":"https://api.github.com/users/owncloud-bot/repos","events_url":"https://api.github.com/users/owncloud-bot/events{/privacy}","received_events_url":"https://api.github.com/users/owncloud-bot/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T20:47:07Z","updated_at":"2015-08-28T20:47:07Z","body":":rocket: Test PASSed.:rocket:\n![chuck](https://cloud.githubusercontent.com/assets/1005065/6865211/d99978f2-d46b-11e4-9c1d-66f21a737511.jpg)\n"}}