powered by Jive Software

EnhancedDebugger bug

I have sent from JAJC client an xhtml-formatted message to my program that uses smack.

In Raw Received Packets the whole packet is printed:

<message to=''gogi@localhost/Smack'' type=''chat'' from=''goga@localhost/Just another jabber client''><html xmlns=''http://www.w3.org/TR/xhtml-basic''><body><span style=''font-family: Tahoma;font-size: 10;font-weight: bold;color: #000000;''>bold</span>
<span style=''font-family: Tahoma;font-size: 10;color: #000000;''> </span><span style=''font-family: Tahoma;font-size: 10;font-style: italic;color: #000000;''>italic</span><span style=''font-family: Tahoma;font-size: 10;color: #000000;''> </span>
<span style=''font-family: Tahoma;font-size: 10;text-decoration: underline;color: #000000;''>underlined</span></body></html><body>bold italic underlined</body></message>

But in All Packets tab only cut xml is printed:

<message to="gogi@localhost/Smack" from="goga@localhost/Just another jabber client" type="chat">
  <body>bold italic underlined</body>
  <html xmlns="http://www.w3.org/TR/xhtml-basic">

All css attributes are removed and also only last word of message is shown.

Also there is a strange behavior of both smack debuggers: they stalls sometimes when I make paste of copied text from them.


The problem is that JAJC is not using the correct namespace for sending XHTML messages. From your XML examples I see that JAJC is sending xmlns=’‘http://www.w3.org/TR/xhtml-basic’’ instead of xmlns=’‘http://jabber.org/protocol/xhtml-im’’. Follow this link to learn about valid XML messages to send XHTML http://www.jabber.org/jeps/jep-0071.html.


– Gato

Thanks a lot for your help!