[JDEV] Possible bug in Net::Jabber modules

Robert Norris Robert.Norris at its.monash.edu.au
Thu Mar 29 19:49:19 CST 2001


I'm not sure if this is appropriate forum to discuss Net::Jabber, but
its probably a good place to start.

I think I may have uncovered a bug in either Net/Jabber.pm or
Net/Jabber/XDB.pm, but it could be that I'm just misusing them.

I have the following code:

my $xdb = new Net::Jabber::XDB();
my $auth = $xdb->NewData('jabber:iq:auth');

After this, $auth == undef, which is not what I expected.

The NewData method of Net::Jabber::XDB has this line:

return if !exists($Net::Jabber::DELEGATES{data}->{$xmlns});

However, Net/Jabber.pm does not list $DELEGATES{data}, but instead has
$DELEGATES{xdb}.

I think that one of these modules needs to be changed (probably
Net/Jabber.pm, since $DELEGATES{data} would be more consistent with
the naming of the Net::Jabber::Data modules).

Or am I doing something wrong? If so, how should I be doing this? And
is there any good XDB documentation available?

Regards,
Rob.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20010330/8792369b/attachment-0002.pgp>


More information about the JDev mailing list