{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/15952","labels_url":"https://api.github.com/repos/owncloud/core/issues/15952/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/15952/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/15952/events","html_url":"https://github.com/owncloud/core/issues/15952","id":72009654,"number":15952,"title":"\\OC\\Share\\Share::getUsersSharingFile does not work properly with renamed shares and groups","user":{"login":"LukasReschke","id":878997,"avatar_url":"https://avatars.githubusercontent.com/u/878997?v=3","gravatar_id":"","url":"https://api.github.com/users/LukasReschke","html_url":"https://github.com/LukasReschke","followers_url":"https://api.github.com/users/LukasReschke/followers","following_url":"https://api.github.com/users/LukasReschke/following{/other_user}","gists_url":"https://api.github.com/users/LukasReschke/gists{/gist_id}","starred_url":"https://api.github.com/users/LukasReschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LukasReschke/subscriptions","organizations_url":"https://api.github.com/users/LukasReschke/orgs","repos_url":"https://api.github.com/users/LukasReschke/repos","events_url":"https://api.github.com/users/LukasReschke/events{/privacy}","received_events_url":"https://api.github.com/users/LukasReschke/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/sharing","name":"sharing","color":"e102d8"}],"state":"closed","locked":false,"assignee":{"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},"milestone":null,"comments":22,"created_at":"2015-04-29T22:42:28Z","updated_at":"2015-08-03T15:41:11Z","closed_at":"2015-08-03T15:41:11Z","body":"`\\OC\\Share\\Share::getUsersSharingFile` is not properly working in combination with renamed shares and groups on stable8 (didn't test master yet – suspect it to be broken as well), this can be reproduced by:\r\n\r\n1. Setup instance on stable8 as user \"admin\"\r\n2. Create a user \"test\"\r\n3. Add user \"test\" to group \"users\"\r\n4. Create a folder \"shared\" as user \"admin\" and share with \"users\"\r\n5. Upload a file \"test.txt\" to shared as user admin\r\n6. Login as user \"test\"\r\n7. Rename folder \"shared\" to folder \"foo\"\r\n8. Login as user \"admin\" again\r\n\r\nCreate a file with the following content and access it as admin:\r\n```php\r\n<?php\r\nrequire_once('./lib/base.php');\r\n\r\nvar_dump(\\OC\\Share\\Share::getUsersSharingFile('shared/test.txt', 'admin', true, true));\r\n```\r\n\r\nReturn will be:\r\n```\r\narray (size=2)\r\n  'admin' => string '/shared/test.txt' (length=16)\r\n  'test' => string '/shared/test.txt' (length=16)\r\n```\r\n\r\nObviously it should resolve to `foo` instead of `shared` for the user \"test\".\r\n\r\ncc @icewind1991 "}}