[Mon-devel] mon-client warning and escaping data problems
Brought to you by:
trockij
From: Ed R. <er...@pa...> - 2005-02-17 18:35:36
|
I'm having some weird problems with my Mon upgrade attempt. I'm using Mon 1.1.0pre1, Mon::Client-1.000, an older mon-cgi (1.5?), and perl5.005, When I start up, there are a lot of error messages in my test environment. All of the error messages displayed by mon.cgi in the browser interface have their white space warped into "20", like this: webserver: connection20refused Also, the failure details are listed in mon.cgi as "0a" when there are no details rather than the usual "<Not Specified>". Furthermore - ack doesn't work in mon.cgi. The CGI responds that the service was ACK'd successfully, but further inspection shows that it wasn't. The display problems go away when I stop using mod_perl (argh!) for mon.cgi. But ACK is still broken. I'll upgrade to the current mon.cgi soon and see how it compares. Meanwhile, when I run one of my custom client apps, I get warning messages when running certain Mon::Client functions. Here's a walkback of one of them: Use of uninitialized value at /usr/local/lib/site_perl/Mon/Client.pm line 1676, <GEN0> chunk 162. Mon::Client::_un_esc_str() called at /usr/local/lib/site_perl/Mon/Client.pm line 596 Mon::Client::list_descriptions('Mon::Client=HASH(0x32d3d4)') called at /usr/local/mon/monocle line 192 When I try my client again under Perl 5.6.1, I get this additional message Use of uninitialized value in substitution (s///) at /usr/local/lib/site_perl/Mon/Client.pm line 1676, <GEN0> line 163. The offending code in Mon::Client is: 1673 sub _un_esc_str { 1674 my $str = shift; 1675 1676 $str =~ s{\\([0-9a-f]{2})}{chr(hex($1))}eg; 1677 1678 $str; I suspect these things are related (as the 20 stuff in my CGI output is clearly an escaping problem), but I'm at a loss to say how. |