-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify the responses that should be given when a request is missing arguments #333
Comments
This removes the Directory and Profile sections, instead opting to document them as Queries. The behaviour of profile queries is based on Synapse's behaviour. A few issues have been opened to improve the behaviour: * matrix-org#1434 * matrix-org#1435 * https://github.com/matrix-org/matrix-doc/issues/1436 * https://github.com/matrix-org/matrix-doc/issues/1437 This fixes matrix-org#1404
It is very obviously a bug to return a 500 error in response to missing or unexpected parameters. |
Yes, but the problem is that it's not in the spec, so it can't entirely be declared a bug despite being obvious. |
maybe it should be in the spec. Either way, it's http error code lesson 101:
I still say it's an obvious bug in synapse which should be fixed. As for M_UNKNOWN: I'd love it if the spec could say something like "Servers SHOULD only return M_UNKNOWN when no other error code is appropriate. Clients SHOULD NOT rely on it being returned under any particular set of circumstances." |
out of band discussion yielded synapse being buggy in this area. Leaving this open as a general "make it clearer" thing for the spec. |
This removes the Directory and Profile sections, instead opting to document them as Queries. The behaviour of profile queries is based on Synapse's behaviour. A few issues have been opened to improve the behaviour: * matrix-org#1434 * matrix-org#1435 * https://github.com/matrix-org/matrix-doc/issues/1436 * https://github.com/matrix-org/matrix-doc/issues/1437 This fixes matrix-org#1404
This removes the Directory and Profile sections, instead opting to document them as Queries. The behaviour of profile queries is based on Synapse's behaviour. A few issues have been opened to improve the behaviour: * matrix-org#1434 * matrix-org#1435 * https://github.com/matrix-org/matrix-doc/issues/1436 * https://github.com/matrix-org/matrix-doc/issues/1437 This fixes matrix-org#1404
Dendrite seems to prefer a 400
M_MISSING_ARGUMENTS
while Synapse goes for the 500M_UNKNOWN
route. A consistent error would be nice not only amoung the 2 projects, but in the spec as well.Applies to all APIs, not just c2s.
The text was updated successfully, but these errors were encountered: