[Pidgin] #16252: Pidgin can't handle XML namespaces in message history

Pidgin trac at pidgin.im
Wed May 28 16:37:27 EDT 2014


#16252: Pidgin can't handle XML namespaces in message history
-------------------------+-------------------------------------------------
 Reporter:  __kdex       |      Owner:  deryni
     Type:  defect       |     Status:  new
Milestone:               |  Component:  XMPP
  Version:  2.10.9       |   Keywords:  xmpp jabber history log xml html
                         |  xhtml-im xhtml message history handle namespace
                         |  namespaces
-------------------------+-------------------------------------------------
 In XMPP stanzas, Pidgin will (on receiving the message) '''display''' the
 following stanza as "Hi" in a chat window.


 {{{
 <message type="chat" to="user2 at example.com" from="user1 at example.com"
 id="aaeebb00-0bdd-4266-96ee-daf32bc24efa-2B">
       <body>
             Hi
       </body>
       <html xmlns="http://jabber.org/protocol/xhtml-im">
            <body xmlns="http://www.w3.org/1999/xhtml">
                 <p>Hi</p>
            </body>
       </html>
 </message>
 }}}

 When the user views the chat '''history''', however, the message goes down
 as:


 {{{
 <html xmlns='http://jabber.org/protocol/xhtml-im'>Hi
 }}}

 Note that for some obscure reason, the XML namespace from the HTML tag is
 included although it's not part of the message.

 This bug causes plugins such as "'''History'''" to misbehave when trying
 to view the log of a previous conversation by opening up a buddy's chat
 window.

-- 
Ticket URL: <https://developer.pidgin.im/ticket/16252>
Pidgin <https://pidgin.im>
Pidgin


More information about the Tracker mailing list