[Pidgin] #6352: Pidgin mangles multi-line messages?

Pidgin trac at pidgin.im
Thu Jul 17 14:39:33 EDT 2008

#6352: Pidgin mangles multi-line messages?
  Reporter:  glebfrank     |       Owner:  lschiere
      Type:  defect        |      Status:  new     
  Priority:  minor         |   Milestone:          
 Component:  unclassified  |     Version:  2.4.1   
Resolution:                |    Keywords:          
   Pending:  1             |  
Changes (by glebfrank):

  * pending:  1 => 0


 I only have the message notification plugin turned on.

 I attach first the piece of log with me sending a message (second line is
 "foo: bar baz"), and then a piece of log with me receiving the same thing
 (mangled), and then a piece of me receiving it again from a correspondent
 with Miranda (non-mangled). I inserted Wiki line breaks where they occur
 in the message text.

 It seems Pidgin always sends two bodies in the message, regular and HTML.
 On the sending side, the two bodies seem equivalent. On the receiving
 side, the HTML body is mangled.

 The reason it works with Miranda seems to be that Miranda only sends one
 body - non HTML!

 So, is our Jabber server mangling HTML bodies?

 '''Sending (with Pidgin, looks good so far - but arrives mangled):'''

 (11:00:53) jabber: Sending (ssl): <iq type='get' id='purple2e6a4a04'><ping

 (11:00:53) jabber: Recv (ssl)(203): <iq type="error" id="purple2e6a4a04"
 to="frank at"><ping xmlns="urn:xmpp:ping"/><error code="503"
 type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-

 (11:00:54) jabber: Sending (ssl): <message type='chat' id='purple2e6a4a05'
 to='jchatham at'><x

 (11:01:05) jabber: Sending (ssl): <message type='chat' id='purple2e6a4a06'
 to='jchatham at'><x xmlns='jabber:x:event'><composing/></x><active
 foo: bar baz</body><html xmlns='http://jabber.org/protocol/xhtml-im'><body
 xmlns='http://www.w3.org/1999/xhtml'>test<br/>foo: bar

 (11:01:05) jabber: Sending (ssl): <message type='chat' id='purple2e6a4a07'
 to='jchatham at'><x xmlns='jabber:x:event'/><active

 '''Receiving (from Gaim, mangled):'''

 (11:06:11) jabber: Recv (ssl)(320): <message type="chat"
 id="purpleeccc12e8" to="frank at"
 from="jchatham at"><active
 xmlns="http://jabber.org/protocol/chatstates"/><body>Line one[[BR]]
 foo: bar baz</body><html xmlns="http://jabber.org/protocol/xhtml-im"><body

 (11:06:11) jabber: Recv (ssl)(163): <message type="chat"
 id="purpleeccc12e9" to="frank at"
 from="jchatham at"><active

 '''Receiving (from Miranda, intact):'''[[BR]]

 (11:28:55) jabber: Recv (ssl)(151): <message type="chat"
 to="frank at" id="mir_1055"
 from="olga at"><body>foo:bar baz[[BR]]
 foo\ bar baz[[BR]]
 foo bar:baz

Ticket URL: <http://developer.pidgin.im/ticket/6352#comment:3>
Pidgin <http://pidgin.im>

More information about the Tracker mailing list