theratpack / grails-zap-security-tests-plugin

Grails plugin to run security tests using the OWASP's Zed Attack Proxy
6 stars 4 forks source link

Need a slash at line 48 of _ZapSecurityTests.groovy #5

Open evanden opened 10 years ago

evanden commented 10 years ago

I'm running grails 2.3.5 and I was getting the error "java.net.UnknownHostException: C". To fix this I had to change line 48 of _ZapSecurityTests from:

zapConfig = new ConfigSlurper().parse(new URL("file://${configPath}"))

to:

zapConfig = new ConfigSlurper().parse(new URL("file:///${configPath}"))

to make it work (note the extra slash after 'file'). I think new File("$configPath").toURI() also works but I haven't tested it. Otherwise great plugin. Works great for me otherwise!