Uh oh!
There was an error while loading. Please reload this page.
dont show remote and email options if we have an exact match for local user email - #16035
Conversation
wiswedel
commented
Jun 21, 2019
Uh oh!
There was an error while loading. Please reload this page.
icewind1991
commented
Jun 22, 2019
imo, if a local user with a given email exists than it's highly unlikely that that email is also a fed share target that the user wants to share with. It already hides the fed. share option if the email is found in the user's address book |
wiswedel
commented
Jun 24, 2019
Fair enough. Didn't know that
Tricky to assume things like that. But I'm not going to open a general discussion about this. So let's go for your solution. |
wiswedel
commented
Jun 25, 2019
MorrisJobke
commented
Jul 22, 2019
I just tested again and for email addresses with exact match this is already the case since 15 at least. See also #15665 (comment) |
MorrisJobke
commented
Jul 22, 2019
Those are the tests that fail: server/tests/lib/Collaboration/Collaborators/UserPluginTest.php Lines 244 to 358 in 03f1fef All of them do things like this: as the user results instead of Thus I have no idea what the initial thoughts where behind this. They are coming from somewhere here: https://github.com/nextcloud/server/blame/dd9e191d373217b2a07e4ac5b2cc294c0a6227a1/apps/files_sharing/tests/Controller/ShareesAPIControllerTest.php#L1272 @nickvergessen@icewind1991 Any idea how to "fix" them? |
nickvergessen
commented
Jul 23, 2019
Seems like the tests where just not updated. It should return getUserMocks there as well. |
| $usersTmp = $this->groupManager->displayNamesInGroup($userGroup, $search, $limit, $offset); | ||
| foreach ($usersTmp as $uid => $userDisplayName) { | ||
| $users[$uid] = $userDisplayName; | ||
| $users[$uid] = $this->userManager->get($uid); |
There was a problem hiding this comment.
This needs adjustments in the tests.
It returns tons of null which of course later on dont have a getDisplayName() function, etc.
skjnldsv
commented
Nov 22, 2019
Bump? |
7d8a41f to
55b78fcComparenickvergessen
commented
Dec 4, 2019
Rebased and fixed the tests. |
55b78fc to
a4dae72Compareblizzz
commented
Dec 13, 2019
another rebase, as some failing tests are fixed on master meanwhile |
a4dae72 to
b7b80a7Compare…l user email Signed-off-by: Robin Appelman <robin@icewind.nl>
b7b80a7 to
01c147aCompareicewind1991
commented
Apr 8, 2020
rebased and fixed tests |
skjnldsv
commented
Apr 11, 2020
Integration tests are broken |
skjnldsv
commented
Apr 11, 2020
@danxuliu can you have a look, I'm really not familiar with the integration tests :( |
danxuliu
commented
Apr 13, 2020
The sharees integration test failures are legit. The problem is that now |
skjnldsv
commented
Apr 21, 2020
Yep, needed for 18! |
backport to stable18 in #20574 |
nickvergessen
commented
Jun 17, 2020
This breaks searching for users by displaynames when |
DanScharon
commented
Jul 22, 2020
unfortunately this doesn't work if the mail address is pasted with preceding or following whitespace(s). |




Signed-off-by: Robin Appelman robin@icewind.nl