Skip to content

Element X cannot create rooms when server_name contains a port number #6618

@yun-love

Description

@yun-love

Describe the bug

When using a Matrix server whose server_name includes a port number (e.g., example.com:4224), Element X fails to create rooms. The room alias is generated as #roomname:example.com:4224, which the client's regex does not recognize as a valid room alias format.

Steps to reproduce

  1. Configure a Matrix server with server_name = "example.com:4224" (port number included)
  2. Log in to Element X using this server
  3. Attempt to create a new room
  4. Observe the error

Expected behavior

Element X should accept room aliases that include port numbers, as this is a valid Matrix server name format according to the Matrix specification.

Actual behavior

Room creation fails with an error indicating the room alias format is invalid.

Environment

Element X version: 26.04.2 (202604020)
Android version: 15
Device: Redmi Note 12 Turbo

Additional context

I am a student and not very familiar with these technical details. This issue report was drafted with the help of an AI assistant. I will try my best to provide any additional information if needed, but please note that I can only reply on weekends due to school commitments.

Thank you for your understanding!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions