{"action":"opened","issue":{"url":"https://api.github.com/repos/zaproxy/zaproxy/issues/2108","labels_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/2108/labels{/name}","comments_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/2108/comments","events_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/2108/events","html_url":"https://github.com/zaproxy/zaproxy/issues/2108","id":120769102,"number":2108,"title":"Regression in 2.4.3: Spider does not spider when called from API","user":{"login":"continuumsecurity","id":1478907,"avatar_url":"https://avatars.githubusercontent.com/u/1478907?v=3","gravatar_id":"","url":"https://api.github.com/users/continuumsecurity","html_url":"https://github.com/continuumsecurity","followers_url":"https://api.github.com/users/continuumsecurity/followers","following_url":"https://api.github.com/users/continuumsecurity/following{/other_user}","gists_url":"https://api.github.com/users/continuumsecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/continuumsecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/continuumsecurity/subscriptions","organizations_url":"https://api.github.com/users/continuumsecurity/orgs","repos_url":"https://api.github.com/users/continuumsecurity/repos","events_url":"https://api.github.com/users/continuumsecurity/events{/privacy}","received_events_url":"https://api.github.com/users/continuumsecurity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-07T13:02:31Z","updated_at":"2015-12-07T13:02:31Z","closed_at":null,"body":"In 2.4.3:\r\nHave to specify a context name when calling spider.scan from the API, if no context is entered then ZAP responds with \"Does not exist\".\r\n\r\nTo workaround this, I entered a context of \"Default Context\"\r\n1. Enter context of \"Default Context\",\r\n2. enter the API key \r\n4. enter true for recurse\r\n3. and the URL: http://localhost:/9110/ropeytasks\r\n\r\nThe API request looks like this:\r\nhttp://zap/JSON/spider/action/scan/?zapapiformat=JSON&apikey=apisecret&url=http%3A%2F%2Flocalhost%3A9110%2Fropeytasks&maxChildren=&recurse=&contextName=Default+Context\r\n\r\nWhen submitting this request, the spider does not perform any action, it just immediately changes to FINISHED.  Reading the results from the spider with spider.results returns an empty array:\r\n{\"results\":[]}\r\n\r\nPerforming these exact same actions in 2.4.0 worked (which did not request a context name), and the spider ran and produced results.\r\n\r\nIn case this had to do with recurse and maxchildren, I set both to 10 and resubmitted the request, with the same empty results list.\r\n"}}