{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/15981","labels_url":"https://api.github.com/repos/owncloud/core/issues/15981/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/15981/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/15981/events","html_url":"https://github.com/owncloud/core/issues/15981","id":72190077,"number":15981,"title":"[enc2] Newly created user has no valid private key","user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/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"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/regression","name":"regression","color":"e11d21"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev2-high","name":"sev2-high","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"icewind1991","id":1283854,"avatar_url":"https://avatars.githubusercontent.com/u/1283854?v=3","gravatar_id":"","url":"https://api.github.com/users/icewind1991","html_url":"https://github.com/icewind1991","followers_url":"https://api.github.com/users/icewind1991/followers","following_url":"https://api.github.com/users/icewind1991/following{/other_user}","gists_url":"https://api.github.com/users/icewind1991/gists{/gist_id}","starred_url":"https://api.github.com/users/icewind1991/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/icewind1991/subscriptions","organizations_url":"https://api.github.com/users/icewind1991/orgs","repos_url":"https://api.github.com/users/icewind1991/repos","events_url":"https://api.github.com/users/icewind1991/events{/privacy}","received_events_url":"https://api.github.com/users/icewind1991/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/31","html_url":"https://github.com/owncloud/core/milestones/8.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/31/labels","id":912160,"number":31,"title":"8.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":110,"closed_issues":1196,"state":"open","created_at":"2014-12-22T12:04:01Z","updated_at":"2015-05-20T11:44:52Z","due_on":"2015-04-02T22:00:00Z","closed_at":null},"comments":7,"created_at":"2015-04-30T15:12:14Z","updated_at":"2015-05-20T11:52:00Z","closed_at":null,"body":"### Steps\r\n1. Enable encryption in the admin page\r\n2. Enable the default encryption module\r\n3. Log out then log in again as admin\r\n4. Create a new user \"user1\"\r\n5. Log in as \"user1\"\r\n\r\n### Expected result\r\nUser1 can start using their account\r\n\r\n### Actual result\r\nWarning \"Encryption App enabled but your keys are not initialized, please log-out and log-in again\"\r\nThe \"welcome.txt\" file from the skeleton as 0 bytes.\r\n\r\n### Logs\r\n(this was when creating another user \"user2\")\r\n```\r\n{\"reqId\":\"6trBRL4Y9aIDpXbGNe4T\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"files_skeleton\",\"message\":\"copying skeleton for user2 from \\/srv\\/www\\/htdocs\\/owncloud\\/core\\/skeleton to \\/user2\\/files\\/\",\"level\":0,\"time\":\"2015-04-30T15:11:32+00:00\",\"method\":\"POST\",\"url\":\"\\/owncloud\\/\"}\r\n{\"reqId\":\"6trBRL4Y9aIDpXbGNe4T\",\"remoteAddr\":\"127.0.0.1\",\"app\":\"hook\",\"message\":\"error while running hook (OCA\\\\Encryption\\\\Hooks\\\\UserHooks::login): Private Key missing for user: please try to log-out and log-in again\",\"level\":3,\"time\":\"2015-04-30T15:11:33+00:00\",\"method\":\"POST\",\"url\":\"\\/owncloud\\/\"}\r\n```\r\n\r\n### Versions\r\nownCloud 8.1 git master (41d7870d7b8aa1b635fd1d2d589322160bb46d31)\r\n\r\n@schiesbn @th3fallen @DeepDiver1975 "},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/103856587","html_url":"https://github.com/owncloud/core/issues/15981#issuecomment-103856587","issue_url":"https://api.github.com/repos/owncloud/core/issues/15981","id":103856587,"user":{"login":"PVince81","id":277525,"avatar_url":"https://avatars.githubusercontent.com/u/277525?v=3","gravatar_id":"","url":"https://api.github.com/users/PVince81","html_url":"https://github.com/PVince81","followers_url":"https://api.github.com/users/PVince81/followers","following_url":"https://api.github.com/users/PVince81/following{/other_user}","gists_url":"https://api.github.com/users/PVince81/gists{/gist_id}","starred_url":"https://api.github.com/users/PVince81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PVince81/subscriptions","organizations_url":"https://api.github.com/users/PVince81/orgs","repos_url":"https://api.github.com/users/PVince81/repos","events_url":"https://api.github.com/users/PVince81/events{/privacy}","received_events_url":"https://api.github.com/users/PVince81/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T11:52:00Z","updated_at":"2015-05-20T11:52:00Z","body":"This PR fixes it: https://github.com/owncloud/core/pull/16075"}}