-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cannot send new events into rooms with floating-point (and stringy?) power levels #14060
Comments
Right. Well that's not good. |
The event in question was created at We now check that the power level values are integers in sufficiently new rooms. Lines 783 to 807 in c2fe48a
|
TypeError
because notification_power_levels
is a float
No idea how we even got floats in the power levels content in the first place, given that synapse/synapse/events/utils.py Lines 662 to 664 in 06df5d4
|
Note that this is only enforced (at least over federation) for newer room versions. |
Merged into develop in 44741aa. |
Internal users: https://sentry.tools.element.io/organizations/element/issues/34032/?project=2&query=is%3Aunresolved&sort=freq&statsPeriod=14d
Sentry's report is terse here: it does not include local vars from the call stack.
The deepest call is
synapse/synapse/push/bulk_push_rule_evaluator.py
Lines 292 to 299 in b4ec4f5
which invokes the new Rust mechanism for push stuff:
synapse/rust/src/push/evaluator.rs
Lines 64 to 90 in ebd9e2d
I am guessing that
'float' object cannot be interpreted as an integer
comes from Py03's translation layer. (Implement push rule evaluation in Rust. #13838)Will investigate a little more.
The text was updated successfully, but these errors were encountered: