This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Text for 405 errors is a lie #6894
Copy link
Copy link
Open
Labels
O-UncommonMost users are unlikely to come across this or unexpected workflowMost users are unlikely to come across this or unexpected workflowS-TolerableMinor significance, cosmetic issues, low or no impact to users.Minor significance, cosmetic issues, low or no impact to users.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Bugs, crashes, hangs, security vulnerabilities, or other reported issues.z-bug(Deprecated Label)(Deprecated Label)z-p3(Deprecated Label)(Deprecated Label)
Description
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
Labels
O-UncommonMost users are unlikely to come across this or unexpected workflowMost users are unlikely to come across this or unexpected workflowS-TolerableMinor significance, cosmetic issues, low or no impact to users.Minor significance, cosmetic issues, low or no impact to users.T-DefectBugs, crashes, hangs, security vulnerabilities, or other reported issues.Bugs, crashes, hangs, security vulnerabilities, or other reported issues.z-bug(Deprecated Label)(Deprecated Label)z-p3(Deprecated Label)(Deprecated Label)