{"action":"closed","number":335,"pull_request":{"url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/335","id":68300134,"html_url":"https://github.com/zaproxy/zap-extensions/pull/335","diff_url":"https://github.com/zaproxy/zap-extensions/pull/335.diff","patch_url":"https://github.com/zaproxy/zap-extensions/pull/335.patch","issue_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/335","number":335,"state":"closed","locked":false,"title":"sse: keep database up-to-date in EventStreamPanel","user":{"login":"thc202","id":4639210,"avatar_url":"https://avatars.githubusercontent.com/u/4639210?v=3","gravatar_id":"","url":"https://api.github.com/users/thc202","html_url":"https://github.com/thc202","followers_url":"https://api.github.com/users/thc202/followers","following_url":"https://api.github.com/users/thc202/following{/other_user}","gists_url":"https://api.github.com/users/thc202/gists{/gist_id}","starred_url":"https://api.github.com/users/thc202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thc202/subscriptions","organizations_url":"https://api.github.com/users/thc202/orgs","repos_url":"https://api.github.com/users/thc202/repos","events_url":"https://api.github.com/users/thc202/events{/privacy}","received_events_url":"https://api.github.com/users/thc202/received_events","type":"User","site_admin":false},"body":"With the changes done to core, zaproxy/zaproxy#2428, the database table\r\nthat was kept in the class EventStreamPanel is no longer up-to-date with\r\nthe latest opened database (since old listeners are removed when the\r\ndatabase is closed) leading to exceptions (like,\r\nSQLNonTransientConnectionException: connection exception: closed).\r\n\r\nChange class ExtensionServerSentEvents to update the database in\r\nEventStreamPanel when the database is open, to always have the latest\r\ndatabase table (the one with active connection).\r\n\r\nFix add-on name in build.xml for its deploying target.\r\n\r\nBump version and remove old changes in ZapAddOn.xml file.","created_at":"2016-04-28T22:22:01Z","updated_at":"2016-04-29T11:45:13Z","closed_at":"2016-04-29T11:45:13Z","merged_at":"2016-04-29T11:45:13Z","merge_commit_sha":"9af166fa2d97f794e8905c98b70ab330915eae43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/335/commits","review_comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/335/comments","review_comment_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/335/comments","statuses_url":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/c6fd5d3455a6c0a2f696b2600ebfddd70162cd2f","head":{"label":"thc202:sse-incorrect-db-access","ref":"sse-incorrect-db-access","sha":"c6fd5d3455a6c0a2f696b2600ebfddd70162cd2f","user":{"login":"thc202","id":4639210,"avatar_url":"https://avatars.githubusercontent.com/u/4639210?v=3","gravatar_id":"","url":"https://api.github.com/users/thc202","html_url":"https://github.com/thc202","followers_url":"https://api.github.com/users/thc202/followers","following_url":"https://api.github.com/users/thc202/following{/other_user}","gists_url":"https://api.github.com/users/thc202/gists{/gist_id}","starred_url":"https://api.github.com/users/thc202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thc202/subscriptions","organizations_url":"https://api.github.com/users/thc202/orgs","repos_url":"https://api.github.com/users/thc202/repos","events_url":"https://api.github.com/users/thc202/events{/privacy}","received_events_url":"https://api.github.com/users/thc202/received_events","type":"User","site_admin":false},"repo":{"id":36922225,"name":"zap-extensions","full_name":"thc202/zap-extensions","owner":{"login":"thc202","id":4639210,"avatar_url":"https://avatars.githubusercontent.com/u/4639210?v=3","gravatar_id":"","url":"https://api.github.com/users/thc202","html_url":"https://github.com/thc202","followers_url":"https://api.github.com/users/thc202/followers","following_url":"https://api.github.com/users/thc202/following{/other_user}","gists_url":"https://api.github.com/users/thc202/gists{/gist_id}","starred_url":"https://api.github.com/users/thc202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thc202/subscriptions","organizations_url":"https://api.github.com/users/thc202/orgs","repos_url":"https://api.github.com/users/thc202/repos","events_url":"https://api.github.com/users/thc202/events{/privacy}","received_events_url":"https://api.github.com/users/thc202/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thc202/zap-extensions","description":"OWASP ZAP Add-ons","fork":true,"url":"https://api.github.com/repos/thc202/zap-extensions","forks_url":"https://api.github.com/repos/thc202/zap-extensions/forks","keys_url":"https://api.github.com/repos/thc202/zap-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thc202/zap-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thc202/zap-extensions/teams","hooks_url":"https://api.github.com/repos/thc202/zap-extensions/hooks","issue_events_url":"https://api.github.com/repos/thc202/zap-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/thc202/zap-extensions/events","assignees_url":"https://api.github.com/repos/thc202/zap-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/thc202/zap-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/thc202/zap-extensions/tags","blobs_url":"https://api.github.com/repos/thc202/zap-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thc202/zap-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thc202/zap-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/thc202/zap-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thc202/zap-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/thc202/zap-extensions/languages","stargazers_url":"https://api.github.com/repos/thc202/zap-extensions/stargazers","contributors_url":"https://api.github.com/repos/thc202/zap-extensions/contributors","subscribers_url":"https://api.github.com/repos/thc202/zap-extensions/subscribers","subscription_url":"https://api.github.com/repos/thc202/zap-extensions/subscription","commits_url":"https://api.github.com/repos/thc202/zap-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/thc202/zap-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/thc202/zap-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/thc202/zap-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/thc202/zap-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/thc202/zap-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thc202/zap-extensions/merges","archive_url":"https://api.github.com/repos/thc202/zap-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thc202/zap-extensions/downloads","issues_url":"https://api.github.com/repos/thc202/zap-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/thc202/zap-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/thc202/zap-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/thc202/zap-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thc202/zap-extensions/labels{/name}","releases_url":"https://api.github.com/repos/thc202/zap-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/thc202/zap-extensions/deployments","created_at":"2015-06-05T08:47:17Z","updated_at":"2016-01-22T08:00:25Z","pushed_at":"2016-04-28T22:16:55Z","git_url":"git://github.com/thc202/zap-extensions.git","ssh_url":"git@github.com:thc202/zap-extensions.git","clone_url":"https://github.com/thc202/zap-extensions.git","svn_url":"https://github.com/thc202/zap-extensions","homepage":"","size":641887,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zaproxy:alpha","ref":"alpha","sha":"308cdf86bef1837a6600b9469495a8ce23bb5299","user":{"login":"zaproxy","id":6716868,"avatar_url":"https://avatars.githubusercontent.com/u/6716868?v=3","gravatar_id":"","url":"https://api.github.com/users/zaproxy","html_url":"https://github.com/zaproxy","followers_url":"https://api.github.com/users/zaproxy/followers","following_url":"https://api.github.com/users/zaproxy/following{/other_user}","gists_url":"https://api.github.com/users/zaproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/zaproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaproxy/subscriptions","organizations_url":"https://api.github.com/users/zaproxy/orgs","repos_url":"https://api.github.com/users/zaproxy/repos","events_url":"https://api.github.com/users/zaproxy/events{/privacy}","received_events_url":"https://api.github.com/users/zaproxy/received_events","type":"Organization","site_admin":false},"repo":{"id":35210580,"name":"zap-extensions","full_name":"zaproxy/zap-extensions","owner":{"login":"zaproxy","id":6716868,"avatar_url":"https://avatars.githubusercontent.com/u/6716868?v=3","gravatar_id":"","url":"https://api.github.com/users/zaproxy","html_url":"https://github.com/zaproxy","followers_url":"https://api.github.com/users/zaproxy/followers","following_url":"https://api.github.com/users/zaproxy/following{/other_user}","gists_url":"https://api.github.com/users/zaproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/zaproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaproxy/subscriptions","organizations_url":"https://api.github.com/users/zaproxy/orgs","repos_url":"https://api.github.com/users/zaproxy/repos","events_url":"https://api.github.com/users/zaproxy/events{/privacy}","received_events_url":"https://api.github.com/users/zaproxy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zaproxy/zap-extensions","description":"OWASP ZAP Add-ons","fork":false,"url":"https://api.github.com/repos/zaproxy/zap-extensions","forks_url":"https://api.github.com/repos/zaproxy/zap-extensions/forks","keys_url":"https://api.github.com/repos/zaproxy/zap-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zaproxy/zap-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zaproxy/zap-extensions/teams","hooks_url":"https://api.github.com/repos/zaproxy/zap-extensions/hooks","issue_events_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/zaproxy/zap-extensions/events","assignees_url":"https://api.github.com/repos/zaproxy/zap-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/zaproxy/zap-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/zaproxy/zap-extensions/tags","blobs_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/zaproxy/zap-extensions/languages","stargazers_url":"https://api.github.com/repos/zaproxy/zap-extensions/stargazers","contributors_url":"https://api.github.com/repos/zaproxy/zap-extensions/contributors","subscribers_url":"https://api.github.com/repos/zaproxy/zap-extensions/subscribers","subscription_url":"https://api.github.com/repos/zaproxy/zap-extensions/subscription","commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/zaproxy/zap-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/zaproxy/zap-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zaproxy/zap-extensions/merges","archive_url":"https://api.github.com/repos/zaproxy/zap-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zaproxy/zap-extensions/downloads","issues_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/zaproxy/zap-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/zaproxy/zap-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zaproxy/zap-extensions/labels{/name}","releases_url":"https://api.github.com/repos/zaproxy/zap-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/zaproxy/zap-extensions/deployments","created_at":"2015-05-07T09:17:13Z","updated_at":"2016-04-27T14:37:54Z","pushed_at":"2016-04-29T11:45:13Z","git_url":"git://github.com/zaproxy/zap-extensions.git","ssh_url":"git@github.com:zaproxy/zap-extensions.git","clone_url":"https://github.com/zaproxy/zap-extensions.git","svn_url":"https://github.com/zaproxy/zap-extensions","homepage":"","size":661738,"stargazers_count":61,"watchers_count":61,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":83,"mirror_url":null,"open_issues_count":11,"forks":83,"open_issues":11,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/335"},"html":{"href":"https://github.com/zaproxy/zap-extensions/pull/335"},"issue":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/issues/335"},"comments":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/issues/335/comments"},"review_comments":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/335/comments"},"review_comment":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/335/commits"},"statuses":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/c6fd5d3455a6c0a2f696b2600ebfddd70162cd2f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"psiinon","id":1081115,"avatar_url":"https://avatars.githubusercontent.com/u/1081115?v=3","gravatar_id":"","url":"https://api.github.com/users/psiinon","html_url":"https://github.com/psiinon","followers_url":"https://api.github.com/users/psiinon/followers","following_url":"https://api.github.com/users/psiinon/following{/other_user}","gists_url":"https://api.github.com/users/psiinon/gists{/gist_id}","starred_url":"https://api.github.com/users/psiinon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psiinon/subscriptions","organizations_url":"https://api.github.com/users/psiinon/orgs","repos_url":"https://api.github.com/users/psiinon/repos","events_url":"https://api.github.com/users/psiinon/events{/privacy}","received_events_url":"https://api.github.com/users/psiinon/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":7,"deletions":3,"changed_files":3}}