Bug 304029 - Kopete: OTR plugin inserts whitespaces in <body> when in XMPP-MUC (Multiuser chat)
Summary: Kopete: OTR plugin inserts whitespaces in <body> when in XMPP-MUC (Multiuser ...
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Applications
Component: OTR Plugin (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Kopete Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-25 00:48 UTC by Samuel Brack
Modified: 2016-11-27 15:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Brack 2012-07-25 00:48:21 UTC
On joining a Jabber multi-user-chat with OTR enabled, Kopete adds a bunch of whitespaces at the end of the message inside the <body>-Tag. Your chat partners may see weird ASCII codes (mostly 0x09 and 0x20, i.e. TAB and Space). On deactivating the OTR module, this bug disappears. Normal chats don't seem to be bothered by that bug.
The OTR plugin was considered responsible after finding out, that if Space = 0 and TAB = 1, the plugin encodes 0b01001111010101000101001000110010. Interpreted as ASCII, you see it is "OTR2". So this seems to be a hint that OTR can be enabled which should be relativley easy to fix: Don't offer OTR in XMPP group chats. Please ask for more info if you need that.

Reproduce: Make sure you have OTR enabled. Then join a XMPP multi-user-chat and write something. Your buddies will see some ASCII-Foo at the end of your messages. Aditionally, if you look into your XML-Console, you'll see the whitespaces yourself.
Comment 1 Pali Rohár 2014-06-27 07:21:51 UTC
This is caused by opportunistic OTR mode. You can change it to manuall in OTR plugin settings.
Comment 2 Pali Rohár 2016-11-27 15:48:23 UTC
OTR plugin should not be active in multi user chats. If you still see this behaviour, please provide exact steps for reproducing. Closing now.