synapse-product/synapse/push
David Robertson 510d4b06e7
Handle malformed values of notification.room in power level events (#14942)
* Better test for bad values in power levels events

The previous test only checked that Synapse didn't raise an exception,
but didn't check that we had correctly interpreted the value of the
dodgy power level.

It also conflated two things: bad room notification levels, and bad user
levels. There _is_ logic for converting the latter to integers, but we
should test it separately.

* Check we ignore types that don't convert to int

* Handle `None` values in `notifications.room`

* Changelog

* Also test that bad values are rejected by event auth

* Docstring

* linter scripttttttttt
2023-01-30 21:29:30 +00:00
..
__init__.py Track device IDs for pushers (#13831) 2022-09-21 15:31:53 +00:00
bulk_push_rule_evaluator.py Handle malformed values of notification.room in power level events (#14942) 2023-01-30 21:29:30 +00:00
clientformat.py Remove undocumented device from pushrules (#14727) 2023-01-09 17:17:24 +00:00
emailpusher.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
httppusher.py Implement push rule evaluation in Rust. (#13838) 2022-09-29 16:12:09 +01:00
mailer.py Move StateFilter to synapse.types (#14668) 2022-12-12 16:19:30 +00:00
presentable_names.py Use inline type hints in various other places (in synapse/) (#10380) 2021-07-15 11:02:43 +01:00
push_tools.py Aggregate unread notif count query for badge count calculation (#14255) 2022-11-30 08:45:06 -05:00
push_types.py Improved push typing (#11409) 2021-11-30 11:49:20 +00:00
pusher.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
pusherpool.py Track device IDs for pushers (#13831) 2022-09-21 15:31:53 +00:00
rulekinds.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00