[JDEV] Bug? OOB URLs lost in groupchat messages

Jens Alfke jens at mac.com
Thu Jul 12 11:11:52 CDT 2001


I've been fine-tuning my client's file-transfer (jabber:x:oob) 
implementation, including the ability to send files/URLs in groupchat 
messages. Unfortunately I quickly discovered that the conference server 
often, but not always, removes the contents of the <url> element, i.e. 
the URL itself, when relaying the message. The really weird thing is 
that this consistently happens on one of my machines but not the other, 
even though both are running the identical client binary, nor does it 
matter which of them sent the message or created the chat room.

I've verified this by dumping the raw XML sent/received by the clients 
(though the sample XML below is just something I made up, since I'm 
writing this from home and don't have those logs handy right now. Don't 
flame me if there are syntax errors.)

For example one client might send this:
<message type="groupchat" to="mychat at conf.domain.com">
<body>Everyone, check this out</body>
<x xmlns="jabber:x:oob"><url>http://www.foobar.com</url></x>
</message>

But the other client would receive from the conference server:
<message type="groupchat" from="mychat at conf.domain.com/5789578957239857">
<body>Everyone, check this out</body>
<x xmlns="jabber:x:oob"><url></url></x>
</message>

As a workaround I now have the sender add a duplicate copy of the URL as 
a 'url' attribute of the <url> element, then the receiver tries to find 
this if the body of the <url> is empty.

Is this a known bug? I'm running the 1.4.1 conference server on Solaris.

--Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1681 bytes
Desc: not available
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20010712/b879ec6b/attachment-0002.bin>


More information about the JDev mailing list