element-hq / element-hq/sygnal

Sygnal assumes that the sender field of a notification is non-null

未关闭
#175 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
44
派生
20
平均合并
16 小时 53 分钟
30 天内合并 PR
1

描述

*This issue was originally created by [**@anoadragon453**](https://github.com/anoadragon453) at .*

https://github.com/matrix-org/sygnal/blob/ab6285760d76d345edb78673106d5913cfe69259/sygnal/apnspushkin.py#L343-L346

According to [the spec](https://matrix.org/docs/spec/push_gateway/r0.1.1#post-matrix-push-v1-notify) the `sender` field of a notification can be null, yet Sygnal looks to assume it's a str.

While not common, if sent by a homeserver this would cause Sygnal to return a 500.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。