Right, updating to a newer weekly release fixes the problem, without
further changes in plugin's code.
Otherwise, if you can't update and you are able to change the plugin
code, you _also_ need to exclude the "contextname" parameter when it's
null in the Spider.scan method:
if (contextname != null) {
map.put("contextName", contextname);
}
Best regards.
On 20/04/16 14:27, Thiago Porciúncula wrote:
> I mean the actual ZAP, the one you have installed on your machine. I
> believe you're using the latest stable version (2.4.3), and I also
> believe you can fix your issue if you use the latest pre-release version
> (w2016-04-18). What version are you using?
>
> This is a issue related to ZAP itself and its API, so if you update it
> you'll probably have it fixed.
>
> You can check ZAP releases here:
>
https://github.com/zaproxy/zaproxy/releases
>
> On Wednesday, April 20, 2016 at 9:49:59 AM UTC-3, Preeti Jaybhar wrote:
>
> Hi Thiago,
>
> I am not able to understand how to use the latest zap api in the
> plugin's code.
> Also, I have passed /null/ for the /contextname, /but the same error
> is thrown./ /
>
> On Wednesday, April 20, 2016 at 6:05:55 PM UTC+5:30, Thiago
> Porciúncula wrote:
>
> What version of ZAP are you using? I think you might be
> stumbling across some of the issues involving the /contextname/
> can you try invoking the /api.spider.scan/ method passing /null/
> for the /contextname/? I got this idea from this issue here:
>
https://github.com/zaproxy/zaproxy/issues/2303
> <
https://github.com/zaproxy/zaproxy/issues/2303>
>
> But it should work with an empty /contextname/ too. This was the
> that just set the /targetUrl/ parameter. See if that
> <
https://github.com/pdsoftplan/zap-maven-plugin>.
> --
> You received this message because you are subscribed to the Google
> Groups "OWASP ZAP Developer Group" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
zaproxy-devel...@googlegroups.com
> <mailto:
zaproxy-devel...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.