Menu

#48 ConnectionBean - DisableHeader problem

jabberbeans_backend
open
nobody
None
5
2013-02-19
2002-03-05
Anonymous
No

Hi,

Just found a bug (and how to correct it) in the
ConnectionBean.
I'm using the latest CVS version of the classes.

I'm testing the server side classes, which use the
ConnectionBean.disableStreamHeader() function.

The bug is in the connect(inpustream, outputstream)
function at line 269.

There is :

if(!DisableAutoHeader)
{
...
}

if(sessionID != null)
{
...
}
else
{
throw new ConnectException("Session ID NULL.");
}

This isn't functioning because with
DisableAutoHeader=true, the SessionID is null and an
exception is thrown, whereas this is normal !

The test should be :

There is :

if(!DisableAutoHeader)
{
...
if(sessionID != null)
{
...
}
else
{
throw new ConnectException("Session ID NULL.");
}
}

This works much better this way :-)
There's also a handshake problem on which I'm
currently working.

Discussion


Log in to post a comment.