Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Room creations denied by user_may_create_room should cause a M_FORBIDDEN error to be returned, not M_UNKNOWN #11245

@jaller94

Description

@jaller94

Description:
0. Have a Synapse module that prevents you from creating a room.

  1. Try to create a room.

Actual

HTTP 403 on POST /_matrix/client/r0/createRoom

{
  "errcode":"M_UNKNOWN",
  "error":"You are not permitted to create rooms"
}

The UI is unsure what to tell the user, making it seem like this could succeed on retry:

Expected

The Matrix errcode M_FORBIDDEN would be more specific and fits the error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-TolerableMinor significance, cosmetic issues, low or no impact to users.T-EnhancementNew features, changes in functionality, improvements in performance, or user-facing enhancements.good first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions