Skip to content

Room alias address isn't checked for validity before being shown as added #19609

@kittykat

Description

@kittykat

Steps to reproduce

  1. Go to room settings (in the left panel, ⋯ -> Settings)
  2. Under Room Addresses -> Published Addresses, add and address that looks like "#someaddress"
  3. Add
  4. Get pop-up with "Error updating main address"
  5. Close dialog
  6. See bad alias shown in the list
  7. Under "main address" dropdown, see the bad alias listed
  8. Select the bad alias under "main address" to get another error dialog

Outcome

What did you expect?

Basic validation check when tabbing out of the field (like on login with password or email) and for the alias to not be shown if it fails to be added.

What happened instead?

There is no validation before I click "Add" and the alias shows as added after I get the error dialog. The bad alias is also listed under "main address" as well, and throws another error dialog if I try to select it there

Screenshot from 2021-11-04 09-00-25

Operating system

No response

Browser information

No response

URL for webapp

develop.element.io

Application version

No response

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

A-AliasesA-Room-SettingsO-FrequentAffects or can be seen by most users regularly or impacts most users' first experienceS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions