{"action":"closed","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/13429","labels_url":"https://api.github.com/repos/owncloud/core/issues/13429/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/13429/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/13429/events","html_url":"https://github.com/owncloud/core/issues/13429","id":54633676,"number":13429,"title":"[7.0.4] Renaming a folder shared from multiple groups in v<=7.0.2 create multiple shares to the user in v>= 7.0.4","user":{"login":"GreenArchon","id":5545257,"avatar_url":"https://avatars.githubusercontent.com/u/5545257?v=3","gravatar_id":"","url":"https://api.github.com/users/GreenArchon","html_url":"https://github.com/GreenArchon","followers_url":"https://api.github.com/users/GreenArchon/followers","following_url":"https://api.github.com/users/GreenArchon/following{/other_user}","gists_url":"https://api.github.com/users/GreenArchon/gists{/gist_id}","starred_url":"https://api.github.com/users/GreenArchon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreenArchon/subscriptions","organizations_url":"https://api.github.com/users/GreenArchon/orgs","repos_url":"https://api.github.com/users/GreenArchon/repos","events_url":"https://api.github.com/users/GreenArchon/events{/privacy}","received_events_url":"https://api.github.com/users/GreenArchon/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":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/35","html_url":"https://github.com/owncloud/core/milestones/7.0.6-current-maintenance","labels_url":"https://api.github.com/repos/owncloud/core/milestones/35/labels","id":993531,"number":35,"title":"7.0.6-current-maintenance","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":14,"closed_issues":26,"state":"open","created_at":"2015-02-24T15:35:47Z","updated_at":"2015-05-06T08:01:40Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-01-16T22:36:18Z","updated_at":"2015-05-06T08:01:40Z","closed_at":"2015-05-06T08:01:40Z","body":"# Steps to reproduce:\r\n\r\n1. Install owncloud 7.0.2 (or older)\r\n2. Create users u1, u2 and groups g1, g2\r\n3. Add user u2 to groups g1 and g2\r\n4. From user u1, create a folder test1 and share it with groups g1 and g2 (possibly with different permissions)\r\n5. Upgrade to 7.0.4 (or 7.0.3 or probably master)\r\n6. From user u2, rename the folder test1 (ie to test2)\r\n\r\n# Expected behaviour:\r\n\r\nEither:\r\n- Nothing happens (except the folder being renamed)\r\n- A share is created for u2 with the cumulative permissions of g1 and g2 (from #10107 I think)\r\n\r\n# Actual behaviour:\r\n\r\n- 2 shares are created for the user, having (in oc_share) the parent, permissions, etc. columns pointing to g1 and g2's share, respectively.\r\n\r\nNote: This is a follow-up from #12475 ."}}