-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSC2162: Signaling Errors at Bridges #2162
base: old_master
Are you sure you want to change the base?
Changes from 1 commit
3131afe
3b468c7
6606c84
c6b8c08
cf6723c
909f0c0
3ef997c
766e9dc
4e852c7
6556024
4fe8ffe
0212729
6eeb102
ab27cca
d0cd9d4
9e1f20a
54e0546
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,11 @@ There are some common reasons why an error occurred. These are encoded in the | |
|
||
* `m.unknown_event` The bridge is not able to handle events of this type. | ||
|
||
V02460 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* `m.bridge_unavailable` The homeserver couldn't reach the bridge. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. as a subclass to this which has shown to be problematic in recent weeks: When the homeserver is also dead, the users on other homeservers will see the message as delivered when in fact it is not. I don't know if it makes total sense here given the traffic concern, but maybe flipping this proposal around for positive reactions to messages when they are delivered? Maybe a new kind of or maybe we train the general public that the bridge sending a read receipt is fine? Presumably these ideas have already been covered, so I'm curious as to what the decisions were that led to it not being used. |
||
|
||
* `m.no_permission` The bridge wanted to react to an event, but didn't have | ||
V02460 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
the permission to do so. | ||
|
||
Nothing prevents multiple bridge error events to relate to the same event. This | ||
should be pretty common as a room can be bridged to more than one network at a | ||
time. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of the type or format (or both)? A bridge might support text messages, but not HTML, or it might support stickers, but not emotes. The language here implies that a bridge has to support all of
m.room.message
.Additionally, with the usual goal of a bridge to be instant messaging, I don't think it's fair to ever raise this error. The event types bridges wouldn't be able to send are the same event types it is unlikely to ever be able to send (server ACLs, room aliases, etc). On the other hand, if the bridge is able to raise this error for subtypes/formats of events it doesn't understand, this could be used to flag that a kick/ban was not carried over.
Can we put some recommendations in here that bridges shouldn't send this error for events outside of its use case (ie: for instant messaging, don't signal errors on ACLs, aliases, and custom event types).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Subtypes are fine, I think I clarified it now in the new version.
Let's assume a bridge that doesn't know about stickers yet. It would be very nice to have a sticker sent in that room trigger an
m.unknown_event
then.I am more in favor of whitelisting some events by having the bridge recognize those event and not acting on them at all. Everything that is completely unknown would still trigger this. I don't expect there to be many false positives in practice, but if so, the UI for this type of error could be reduced to something less noisy.