Subject: | Add support for empty base64 data |
Hi there:
I'm forwarding this bug on behalf of a Debian user. The original bug
text (which follows) can be found here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=472181
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
Expected:
encoded as: '<base64></base64>'