RocketChat / RocketChat/Rocket.Chat

[BUG] Wrong error message when user already exists

Open
#24,701 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

When user already exists wrong error message is shown which is 'The users have be added'.

Steps to reproduce:
  1. Go to any room
  2. Click on members
  3. Click on add users
Expected behavior:

https://user-images.githubusercontent.com/76220055/156771583-26db2d0e-d7f9-4f2b-bb32-82bc67a02d9a.mp4

Actual behavior:

https://user-images.githubusercontent.com/76220055/156771728-6d47da6c-599c-4ae2-b2ff-011917527e70.mp4

Server Setup Information:

Version of Rocket.Chat Server: 4.6.0-develop
Operating System: Linux ubuntu 20.04
NodeJS Version: v14.18.3
MongoDB Version: 4.4.4 / wiredTiger (oplog Enabled)

Client Setup Information

Desktop App or Browser Version: Chrome 97.0.4692.99 (Official Build) (64-bit)
Operating System: Linux Ubuntu 20.04

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in a room by opening Members, selecting Add users, and attempting to add an existing user; compare the displayed message with the linked expected and actual behavior videos. Trace the client-side flow for that action and verify that the duplicate-user case shows a correct error message instead of “The users have be added”.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.