[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

Comment:

 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
 xmlns='urn:xmpp:ping'/></iq>[[BR]]

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

 (11:00:54) jabber: Sending (ssl): <message type='chat' id='purple2e6a4a05'
 to='jchatham at 127.0.0.1'><x
 xmlns='jabber:x:event'><composing/></x><composing
 xmlns='http://jabber.org/protocol/chatstates'/></message>[[BR]]

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

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

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

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

 (11:06:11) jabber: Recv (ssl)(163): <message type="chat"
 id="purpleeccc12e9" to="frank at 127.0.0.1/Work"
 from="jchatham at 127.0.0.1/Gaim"><active
 xmlns="http://jabber.org/protocol/chatstates"/></message>

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

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

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


More information about the Tracker mailing list