Skip to content

Channel name incorrect when "Allow Special Characters in Room Names" is enabled #15999

@frdmn

Description

@frdmn

Description:

When the option "Allow Special Characters in Room Names" is enabled and turned on, it can occur that the name of a newly created channel or group doesn't correlate with the name that was actually passed by the user / API who created the channel.

Steps to reproduce:

  1. Make sure "Admin UI" → "Layout" → "User Interface" → "Allow Special Characters in Room Names is set" to true
  2. Create a new channel with the name d4edcce7-a6a8-457e-94c4-0b2d43cd51b8
  3. Notice the incorrect name of the channel d-4-edcce-7-a-6-a8-457-e-94-c4-0-b2d-43-cd-51-b8

Expected behavior:

Admin UI → Layout → User Interface → Allow Special Characters in Room Names: "false"

{
        [...]
        "name": "d4edcce7-a6a8-457e-94c4-0b2d43cd51b8",
        "fname": "d4edcce7-a6a8-457e-94c4-0b2d43cd51b8",
        [...]
}

Actual behavior:

Admin UI → Layout → User Interface → Allow Special Characters in Room Names: "true"

{
        [...]
        "name": "d-4-edcce-7-a-6-a8-457-e-94-c4-0-b2d-43-cd-51-b8",
        "fname": "d4edcce7-a6a8-457e-94c4-0b2d43cd51b8",
        [...]
}

Server Setup Information:

  • Version of Rocket.Chat Server: 2.1.0
  • Operating System: Dockerized
  • Deployment Method: Dockerized
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Dockerized
  • NodeJS Version: Dockerized
  • MongoDB Version: Dockerized

Client Setup Information

  • Desktop App or Browser Version: RESTAPI client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions