RocketChat / RocketChat/Rocket.Chat

When trying to create a team with the name of a deleted one, it says that name already exists

Open
#22,114 16 comments 2 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 you create a team with the same name as a previously deleted one, it will say that the name already exists.

Steps to reproduce:
  1. Create a team, noting the name.
  2. Delete that channel.
  3. Create another team with the same name that was noted.
Expected behavior:

The team gets created.

Actual behavior:

image

Server Setup Information:
  • Version of Rocket.Chat Server: 3.13.2
  • Operating System: Ubuntu
  • Deployment Method: snap
  • Number of Running Instances: 1
  • NodeJS Version: v12.21.0
  • MongoDB Version: 3.6.14 / wiredTiger (oplog Enabled)
Client Setup Information
  • Browser Version: Brave v1.24.86
  • Operating System: Windows 10
Relevant logs:

As odd as this may seem, there is nothing logged when this occurs.

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

Start by reproducing the team deletion and recreation flow using the steps in the issue, then trace the team creation and name-validation entry points. Done means a deleted team's name can be reused and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
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.