RocketChat / RocketChat/Rocket.Chat

Search issue

Open
#21,506 3 comments 4 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:

Hi, my user called strange "Search" (magnifier icon on sidebar) behavior. When you type some random text i.e.zzzzzzzzzzzzzzzzz search shows nothing, but when tap "enter" redirect to DM with random user.
Issue can be reproduced on your https://open.rocket.chat/

Steps to reproduce:
  1. Go to sidebar search (magnifier icon)
  2. Type some random text which results empty
  3. Tap "enter"
  4. You are redirecting to DM with random user
Expected behavior:

No redirection when search result is empty

Actual behavior:

You are redirecting to DM with "random" user

Server Setup Information:
  • Version of Rocket.Chat Server: 3.13.1
  • Operating System: Centos 7
  • Deployment Method: docker-compose
  • Number of Running Instances: 31
  • DB Replicaset Oplog: YES
  • NodeJS Version: v12.21.0
  • MongoDB Version: 4.0.13
Client Setup Information
  • Desktop App or Browser Version: all
  • Operating System: Windows 10
Additional context
Relevant logs:

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 behavior in the sidebar search on open.rocket.chat using a random query with no results, then trace the search entry point in the TypeScript client code. Done means pressing Enter on an empty result does not redirect to a direct message.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.