Thanks, I will try that. On Wednesday, February 20, 2013 8:50:32 PM UTC+2, Jason Swager wrote: > > Ran into the same issue. Adding the "-Dhudson.model.Api.INSECURE=true" > didn't resolve the problem for me either. > > After a bit of poking around, it looks like we have to use POST to send > the parameters, such as the xpath value. Since all my automation is using > GET and passing the parameters along a query string, I'll have to rewrite > it all. For the time being, I've had to revert back to the 1.501 until I > can address all the automation issues. Not 100% about the POST versus > GET... > Jason > > On Wednesday, February 20, 2013 7:17:18 AM UTC-8, ohad shai wrote: >> >> Hi, >> I am using jenkins 1.502. >> since upgrading to that version wget api stopped working for me. >> When I run it in debug I get the following error: >> Exception: primitive XPath result sets forbidden; can use >> -Dhudson.model.Api.INSECURE=true if you run without security >> >> I am running with security, and also tryied to set the property >> recommended, but it did not work. >> my wget command is: >> wget -d -qO- "http://.../job/jobname/55//api/xml?xpath=//userName/text()" >> >> when I run it like that: >> wget -d -qO- "http://.../job/jobname/55//api/xml" >> it is working. >> >> Any idea? >> Thanks, >> Ohad. >> >
-- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
