Join GitHub today
Transfer ownership path already shared #26523
Resulting share: "user2" shares with "group1" and "user3".
Observed on OC 9.0.5, 9.0.6RC2, 9.1.1, 9.1.2RC2, 9.2 pre-alpha (master)
Seems it will need more fine-grained checks.
also it seems that the share in question completely disappears as the original file/folder from "user1" was already deleted but the share wasn't moved properly
This was referenced
Nov 2, 2016
I debugged this and the reason the error kicks in here https://github.com/owncloud/core/blob/v9.1.2RC2/lib/private/Share20/Manager.php#L382 is because we're iterating over the shares and we haven't moved all the shares to the new owner.
So what happens is that the validation code finds that the owner is different which makes it an invalid share. But if we'd first migrate the other share and then this one it might work.
Here are the two shares from the debugger: