-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share: cannot find users when sharing mode is groups only #5016
Comments
I can confirm that this bug is still present in 5.0.12 and this solution fixes the problem. Thank you nosignleft! |
It is already fixed in the stable5 branch and will be released with oc5.0.13. See merged pull request #5211 |
I have two users that are affected by a bug (?) on a system (oc 7.0.2, nginx, mysql) with about 30 users and three groups. When sharing data or tasks, these two users can't be found by others. Strangely they can see other users of their groups. That's what I tried so far: any other ideas? EDIT: |
This is probably the same issue I reported. The cause is simple: the searched list is trimmed before doing the research. So you won't be able to anyone outside of this list, even if someone "excluded" is part of your group. |
Yup, that explains it. I saw that 15 entry limit in the code but thought of a pagination feature and didn't look closer... Do you have a workaround for that issue? |
If you don't have thousands of users, you can check my report and temp fix here: #8899 |
First thing that comes to my mind: Why don't you use Groups.getUsersInGroup($groupId, $limit, $offset)? groups = Group.getUserGroups($uid)
foreach ($groups as $group){
$users[] = Group.getUsersInGroup($group);
}
return $users; If you don't have thousands of groups this might work...? I'm neither a php nor owncloud pro... |
For this issue or for the #8899 ? Anyway, don't forget that the code need to be flexible enough to work with or without the group-only-sharing option and with any group/user backends. |
Expected behavior
When trying to share a file or folder in "groups_only" mode, we should be able to find users from the user's own groups or its groups themselves.
Actual behavior
Since 5.0.11, it only allow to search groups or users answer on the same search pattern.
It was working in 5.0.10
Steps to reproduce
Fix
It seems that the code in core/ajax/share.php try to search for users in the groups... it found after applying the search pattern.
The text was updated successfully, but these errors were encountered: