Skip to content

500 error when sending m.room.canonical_alias where 400 is expected #19198

@t3chguy

Description

@t3chguy

Description

Sending an m.room.canonical_alias event with a non-string alias field should return a HTTP 400 as per https://spec.matrix.org/v1.16/client-server-api/#put_matrixclientv3roomsroomidstateeventtypestatekey for The sender's request is malformed. but actually returns a 500 Failed to send event! (MatrixError: [500] Internal server error (https://matrix-client.matrix.org/_matrix/client/v3/rooms/!EdGGoamBVXVcYvqdPL%3Amatrix.org/state/m.room.canonical_alias/))

Steps to reproduce

  • Send m.room.canonical_alias with content {"alias": {"foo": "bar"}}

Homeserver

matrix.org

Synapse Version

{"server_version":"1.142.0rc4 (b=matrix-org-hotfixes-priv,2c3f64e44c)"}

Installation Method

I don't know

Database

Unknown

Workers

I don't know

Platform

Unknown

Configuration

Unknown

Relevant log output

Unknown

Anything else that would be useful to know?

No response

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