Bug 167352 - Enabling otr plugin results in loss of messages that start with "<"
Summary: Enabling otr plugin results in loss of messages that start with "<"
Status: RESOLVED FIXED
Alias: None
Product: kopete
Classification: Unmaintained
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Michael Zanetti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-24 14:42 UTC by Michael
Modified: 2008-12-09 21:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of a chat with empty messages (75.73 KB, image/png)
2008-07-24 14:44 UTC, Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2008-07-24 14:42:36 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc 4.3.1 
OS:                Linux

I am running kopete svn trunk r836553.

After enabling the otr plugin, messages starting with "<" wont show in the chat window. No other plugins were loaded during the test.


the debug output of kopete says:

kopete(21797)/kopete (jabber) JabberAccount::slotReceivedMessage: New message from "x@jabber.org/Kopete"                                                                                
kopete(21797)/kopete (jabber) JabberContact::handleIncomingMessage: Received Message Type: "chat"                                                                                              
kopete(21797)/kopete (jabber) JabberContact::manager: called, canCreate:  1 , Resource: ' "Kopete" '                                                                                           
kopete(21797)/kopete (jabber) JabberContact::manager: Found an existing message manager for this resource.                                                                                     
kopete(21797)/kopete (jabber) JabberByteStream::slotReadyRead: called:  available:  330                                                                                                        
kopete(21797)/kopete (jabber - raw protocol) JabberAccount::slotClientDebugMessage: "XML IN: <message from="x@jabber.org/Kopete" type="chat" to="brot@jabber.ccc.de/Kopete" id="abd2a" > 
<body>&lt;3</body>                                                                                                                                                                             
<x xmlns="jabber:x:event">                                                                                                                                                                     
<offline/>                                                                                                                                                                                     
<composing/>                                                                                                                                                                                   
<delivered/>                                                                                                                                                                                   
<displayed/>                                                                                                                                                                                   
</x>                                                                                                                                                                                           
<active xmlns="http://jabber.org/protocol/chatstates"/>                                                                                                                                        
</message>                                                                                                                                                                                     
"                                                                                                                                                                                              
kopete(21797)/kopete (jabber) JabberAccount::slotReceivedMessage: New message from  "x@jabber.org/Kopete"                                                                                
kopete(21797)/kopete (jabber) JabberContact::handleIncomingMessage: Received Message Type: "chat"                                                                                              
kopete(21797)/kopete (jabber) JabberContact::manager: called, canCreate:  1 , Resource: ' "Kopete" '                                                                                           
kopete(21797)/kopete (jabber) JabberContact::manager: Found an existing message manager for this resource.                                                                                     
kopete(21797)/kopete (jabber) JabberContact::handleIncomingMessage: Received a plain text message                                                                                              
kopete(21797)/kopete (jabber) JabberChatSession::slotUpdateDisplayName:                                                                                                                        
kopete(21797) ChatMessagePart::slotUpdateHeaderDisplayName:                                                                                                                                    
kopete(21797)/kopete (jabber - raw protocol) JabberAccount::slotClientDebugMessage: "XML OUT: <message from="brot@jabber.ccc.de/Kopete" type="chat" to="x" id="ab02a" >
<x xmlns="jabber:x:event">                                                                                                                                                                     
<id>abd2a</id>                                                                                                                                                                                 
<delivered/>                                                                                                                                                                                   
</x>                                                                                                                                                                                           
</message>                                                                                                                                                                                     
"                                                                                                                                                                                              
kopete(21797)/kopete (jabber - raw protocol) JabberAccount::slotClientDebugMessage: "XML OUT: <message from="brot@jabber.ccc.de/Kopete" type="chat" to="x@jabber.org/Kopete" id="ab03a" >
<x xmlns="jabber:x:event">                                                                                                                                                                     
<id>abd2a</id>                                                                                                                                                                                 
<displayed/>                                                                                                                                                                                   
</x>                                                                                                                                                                                           
</message>                                                                                                                                                                                     
"                                                                                                                                                                                              
kopete(21797) squashMessage: ""                                                                                                                                                                
kopete(21797) ChatMessagePart::formatStyleKeywords: Hash  14932  has color  "blue"
Comment 1 Michael 2008-07-24 14:44:44 UTC
Created attachment 26374 [details]
Screenshot of a chat with empty messages
Comment 2 George Kiagiadakis 2008-07-24 15:14:38 UTC
I can confirm that this happens, but you must not be in an OTR session to experience that. If both ends start an OTR session, then it works.

I am running kopete 0.50.80 from KDE 4.0.99 here, btw.
Comment 3 Michael Zanetti 2008-12-09 21:51:17 UTC
fixed in 4.2-beta2