Package: libanyevent-xmpp-perl / 0.52-1

Metadata

Package Version Patches format
libanyevent-xmpp-perl 0.52-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
1001_use_Digest SHA.patch | (download)

lib/AnyEvent/XMPP.pm | 2 1 + 1 - 0 !
lib/AnyEvent/XMPP/Connection.pm | 2 1 + 1 - 0 !
lib/AnyEvent/XMPP/Ext/VCard.pm | 2 1 + 1 - 0 !
lib/AnyEvent/XMPP/Writer.pm | 2 1 + 1 - 0 !
t/z_08_vcard_hook.t | 2 1 + 1 - 0 !
5 files changed, 5 insertions(+), 5 deletions(-)

 use digest::sha instead of digest::sha1.
 .
 Digest::SHA is part of the standard perl distribution since perl v5.9.3
 so this reduces the number of external dependencies by one.
1002_fix_auth_error.patch | (download)

lib/AnyEvent/XMPP/Parser.pm | 7 5 + 2 - 0 !
t/z_parser_error.t | 49 49 + 0 - 0 !
2 files changed, 54 insertions(+), 2 deletions(-)

 fix parser error on auth failure
 When I create a connection that has a bad password, I encounter the
 following error (via warn) after receiving the sasl_error and
 disconnect events:
 .
 parser error: Can't call method "NamespaceEnd" on an undefined value at
 /usr/lib/perl5/vendor_perl/XML/Parser/Expat.pm line 614.
 on [<failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><not-
 authorized/><text>The response provided by the client doesn't
 match the one we calculated.</text></failure>]
 .
 What happens is that the AE::XMPP::Parser object gets rids of its expat
 parser member in disconnect in response to the failure tag, but Expat
 wants to keep parsing the string. I have attached a test file and a
 patch to fix the bug.