0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-12 13:01:34 +01:00
synapse/synapse/federation
David Robertson a134e626e4
Reject boolean power levels (#14944)
* 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

* Test boolean values in PL content

* Reject boolean power levels

* Changelog
2023-01-31 10:57:02 +00:00
..
sender Improve logging and opentracing for to-device message handling (#14598) 2022-12-06 09:52:55 +00:00
transport Bump the client-side timeout for /state (#14912) 2023-01-25 16:11:06 +00:00
__init__.py
federation_base.py Reject boolean power levels (#14944) 2023-01-31 10:57:02 +00:00
federation_client.py Prefer type(x) is int to isinstance(x, int) (#14945) 2023-01-31 10:33:07 +00:00
federation_server.py Also use stable name in SendJoinResponse struct (#14841) 2023-01-16 12:40:25 +00:00
persistence.py
send_queue.py Spread out sending device lists to remote hosts (#12132) 2022-03-04 11:48:15 +00:00
units.py