RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.19k stars 10.4k forks source link

Cannot add user to public chatroom #18990

Open frlan opened 4 years ago

frlan commented 4 years ago

Description:

When trying to adding a user to a chat room, the search is not showing any result

This worked back in 1.x times without any issues.

Steps to reproduce:

  1. Go to Members of an chatroom
  2. Add User
  3. Enter something to the search filed

Expected behavior:

List of users fitting the given input

Actual behavior:

Empty result set Bildschirmfoto 2020-09-22 um 13 03 46

Server Setup Information:

Client Setup Information

Additional context

Relevant logs:

Server is not writing any error to log with default settings.

fdellwing commented 4 years ago

Works for me with 3.6.1.

brtptrs commented 4 years ago

I can confirm this issue on 3.6.0 This is a screenshot when trying to add a user to a private room. No existing user can be added.

grafik

brtptrs commented 4 years ago

It could be a duplicate of https://github.com/RocketChat/Rocket.Chat/issues/18789

fdellwing commented 4 years ago

Screenshot_20200923_130131

Maybe try updating to 3.6.2? Also might be worth it to test if /invite command works for you.

frlan commented 4 years ago

@brtptrs Indeed. Looks very similar.

brtptrs commented 4 years ago

The problem still exists after upgrading to 3.6.3 Unfortunately I have no idea how to debug this issue.

Weuxel commented 4 years ago

We use authentication via LDAP and experience the same issue. The problem is solved however, if the user is given a name in the user profile.

brtptrs commented 4 years ago

In our case it is irrelevant weather the User has a name in his/her profile.

frlan commented 3 years ago

@brtptrs @Weuxel We found a possible reason introduced with https://github.com/RocketChat/Rocket.Chat/blob/d01b83a16b1dad8b4ca4c65514d30505d5280757/app/api/server/lib/users.js#L7

b90g commented 3 years ago

witnessing similar occurrences with a SAML connected RocketChat with what appears to be random users.

Work-Around is so far tagging the user (@userName in a chat message) which is especially annoying if you're in a group (private chat) where you got to switch the room to a channel tag the user ans switch back to group...