[jadmin] 1.4.1 server error - truncating messages when stored offline

Kevin Hollenshead Kevin.C.Hollenshead at mail.sprint.com
Mon Feb 4 12:29:51 CST 2002


Here's a server error I've seen in 1.4.1 (running JUD 0.4 and conference 0.4.1).  I was just able to reproduce it and by checking the debug XML from the JabberIM client, I'm pretty sure it's an offline message storage problem.  I wanted to report them to
see if it's been fixed for 1.4.2.  I'm working on getting a sandbox together with two 1.4.2-test2 servers so I can test but it may be a while before I can get there.

The problem deals with single quotes and offline storage of messages.  I've seen symptoms of this problem before but when I setup a second server here, someone noticed it and I was able to get a simple, reproducible test case.  I have two users, one on
each server, each with the other in his list, and I send a simple message with a single quote in it.  The quote is escaped correctly (') in the message, but when stored in the offline storage for later delivery, the message is truncated at the single
quote (see stored message below).  When this message is sent while the receiver is online, it is received correctly with the single quotes properly escaped (again, with an ').

Anybody know if this has been fixed in 1.4.2 or if a patch exists for 1.4.1?

Thanks,

Kevin Hollenshead
Sprint
Jabber: texasaggie at jabber.com/jabber.org

-------------------------------------------------------------------------------------------------------------------------------------------------

Sent Message:

<message id="jim_id_28" to="texasaggie at jabber.dev.sprint.com" type="chat"><x xmlns="jabber:x:event"><composing/></x><html xmlns="http://www.w3.org/1999/xhtml"><body><span style="font-family: Arial; margin:0; padding:0; font-size: 10pt">Let&apos;s try that
again.</span><br/></body></html><thread>1C0FAF15A153686B07DFE690EA2EF405</thread><body>Let&apos;s try that again.</body></message>

Stored Message (from user's XML file):

<foo xmlns='jabber:x:offline' xdbns='jabber:x:offline'><message id='jim_id_29' to='texasaggie at jabber.dev.sprint.com' type='chat' from='texasaggie at jabber2.dev.sprint.com/Testing'><x xmlns='jabber:x:event'><composing/></x><html
xmlns='http://www.w3.org/1999/xhtml'><body><span style='font-family: Arial; margin:0; padding:0; font-size: 10pt'>Let</span><br/></body></html><thread>1C0FAF15A153686B07DFE690EA2EF405</thread><body>Let</body><x xmlns='jabber:x:delay'
from='texasaggie at jabber.dev.sprint.com' stamp='20020204T18:20:42'>Offline Storage</x></message></foo>

Received message (once logged in):

<message id='jim_id_28' to='texasaggie at jabber.dev.sprint.com' type='chat' from='texasaggie at jabber2.dev.sprint.com/Testing'><x xmlns='jabber:x:event'><composing/></x><html xmlns='http://www.w3.org/1999/xhtml'><body><span style='font-family: Arial; margin:0;
padding:0; font-size: 10pt'>Let</span><br/></body></html><thread>1C0FAF15A153686B07DFE690EA2EF405</thread><body>Let</body><x xmlns='jabber:x:delay' from='texasaggie at jabber.dev.sprint.com' stamp='20020204T18:18:04'>Offline Storage</x></message>





More information about the JAdmin mailing list