You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] rooms.info returns HTTP 500 for nonexistent rooms #42540
The rooms.info REST API endpoint throws an internal server error when the requested room does not exist.
When findRoomByIdOrName() returns null, the endpoint currently passes that value to isPublicRoom() and isPrivateRoom(). These helpers access room.t, causing a null dereference.
Steps to reproduce:
Start a Rocket.Chat server.
Create or use a valid user account.
Authenticate and obtain a user ID and authentication token.
Send the following request with a nonexistent room ID:
GET /api/v1/rooms.info?roomId=000000000000000000000000X-User-Id: <user-id>X-Auth-Token: <auth-token>
Activity