Subject: | Problem with warning in gen_id |
Date: | Tue, 26 May 2009 13:04:29 -0400 |
To: | bug-SOAP-Lite [...] rt.cpan.org |
From: | Dan Hartman <zol [...] dynamodan.com> |
Hello
Running perl 5.8.8, SOAP::Lite 0.710.08, on a system
Linux dan-devel 2.6.24-23-xen #1 SMP Mon Jan 26 03:09:12 UTC 2009 x86_64
x86_64 x86_64 GNU/Linux
I get a string of messages and warnings like this:
May 22 10:44:08 scp last message repeated 3 times
May 22 10:44:08 scp scpd[1433]: Cannot encode 'value' element as 'hash'.
Will be encoded as 'map' instead
May 22 10:44:08 scp scpd[1433]: Cannot marshall CODE reference at
/usr/lib/perl5/vendor_perl/5.8.8/SOAP/Lite.pm line 3657
May 22 10:44:08 scp last message repeated 4 times
May 22 10:44:08 scp scpd[1433]: Argument
"https://api-prod:********@api-prod.zol.co.zw/inovaw..." isn't numeric
in sprintf at /
usr/lib/perl5/vendor_perl/5.8.8/SOAP/Lite.pm line 1004.
May 22 10:44:08 scp scpd[1433]: Argument
"https://api-prod:********@api-prod.zol.co.zw/inovaw..." isn't numeric
in sprintf at /
usr/lib/perl5/vendor_perl/5.8.8/SOAP/Lite.pm line 1004.
May 22 10:44:08 scp scpd[1433]: Cannot marshall CODE reference at
/usr/lib/perl5/vendor_perl/5.8.8/SOAP/Lite.pm line 3657
May 22 10:44:08 scp scpd[1433]: Argument
"https://api-prod:********@api-prod.zol.co.zw/inovaw..." isn't numeric
in sprintf at /
usr/lib/perl5/vendor_perl/5.8.8/SOAP/Lite.pm line 1004.
May 22 10:44:08 scp scpd[1433]: Argument
"https://api-prod:********@api-prod.zol.co.zw/inovaw..." isn't numeric
in sprintf at /
(The actual password is replaced with ********.)
I'm pretty sure that gen_id is getting called from the `as_map` sub.
But it's a mystery how or why gen_id is getting called with a string
scalar in $_[1]. It seems like $value gets tested to make sure it's
not a scalar before going to gen_id. Bottom line is that we don't want
the password getting written to our error log by the error that's
getting generated.
Dan