[JDEV] Conference messages cut off
temas at box5.net
Wed Sep 26 09:34:51 CDT 2001
That's very interesting, I'll have to look at that a bit harder, but
I'll get jer to put this in for 1.4.2
On Wed, 2001-09-26 at 09:01, Horace Sequeira wrote:
> We have had the same problem running on Solaris 8 using Jabber 1.4.1 and
> Conference 0.4.1
> We have tracked the problem to the function xmlnode_insert_node() in the
> file xmlnode.c of the
> Jabber server.
> The fix to the problem is to change the following statement in the
> function xmlnode_insert_data() :
> xmlnode_insert_cdata(parent, xmlnode_get_data(node),
> This statement will work if the function xmlnode_get_datasz() is evaluated
> xmlnode_get_data(). This is clearly not the case on my version of the
> jabber server compiled on Solaris with gcc. The 'C' standard does not
> specify the order of evaluation of functions/expresssions that are passed
> as parameters to a function, it only says that they will be evaluated -
> the order of which is implementation dependent (which explains why it
> works on some systems).
> To fix the problem we changed the statement to the following:
> int dataSize
> dataSize = xmlnode_get_datasz(node);
> xmlnode_insert_cdata(parent, xmlnode_get_data(node), dataSize);
> to ensures that xmlnode_get_datasz() is evaluated first.
> This works for us; if there is another fix for this please let us know.
> Jens Alfke wrote:
> > On Thursday, September 20, 2001, at 10:35 PM, jabber at msg.net wrote:
> > > I am also getting conference messages truncated, often at the first
> > > byte
> > > of a one-liner. Using JabberIM I will type something like:
> > >
> > > I see this problem too, looks like it is a bug in the server?
> > >
> > > And what the participants see and what I get echoed back is just:
> > >
> > > I
> > I haven't seen this exact behavior. What I see is that messages get
> > truncated at XML metacharacters ( <, >, ', ", &). In my client I
> > preprocess messages to convert these to more innocuous characters such
> > as curly quotes.
> > --Jens
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 232 bytes
Desc: not available
More information about the JDev