{"action":"closed","issue":{"url":"https://api.github.com/repos/zaproxy/zaproxy/issues/4924","repository_url":"https://api.github.com/repos/zaproxy/zaproxy","labels_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/4924/labels{/name}","comments_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/4924/comments","events_url":"https://api.github.com/repos/zaproxy/zaproxy/issues/4924/events","html_url":"https://github.com/zaproxy/zaproxy/issues/4924","id":350563143,"node_id":"MDU6SXNzdWUzNTA1NjMxNDM=","number":4924,"title":"CacheableScanner: NumberFormatException","user":{"login":"kingthorin","id":7570458,"node_id":"MDQ6VXNlcjc1NzA0NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/7570458?v=4","gravatar_id":"","url":"https://api.github.com/users/kingthorin","html_url":"https://github.com/kingthorin","followers_url":"https://api.github.com/users/kingthorin/followers","following_url":"https://api.github.com/users/kingthorin/following{/other_user}","gists_url":"https://api.github.com/users/kingthorin/gists{/gist_id}","starred_url":"https://api.github.com/users/kingthorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kingthorin/subscriptions","organizations_url":"https://api.github.com/users/kingthorin/orgs","repos_url":"https://api.github.com/users/kingthorin/repos","events_url":"https://api.github.com/users/kingthorin/events{/privacy}","received_events_url":"https://api.github.com/users/kingthorin/received_events","type":"User","site_admin":false},"labels":[{"id":255949244,"node_id":"MDU6TGFiZWwyNTU5NDkyNDQ=","url":"https://api.github.com/repos/zaproxy/zaproxy/labels/add-on","name":"add-on","color":"006b75","default":false},{"id":220063774,"node_id":"MDU6TGFiZWwyMjAwNjM3NzQ=","url":"https://api.github.com/repos/zaproxy/zaproxy/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-14T19:19:10Z","updated_at":"2018-08-15T12:11:13Z","closed_at":"2018-08-15T12:11:13Z","author_association":"MEMBER","body":"**Describe the bug**\r\nWith a long max-age `Cache-Control: max-age=7776000,private` the CacheableScanner maythrow an NumberFormatException:\r\n```\r\n8079425 [ZAP-PassiveScanner] ERROR org.zaproxy.zap.extension.pscanrulesAlpha.CacheableScanner  - An error occurred while checking a URI for cacheability\r\njava.lang.NumberFormatException: For input string: \"7776000,private\"\r\n\tat java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)\r\n\tat java.lang.Long.parseLong(Long.java:589)\r\n\tat java.lang.Long.parseLong(Long.java:631)\r\n\tat org.zaproxy.zap.extension.pscanrulesAlpha.CacheableScanner.scanHttpResponseReceive(CacheableScanner.java:410)\r\n\tat org.zaproxy.zap.extension.pscan.PassiveScanThread.run(PassiveScanThread.java:166)\r\n```\r\n\r\n**Software versions**\r\n - ZAP: DEV\r\n - Add-on: Passive Scan Rules Alpha 21\r\n - OS: Win7\r\n - Java: JDK 1.8.0_171"}}
{"actor":{"display_login":"kingthorin"}}