-
Notifications
You must be signed in to change notification settings - Fork 150
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
Don't use user@host to determine message uniqueness as it can vary on different connections #173
Comments
Interesting that it only happens with some and not all messages. Logs:
It looks like any message claimed by
|
Note that I haven't seen this happening anymore for a while. I think it was "fixed" by someone restarting the entire IRC bridge after I reported this. |
@juliusv I can confirm that I saw this happen today in #xkcd:freenode.net. Only one guy was affected, and he did not use unconventional software according to him. Another user using an IRC client said that the messages of Stereo did not appear duplicated for him. Here is an example of a duplicated message: {
"origin_server_ts": 1489698340603,
"sender": "@_foonetic_Stereo:matrix.org",
"event_id": "$1489698340284313TdloV:matrix.org",
"unsigned": {
"age": 52
},
"content": {
"body": "i'm not using anything unconventional, must be on your end",
"msgtype": "m.text",
"formatted_body": "i'm not using anything unconventional, must be on your end",
"format": "org.matrix.custom.html"
},
"type": "m.room.message",
"room_id": "!SnCqwjBFxKGDZmmeRW:matrix.org"
} {
"origin_server_ts": 1489698340680,
"sender": "@_foonetic_Stereo:matrix.org",
"event_id": "$1489698340284314gExPF:matrix.org",
"unsigned": {
"age": 91
},
"content": {
"body": "i'm not using anything unconventional, must be on your end",
"msgtype": "m.text",
"formatted_body": "i'm not using anything unconventional, must be on your end",
"format": "org.matrix.custom.html"
},
"type": "m.room.message",
"room_id": "!SnCqwjBFxKGDZmmeRW:matrix.org"
} |
Interesting. Thanks for the info, that should be enough for me to correlate with logs. If it's the same underlying cause, I think I know a way of resolving it but we'll see. |
Right, so that channel only has a handful of Matrix users in it, and none of them are the same name/nick, nor were there any connection issues with those connections, and no one ever stole responsibility for passing messages through to the
This feels more like a race condition in the bridge now, rather than something triggered by funky connections. EVERY one of this person's messages are duplicated, right from when the bridge started up. |
Do all other users see the same prefix for a given originator? LeoNerd sez:
I have /whois'd the few connections there are in this scenario, no one is flagged as an IRC op (or even logged in with NickServ), so it doesn't sound like that is the case. @leonerd suggests it may be a case-folding issue on the prefix. I have added verbose logging to the |
@kegsay This happened again with the same user (not sure if it ever stopped to happen).
|
Right, the hashes are different but not for the casing.
Notice how this user is cloaking themselves, but the way the cloak is represented in the hostname differs. Spoke with @leonerd and he suspects that this is due to a misconfigured IRCd (they don't cloak in the same way!!). @leonerd suggests using the case-folded nick only instead of the entire @devnoname120 : Thank you very much! |
@kegsay This happened again with another user on another room (#henkaku:matrix.org), and this user doesn't cloak themselves:
Example of duplicated message:
|
@devnoname120 - I assume that:
If so, it's likely it's caused by the same issue, but not directly caused by cloaking. |
I can't see that message as I wasn't in the room at the time. Please paste. |
Example of non duplicated message:
Example of duplicated message:
This keeps happening to this user. I haven't seen it happen to any other IRC users. Edit: It feels that about half of this user's messages are duplicated. I haven't counted though. |
In the bridged #prometheus channel from Freenode, https://vector.im/beta/#/room/#freenode_#prometheus:matrix.org, the messages of many users from IRC now arrive duplicated in Matrix. That makes the channel less and less usable through Matrix :-/
I also see this in the mobile Vector client, but don't see the dupes on IRC itself, so I guess it would be a bridging bug.
The text was updated successfully, but these errors were encountered: