This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Synapse accepts objects in place of device ids for /_matrix/client/r0/keys/query
#10354
Labels
good first issue
Good for newcomers
T-Task
Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-keys-query says that
device_keys
must be a map from string to a list of strings (the device IDs).However, Synapse erroneously accepts other types in place of that list of strings (in particular, it accepts other maps).
In short: this is accepted as a valid request, where it should be rejected with a 400:
The text was updated successfully, but these errors were encountered: