Skip to content
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

[bug][federation] Chat owner gets error-user-not-in-room when try to remove federated user from chat #22783

Open
ankar84 opened this issue Jul 28, 2021 · 3 comments

Comments

@ankar84
Copy link

ankar84 commented Jul 28, 2021

Description:

We have federated user in one private grout.
That user shown in members list both in Web client and Mobile client.
Chat's owner want to remove that user from private group.
When owner try to remove that federated user from chat he gets error: User is not in the room [error-user-not-in-room]
I did try to create new chat and add same federated user, and then I removed that federated user without any errors, so there could be another conditions to that bug.

Steps to reproduce:

  1. Setup federation
  2. Add federated user to chat
  3. Try to remove federated user from chat
  4. Get error: User is not in the room [error-user-not-in-room]

Expected behavior:

Any user should be removed by chat's owner if needed.

Actual behavior:

Problem federated user shown in chat
image

Owner gets error when remove that user from chat
image

Server Setup Information:

  • Version of Rocket.Chat Server: 3.16.3
  • Operating System: CentOS7
  • Deployment Method: docker
  • Number of Running Instances: 20
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: 12.22.1
  • MongoDB Version: 4.2.14 / wiredTiger (oplog Enabled)

Client Setup Information

  • Desktop App or Browser Version: 3.2.3 and Chrome 92
  • Operating System: Windows 10

Additional context

No

Relevant logs:

@johncrisp
Copy link

Anton, I think there are some change to Federation in 3.17 (and I believe more to come)

I now that is going to be hard for you to test...... Can you check the release notes to see if there is anything similar?

@ankar84
Copy link
Author

ankar84 commented Jul 28, 2021

Anton, I think there are some change to Federation in 3.17 (and I believe more to come)

I now that is going to be hard for you to test...... Can you check the release notes to see if there is anything similar?

Frankly speaking, I didn't get to reproduce that bug myself, so it could be much complicated to diagnose and fix for team.
I hope something will be more proper in federation aspect in 3.17
I will test it and give a feedback.

@olemsi
Copy link

olemsi commented Jun 9, 2022

I have this issue in Rocket.Chat v4.8.1 too..

details: {method: "removeUserFromRoom"}
method: "removeUserFromRoom"
error: "User is not in this room [error-user-not-in-room]"
errorType: "error-user-not-in-room"
success: false

Also, this federated-user cannot see this room from his side
But I see it in the member-list of the room

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants