Bug 304029

Summary: Kopete: OTR plugin inserts whitespaces in <body> when in XMPP-MUC (Multiuser chat)
Product: [Unmaintained] kopete Reporter: Samuel Brack <samuel.brack>
Component: OTR PluginAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: pali.rohar
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.