Subject: | Not correctly escaping / when executing bean methods |
Hello,
I recently upgraded to 1.04 (from an unknown past version) and some of
the scripts that I had written started failing with:
Invalid number of operation arguments. Operation <method name> on <bean>
requires X parameters, not X as given.
I did a packet capture and noticed that when preforming the GET to the
jolokia instance, / is used to separate the arguments. In 2 cases I have
/'s in my arguments.
In one case I have a string with some /, if I substitute the / with
/ everything works ok.
In another case I have some xml defined as a string, substituting the /
gets the the correct number of params called, but the xml fails to be
correctly parsed by the bean, leading me to thing there is more escaping
that is not being done correctly.
I am using something like:
$p1 = "07/17/1980"
$jmx = new JMX::Jmx4Perl(url => $url, product => "jboss");
$value = $jmx->execute($mbean,$operation,$p1);
print $value;
Thanks!