{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/16450","labels_url":"https://api.github.com/repos/owncloud/core/issues/16450/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/16450/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/16450/events","html_url":"https://github.com/owncloud/core/issues/16450","id":78124180,"number":16450,"title":"Initial skeleton files copy overwrites existing shared files","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/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/sev3-medium","name":"sev3-medium","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/11","html_url":"https://github.com/owncloud/core/milestones/backlog","labels_url":"https://api.github.com/repos/owncloud/core/milestones/11/labels","id":697149,"number":11,"title":"backlog","description":"","creator":{"login":"MTRichards","id":1818977,"avatar_url":"https://avatars.githubusercontent.com/u/1818977?v=3","gravatar_id":"","url":"https://api.github.com/users/MTRichards","html_url":"https://github.com/MTRichards","followers_url":"https://api.github.com/users/MTRichards/followers","following_url":"https://api.github.com/users/MTRichards/following{/other_user}","gists_url":"https://api.github.com/users/MTRichards/gists{/gist_id}","starred_url":"https://api.github.com/users/MTRichards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MTRichards/subscriptions","organizations_url":"https://api.github.com/users/MTRichards/orgs","repos_url":"https://api.github.com/users/MTRichards/repos","events_url":"https://api.github.com/users/MTRichards/events{/privacy}","received_events_url":"https://api.github.com/users/MTRichards/received_events","type":"User","site_admin":false},"open_issues":591,"closed_issues":2,"state":"open","created_at":"2014-06-20T19:52:03Z","updated_at":"2015-05-19T14:59:42Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-05-19T14:59:42Z","updated_at":"2015-05-19T14:59:42Z","closed_at":null,"body":"### Steps\r\n1. Checkout ownCloud from git (or put a file \"welcome.txt\" in core/skeleton)\r\n2. Setup with admin \"admin\"\r\n3. Login as \"admin\"\r\n4. Edit the file \"welcome.txt\" and replace the contents with the string \"MODIFIED\"\r\n5. Create a user \"user1\"\r\n6. Share \"welcome.txt\" with \"user1\"\r\n7. Login as \"user1\"\r\n8. Check the contents of \"welcome.txt\"\r\n9. Login as \"admin\"\r\n10. Check the contents of \"welcome.txt\"\r\n\r\n### Expected\r\nAt step 7, I should see two files \"welcome.txt\" (the shared one) and \"welcome (2).txt\" the one from the skeleton. At step 10, the file \"welcome.txt\" from \"admin\" still contains \"MODIFIED\".\r\n\r\n### Actual result\r\nAt step 7, the file \"welcome.txt\" is the one from the skeleton.\r\nAt step 10, the file from \"welcome.txt\" contains again the text from the skeleton instead of \"MODIFIED\".\r\nWhat happened is that the skeleton logic overwrote the **contents** of the existing shared file, which then overwrote what the admin user sees.\r\n\r\n### Versions\r\nObserved in 8.1 on master (12aef311154f12050c4e33492dac1fb1c928060d)\r\n"}}