Skip to content

If there is ufs somewhere in url the request to api always returns 404 #16174

@lastsecondsave

Description

@lastsecondsave

Description:

We have one user for which requests to users.info fail with 404 even if the user is in the database. After some experiments we found that if url contains ufs string the Rocket.Chat always returns 404 with no body. In out case userId contains ufs. We checked open.rocket.chat and it has the same behavior. Any api request fails when ufs is somewhere in the url.

Steps to reproduce:

  1. Query this endpoints:
https://open.rocket.chat/api/v1/users.info?userId=123
https://open.rocket.chat/api/v1/users.info?userId=ufs

Expected behavior:

They behave the same, either ask you to log in or return "bad request".

Actual behavior:

For the second endpoint you will always get 404.

Server Setup Information:

  • Version of Rocket.Chat Server: 1.3.2, 2.4.0

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions