Adium

Ticket #8970 (new defect)

Opened 3 years ago

Last modified 22 months ago

Link formatting in XHTML-IM (XEP-0071)

Reported by: stpeter Owned by: nobody
Milestone: Adium bugs Component: Service/Jabber (XMPP)
Version: Severity: normal
Keywords: Cc:
Patch Status:

Description (last modified by evands) (diff)

Adium (using libpurple 2.3.1) does not properly format links in XHTML-IM according to XEP-0071. In particular it sends the link like this:

<message from="sender" type="chat" to="recipient" id="foo" >
<body>http://www.example.com/</body>
<html xmlns="http://jabber.org/protocol/xhtml-im">
<body xmlns="http://www.w3.org/1999/xhtml">http://www.example.com/</body>
</html>
</message>

However, some Jabber clients will not treat the link as clickable because it is not formatted as a link in the XHTML-IM. The proper formatting is:

<message from="sender" type="chat" to="recipient" id="foo" >
<body>http://www.example.com/</body>
<html xmlns="http://jabber.org/protocol/xhtml-im">
<body xmlns="http://www.w3.org/1999/xhtml">
  <a href='http://www.example.com/'>http://www.example.com/</a>
</body>
</html>
</message>

For details, see Business Rule #10 in Section 8 of XEP-0071:

 http://www.xmpp.org/extensions/xep-0071.html#bizrules

Thanks!

/psa

Change History

  Changed 3 years ago by stpeter

Sorry, Trac formatted the XML strangely (put the closing message tag at the bottom of the post for some unknown reason). The proper XML is this:

<message from="sender" type="chat" to="recipient" id="foo"> <body> http://www.example.com/</body> <html xmlns=" http://jabber.org/protocol/xhtml-im"> <body xmlns=" http://www.w3.org/1999/xhtml"> <a href=' http://www.example.com/'> http://www.example.com/</a> </body> </html> </message>

  Changed 3 years ago by zacw

For future reference, you can also wrap code in {{{ and }}} to stop trac from processing it and wrap it in <pre>..</pre>.

  Changed 3 years ago by evands

  • description modified (diff)

  Changed 2 years ago by jas8522

  • milestone set to Good idea for "later"

  Changed 2 years ago by Robby

  • component changed from Adium Core to Jabber

follow-up: ↓ 7   Changed 2 years ago by djmori

in reply to: ↑ 6   Changed 23 months ago by spike411

I have encountered the same problem with the current stable, that is Adium 1.3.1.

From my observation:

  • The problem is only with ordinary 1 to 1 XMPP chats.
  • XMPP MUC gets links linkified correctly.
  • In any case, the link gets “linkified” properly in my view.

See  http://paste.jabbim.cz/2434 (1 to 1 chat) and  http://paste.jabbim.cz/2435 (multi-user chat).

This clearly is not a critical problem, although a bit annoying to other users and might give Adium a bad name as poorly behaving client in their eyes.

  Changed 22 months ago by Robby

  • milestone changed from Good idea for "later" to Adium bugs
Note: See TracTickets for help on using tickets.