Opened 5 years ago

Last modified 5 years ago

#16252 new defect

Pidgin can't handle XML namespaces in message history

Reported by: __kdex Owned by: deryni
Milestone: Component: XMPP
Version: 2.10.9 Keywords: xmpp jabber history log xml html xhtml-im xhtml message history handle namespace namespaces
Cc:

Description

In XMPP stanzas, Pidgin will (on receiving the message) display the following stanza as "Hi" in a chat window.

<message type="chat" to="user2@example.com" from="user1@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.

Change History (1)

comment:1 Changed 5 years ago by __kdex

Note that this happens neither for

<html xmlns="">

nor for

<html>
Note: See TracTickets for help on using tickets.
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!