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.

Text for 405 errors is a lie #6894

@richvdh

Description

@richvdh

When you send a GET request to an endpoint that only supports POST, or vice versa, synapse sends back an error that looks like:

Method Not Allowed

Your browser approached me (at /_matrix/saml2/authn_response) with the method "GET". I only allow the method HEAD here.

We hardly support HEAD anywhere, and it doesn't say anything about POST.

(This actually only happens on a subset of endpoints, such as the media repo ones. For others we give back a 400, which I think is fine).

Related: #6746

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-UncommonMost users are unlikely to come across this or unexpected workflowS-TolerableMinor significance, cosmetic issues, low or no impact to users.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.z-bug(Deprecated Label)z-p3(Deprecated Label)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions