Cannot Remove Team Member

Description

If i delete a Team Member, i receive the error: invalid-params and user in not removed.

Server Setup Information

  • Version of Rocket.Chat Server: 4.2.0
  • Operating System:
  • Deployment Method: Kubernetes(rancher)
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v12.22.1
  • MongoDB Version:4.4.6
  • Proxy:
  • Firewalls involved:

Any additional Information

Safari/537.36",“host”:“chat.rios-net.it”,“referer”:“Chat - Rios - Rete Italiana Opensource”:5}
{“level”:35,“time”:“2022-02-08T15:51:32.948Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“API”,“method”:“GET”,“url”:"/api/v1/teams.listRoomsOfUser?teamId=61b8cdf6ee1e69645dd3a904&userId=9cuw3KFt8nNztjBFX",“userId”:“5smHi5vHaxfeMEdqt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36”,“host”:“chat.rios-net.it”,“referer”:“Chat - Rios - Rete Italiana Opensource”:39}
{“level”:35,“time”:“2022-02-08T15:51:35.401Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“API”,“method”:“POST”,“url”:"/api/v1/teams.removeMember",“userId”:“5smHi5vHaxfeMEdqt”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36”,“length”:“77”,“host”:“chat.rios-net.it”,“referer”:“Chat - Rios - Rete Italiana Opensource”:5}
{“level”:20,“time”:“2022-02-08T15:51:37.195Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“LivechatEnterprise”,“section”:“Queue”,“msg”:“Processing items for queue Public”}
{“level”:20,“time”:“2022-02-08T15:51:37.198Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“LivechatEnterprise”,“section”:“Helper”,“msg”:“Processing items on queue Public”}
{“level”:20,“time”:“2022-02-08T15:51:37.202Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“LivechatEnterprise”,“section”:“Helper”,“msg”:“No items to process on queue Public”}
{“level”:20,“time”:“2022-02-08T15:51:37.202Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“LivechatEnterprise”,“section”:“Queue”,“msg”:“Queue Public processed. Unlocking”}
{“level”:20,“time”:“2022-02-08T15:51:37.205Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“LivechatEnterprise”,“section”:“Queue”,“msg”:“No more registered queues. Refreshing”}
{“level”:20,“time”:“2022-02-08T15:51:37.208Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“LivechatEnterprise”,“section”:“Queue”,“msg”:“Executing queue Public with timeout of 5000”}
{“level”:35,“time”:“2022-02-08T15:51:37.578Z”,“pid”:1,“hostname”:“rocketchat-2-rocketchat-55d68bdc55-kcdsl”,“name”:“API”,“method”:“GET”,“url”:"/api/info",“userAgent”:“kube-probe/1.20”,“host”:“10.42.0.185:3000”,“remoteIP”:“178.33.239.64”,“status”:200,“responseTime”:1}

Hi!

Can you reproduce this on latest versions?

Are you deleting the user or removing a tem member from a team?

In order to move this to an issue, we would need the exact steps in order to reproduce on latest and on a fresh install, usually using docker.

THanks!

I can test issue with latest RC version on a fresh install but i’m not sure to reproduce it. I try.

I’m removing a member from a team:

  • List item

RC admin logged
Select Team
Select Member icon (high right)
Select Member to remove
Remove from Team button
Confirm action

Red message appear with “Invalid-params” and nothing happend.

Users are authenticated via KeyCloak but it happens also with local authentication.

How can i investigate around causes?

Regards
Alessandro

Hi guys,
i had upgraded Rocket.Chat instance to latest version available in docker hub 4.4.1.

The issues has been fixed.

Regards