-
Notifications
You must be signed in to change notification settings - Fork 59
Fix request body structure for "Should reject keys claiming to belong to a different user" #1412
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,6 +91,12 @@ | |
| device_keys => { | ||
| user_id => "\@50-e2e-alice:localhost:8480", | ||
| device_id => "alices_first_device", | ||
| algorithms => ["m.olm.curve25519-aes-sha256", "m.megolm.v1.aes-sha"], | ||
| keys => { | ||
| "curve25519:".$user->device_id => "curve25519+key", | ||
| "ed25519:".$user->device_id => "ed25519+key", | ||
| }, | ||
| signatures => {}, | ||
| }, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is caused by changes from element-hq/synapse#17097 / element-hq/synapse#19023 ? I'm a bit confused about how Sytest is passing on Synapse Or since it's optional, why it's failing in (unknown, as described in PR title)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test was passing because it expects a but, as explained in the PR description, we were getting a 400 due to the Pydantic model validation fail. Whereas the test is trying to check that the homeserver will return a 400 when uploading device keys for a user other than yourself. |
||
| } | ||
| )->main::expect_http_4xx; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fields make sense in terms of Pydantic model in Synapse (see
DeviceKeys)Feel free to merge if things make sense to you. The fields themselves seem sane.