{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/13376","labels_url":"https://api.github.com/repos/owncloud/core/issues/13376/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/13376/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/13376/events","html_url":"https://github.com/owncloud/core/issues/13376","id":54436104,"number":13376,"title":"new users don't have permission to open files in swift folder","user":{"login":"Redstoone","id":5569028,"avatar_url":"https://avatars.githubusercontent.com/u/5569028?v=3","gravatar_id":"","url":"https://api.github.com/users/Redstoone","html_url":"https://github.com/Redstoone","followers_url":"https://api.github.com/users/Redstoone/followers","following_url":"https://api.github.com/users/Redstoone/following{/other_user}","gists_url":"https://api.github.com/users/Redstoone/gists{/gist_id}","starred_url":"https://api.github.com/users/Redstoone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Redstoone/subscriptions","organizations_url":"https://api.github.com/users/Redstoone/orgs","repos_url":"https://api.github.com/users/Redstoone/repos","events_url":"https://api.github.com/users/Redstoone/events{/privacy}","received_events_url":"https://api.github.com/users/Redstoone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/triage","name":"triage","color":"00FFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-15T10:56:21Z","updated_at":"2015-01-16T09:37:14Z","closed_at":null,"body":"owncloud version: 6.0.5\r\nos: ubuntu 12.04\r\nphp version: 5.3\r\n\r\nI setup external storage on swift. All users can access the \"swift\" folder.\r\nThe issue is, new user cannot read or write files created before their registry. If files were edited later, they could be read then.\r\n\r\nThe reproduce steps are:\r\n1. put some photos in the \"swift\" folder\r\n![1](https://cloud.githubusercontent.com/assets/5569028/5756132/5be41298-9ce7-11e4-8282-5ab0351483cc.png)\r\n\r\n2. create an new user \"tony\", and login\r\n![2](https://cloud.githubusercontent.com/assets/5569028/5756134/62d03b54-9ce7-11e4-8b3d-063adbcfd16c.PNG)\r\n\r\n3. go to \"swift\" folder. All files are unreadable. And chrome console complain errors\r\n![3](https://cloud.githubusercontent.com/assets/5569028/5756142/692c18d8-9ce7-11e4-810b-3f03918270cc.PNG)\r\n\r\nerror code:\r\nGET http://172.16.129.71/apps/files_encryption/files/error.php?p=0&errorCode=3 403 (Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.) \r\n\r\n4. switch to admin user, and rename one photo (Koala.jpg -> dog.jpg)\r\n![4](https://cloud.githubusercontent.com/assets/5569028/5756143/6e0cfff2-9ce7-11e4-9877-efeada2b9d86.PNG)\r\n\r\n5. then user \"tony\" can read it\r\n![5](https://cloud.githubusercontent.com/assets/5569028/5756144/736dd49e-9ce7-11e4-9ae9-206f0fa68428.PNG)\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/70229234","html_url":"https://github.com/owncloud/core/issues/13376#issuecomment-70229234","issue_url":"https://api.github.com/repos/owncloud/core/issues/13376","id":70229234,"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-01-16T09:37:14Z","updated_at":"2015-01-16T09:37:14Z","body":"It is not technically possible to provide share keys for the user that has been newly added to the group because at that time ownCloud doesn't have the user's password (the user's password is needed to be able to decrypt their private key to do anything key-related). As far as I remember.\r\n\r\nThis is described here: https://github.com/owncloud/core/issues/4986#issuecomment-28471340\r\n\r\nCC @schiesbn"}}