Bug#472181: librpc-xml-perl: RPC::XML support for empty base64 data

Bas van Sisseren bas at quarantainenet.nl
Sat Mar 22 14:38:51 UTC 2008

Package: librpc-xml-perl
Version: 0.59-1
Severity: normal

The RPC::XML package returns an error when encoding or decoding empty
strings of type base64.

Example code:
 use strict;
 use RPC::XML;
 my $b64 = RPC::XML::base64->new('');
 if ($RPC::XML::ERROR) {
  print "xmlrpc error: ".$RPC::XML::ERROR."\n";
 } else {
  print "encoded as: '".$b64->as_string."'\n";

Returns with:
 xmlrpc error: RPC::XML::base64::new: Must be called with non-null
 data or an open, seekable filehandle

 encoded as: '<base64></base64>'


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages librpc-xml-perl depends on:
ii  libwww-perl                 5.805-1      WWW client/server library for Perl
ii  libxml-parser-perl          2.34-4.2     Perl module for parsing XML files
ii  perl                        5.8.8-7etch1 Larry Wall's Practical Extraction 

librpc-xml-perl recommends no packages.

-- no debconf information

More information about the pkg-perl-maintainers mailing list