-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Room version 11 & MSC2175: creator
improperly handled on events
#15962
Comments
565b9f9 fixes this without tests |
While looking into this (essentially trying to write a test for this by sending a redact event), I discovered that it appears that Synapse categorically does not allow redaction of synapse/synapse/handlers/message.py Lines 1782 to 1799 in 67f9e52
|
Synapse does block redacting the create event over the client-server API, but over federation it doesn't have that much control. It's largely to prevent people from casually breaking rooms (because some fairly important fields aren't covered by redaction in some room versions, oops). |
Both the proposed fix for this issue and #15963 look good to me. I agree that including tests would help build confidence further. @H-Shay did you want to take on writing tests and PRing both of these? In this case, I think it would be fine to simply unit test |
Should be fine to commit as-is. The permalinks were just confirming the intention, and it was confirmed :D |
Confirming that the release blocker for this issue and #15963 are correct, and that we'd like to get these in for v1.89.0rc1. |
Sorry, another dumb question: in #15963 it is stated that the entirety of the |
To be more specific in my question (and apologies for my ignorance), but this is the two proposed fixes together:
If the |
hmm, that's fun. There's a few MSCs being stacked up here - we both remove meaning from
|
So just to be clear - the practical result of this is that |
I think so, yea. It's also not impossible that v12 (for example) dictates that it wants |
Right on thanks for clarifying! |
I've added the fix for this and #15963 are at #15973 + change for the tests that were already there - if there's more testing you think I should add let me know. @anoadragon453 I've requested a review from you as reviews have been slow and I think you have the most context for this. |
Description
At
synapse/synapse/events/utils.py
Line 143 in 67f9e52
creator
field is always protected from redaction, however the very last line of MSC2175 states:I believe there should be an
if
statement around here somewhere. It does not appear as though Synapse is populatingcreator
, but it is improperly allowing the field to survive redaction if present.The text was updated successfully, but these errors were encountered: