{"action":"created","comment":{"url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments/73980165","id":73980165,"diff_hunk":"@@ -0,0 +1,101 @@\n+/*\n+ * Zed Attack Proxy (ZAP) and its related class files.\n+ * \n+ * ZAP is an HTTP/HTTPS proxy for assessing web application security.\n+ * \n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); \n+ * you may not use this file except in compliance with the License. \n+ * You may obtain a copy of the License at \n+ * \n+ *   http://www.apache.org/licenses/LICENSE-2.0 \n+ *   \n+ * Unless required by applicable law or agreed to in writing, software \n+ * distributed under the License is distributed on an \"AS IS\" BASIS, \n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. \n+ * See the License for the specific language governing permissions and \n+ * limitations under the License. \n+ * This file is based on the Paros code file ReportLastScan.java\n+ */\n+package org.zaproxy.zap.extension.exportreport;\n+\n+import java.awt.BorderLayout;\n+import java.awt.FlowLayout;\n+import java.util.ArrayList;\n+\n+import javax.swing.JLabel;\n+import javax.swing.JPanel;\n+import javax.swing.SpringLayout;\n+\n+import org.parosproxy.paros.Constant;\n+import org.zaproxy.zap.extension.exportreport.Utility.DualListBox;\n+import org.zaproxy.zap.extension.exportreport.Utility.SharedFunctions;\n+import org.zaproxy.zap.extension.exportreport.Utility.SpringUtilities;\n+\n+/*\n+ * AUTHOR\t\t:\tGORAN SARENKAPA - JordanGS\n+ * SPONSOR\t\t:\tRYERSON UNIVERSITY\n+ */\n+\n+public class PanelAlertDetails extends JPanel\n+{\n+\tprivate DualListBox\t\t\t\tdual\t\t\t= null;\n+\tprivate ExtensionExportReport\textension\t\t= null;\n+\tArrayList<String>\t\t\t\tlist\t\t\t= null;\n+\tString[]\t\t\t\t\t\tarr;\n+\tArrayList<String>\t\t\t\tlistExcluded\t= null;\n+\tString[]\t\t\t\t\t\tarrExcluded;\n+\n+\tpublic PanelAlertDetails(ExtensionExportReport extension, ArrayList<String> list, ArrayList<String> listExcluded)\n+\t{\n+\t\tthis.extension = extension;\n+\t\tthis.list = list;\n+\t\tthis.arr = new String[this.list.toArray().length];\n+\t\tthis.listExcluded = listExcluded;\n+\t\tthis.arrExcluded = new String[this.listExcluded.toArray().length];\n+\n+\t\tinitialize();\n+\t}\n+\n+\tprivate void initialize()\n+\t{\n+\t\tString strLabel = Constant.messages.getString(\"exportreport.menu.details.label\");\n+\t\tJLabel lblLabel = null;","path":"src/org/zaproxy/zap/extension/exportreport/PanelAlertDetails.java","position":62,"original_position":62,"commit_id":"b51f8a2dd5a53834f413bbe9247d5f76829c7c9d","original_commit_id":"b51f8a2dd5a53834f413bbe9247d5f76829c7c9d","user":{"login":"JordanGS","id":17622264,"avatar_url":"https://avatars.githubusercontent.com/u/17622264?v=3","gravatar_id":"","url":"https://api.github.com/users/JordanGS","html_url":"https://github.com/JordanGS","followers_url":"https://api.github.com/users/JordanGS/followers","following_url":"https://api.github.com/users/JordanGS/following{/other_user}","gists_url":"https://api.github.com/users/JordanGS/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanGS/subscriptions","organizations_url":"https://api.github.com/users/JordanGS/orgs","repos_url":"https://api.github.com/users/JordanGS/repos","events_url":"https://api.github.com/users/JordanGS/events{/privacy}","received_events_url":"https://api.github.com/users/JordanGS/received_events","type":"User","site_admin":false},"body":"It is being used `lblLabel = SharedFunctions.createLabel(top, lblLabel, strLabel, SharedFunctions.getTitleFont());`","created_at":"2016-08-09T00:21:27Z","updated_at":"2016-08-09T00:21:27Z","html_url":"https://github.com/zaproxy/zap-extensions/pull/363#discussion_r73980165","pull_request_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/363","_links":{"self":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/comments/73980165"},"html":{"href":"https://github.com/zaproxy/zap-extensions/pull/363#discussion_r73980165"},"pull_request":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/363"}}},"pull_request":{"url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/363","id":69919658,"html_url":"https://github.com/zaproxy/zap-extensions/pull/363","diff_url":"https://github.com/zaproxy/zap-extensions/pull/363.diff","patch_url":"https://github.com/zaproxy/zap-extensions/pull/363.patch","issue_url":"https://api.github.com/repos/zaproxy/zap-extensions/issues/363","number":363,"state":"open","locked":false,"title":"Export Report v1.0 for Alpha Commit","user":{"login":"JordanGS","id":17622264,"avatar_url":"https://avatars.githubusercontent.com/u/17622264?v=3","gravatar_id":"","url":"https://api.github.com/users/JordanGS","html_url":"https://github.com/JordanGS","followers_url":"https://api.github.com/users/JordanGS/followers","following_url":"https://api.github.com/users/JordanGS/following{/other_user}","gists_url":"https://api.github.com/users/JordanGS/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanGS/subscriptions","organizations_url":"https://api.github.com/users/JordanGS/orgs","repos_url":"https://api.github.com/users/JordanGS/repos","events_url":"https://api.github.com/users/JordanGS/events{/privacy}","received_events_url":"https://api.github.com/users/JordanGS/received_events","type":"User","site_admin":false},"body":"**Export Report v1.0 for Alpha Commit**\r\n\r\nCommitting plugin Export Report v1.0 to the alpha branch along with an updated build.xml file, json library file and .classpath file.\r\n\r\n1) Move package info under lisence blurb\r\n2) Replaced all wildcard imports with specific ones except for SpringUtilities.java\r\n3) Fixed usage of MessageFormat.format, removed new Object[] {path} usage\r\n4) Messages displayed in the GUI are now internationalized messages from Messages.properties file\r\n5) Changed package name to lower case along with message properties\r\n6) Removed some excess commenting, some still left and is to be removed in the future\r\n7) Removed Double semi-colon\r\n8) Removed auto generated constructor\r\n9) Removed unnecessary comments, only kept AUTHOR and SPONSOR. Ask about JavaDoc\r\n10) Created constant for \".dump.xml\"\r\n11) Created constant for \"UTF-8\"\r\n12) Used the variable NAME to set the name during initialization.\r\n13) Printed message to logger saying the file could not be removed, also considering a gui message but deferring that for now.\r\n14) Changed ImageIcon error message to go to logger and not system.err.println.\r\n15) Changed the date format \"EEE, d MMM yyyy HH:mm:ss z(Z)\" to a constant.\r\n16) Removed 2 occurances of e.printStackTrace() and sent the message to the logger.\r\n17) If Arial is unavailable then use the system default for the label.\r\n18) Removed menu.report.html.generate and replaced it with exportreport.menu.export.label\r\n19) Bundle the oracle license notice in the add-on.\r\n20) Include json library as part of the add on and the alpha build path.\r\n21) Do not touch the date at the moment.\r\n22) Removed redundant toString calls.\r\n23) Removed redundant variable declarations.\r\n24) Changes some message dialog to warning dialogs\r\n25) Changed JOptionPage show message to standard zap show message\r\n26) Removed the todo file and let Git track history and change requests.\r\n27) AlertItem.java replaced Artists with Placeholder, this is a placeholder for a 2.0 addition.\r\n28) Added public identified to class FileType\r\n\r\n**Referencing Pull Request**: #362 ","created_at":"2016-05-12T22:52:15Z","updated_at":"2016-08-09T00:21:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0c8d66f514e2c4dd427227ea70b17d082cbc646d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/363/commits","review_comments_url":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/363/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/363/comments","statuses_url":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/b51f8a2dd5a53834f413bbe9247d5f76829c7c9d","head":{"label":"JordanGS:alpha","ref":"alpha","sha":"b51f8a2dd5a53834f413bbe9247d5f76829c7c9d","user":{"login":"JordanGS","id":17622264,"avatar_url":"https://avatars.githubusercontent.com/u/17622264?v=3","gravatar_id":"","url":"https://api.github.com/users/JordanGS","html_url":"https://github.com/JordanGS","followers_url":"https://api.github.com/users/JordanGS/followers","following_url":"https://api.github.com/users/JordanGS/following{/other_user}","gists_url":"https://api.github.com/users/JordanGS/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanGS/subscriptions","organizations_url":"https://api.github.com/users/JordanGS/orgs","repos_url":"https://api.github.com/users/JordanGS/repos","events_url":"https://api.github.com/users/JordanGS/events{/privacy}","received_events_url":"https://api.github.com/users/JordanGS/received_events","type":"User","site_admin":false},"repo":{"id":58662717,"name":"zap-extensions","full_name":"JordanGS/zap-extensions","owner":{"login":"JordanGS","id":17622264,"avatar_url":"https://avatars.githubusercontent.com/u/17622264?v=3","gravatar_id":"","url":"https://api.github.com/users/JordanGS","html_url":"https://github.com/JordanGS","followers_url":"https://api.github.com/users/JordanGS/followers","following_url":"https://api.github.com/users/JordanGS/following{/other_user}","gists_url":"https://api.github.com/users/JordanGS/gists{/gist_id}","starred_url":"https://api.github.com/users/JordanGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JordanGS/subscriptions","organizations_url":"https://api.github.com/users/JordanGS/orgs","repos_url":"https://api.github.com/users/JordanGS/repos","events_url":"https://api.github.com/users/JordanGS/events{/privacy}","received_events_url":"https://api.github.com/users/JordanGS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JordanGS/zap-extensions","description":"OWASP ZAP Add-ons","fork":true,"url":"https://api.github.com/repos/JordanGS/zap-extensions","forks_url":"https://api.github.com/repos/JordanGS/zap-extensions/forks","keys_url":"https://api.github.com/repos/JordanGS/zap-extensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JordanGS/zap-extensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JordanGS/zap-extensions/teams","hooks_url":"https://api.github.com/repos/JordanGS/zap-extensions/hooks","issue_events_url":"https://api.github.com/repos/JordanGS/zap-extensions/issues/events{/number}","events_url":"https://api.github.com/repos/JordanGS/zap-extensions/events","assignees_url":"https://api.github.com/repos/JordanGS/zap-extensions/assignees{/user}","branches_url":"https://api.github.com/repos/JordanGS/zap-extensions/branches{/branch}","tags_url":"https://api.github.com/repos/JordanGS/zap-extensions/tags","blobs_url":"https://api.github.com/repos/JordanGS/zap-extensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JordanGS/zap-extensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JordanGS/zap-extensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/JordanGS/zap-extensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JordanGS/zap-extensions/statuses/{sha}","languages_url":"https://api.github.com/repos/JordanGS/zap-extensions/languages","stargazers_url":"https://api.github.com/repos/JordanGS/zap-extensions/stargazers","contributors_url":"https://api.github.com/repos/JordanGS/zap-extensions/contributors","subscribers_url":"https://api.github.com/repos/JordanGS/zap-extensions/subscribers","subscription_url":"https://api.github.com/repos/JordanGS/zap-extensions/subscription","commits_url":"https://api.github.com/repos/JordanGS/zap-extensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/JordanGS/zap-extensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/JordanGS/zap-extensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/JordanGS/zap-extensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/JordanGS/zap-extensions/contents/{+path}","compare_url":"https://api.github.com/repos/JordanGS/zap-extensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JordanGS/zap-extensions/merges","archive_url":"https://api.github.com/repos/JordanGS/zap-extensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JordanGS/zap-extensions/downloads","issues_url":"https://api.github.com/repos/JordanGS/zap-extensions/issues{/number}","pulls_url":"https://api.github.com/repos/JordanGS/zap-extensions/pulls{/number}","milestones_url":"https://api.github.com/repos/JordanGS/zap-extensions/milestones{/number}","notifications_url":"https://api.github.com/repos/JordanGS/zap-extensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JordanGS/zap-extensions/labels{/name}","releases_url":"https://api.github.com/repos/JordanGS/zap-extensions/releases{/id}","deployments_url":"https://api.github.com/repos/JordanGS/zap-extensions/deployments","created_at":"2016-05-12T17:30:31Z","updated_at":"2016-05-12T17:30:41Z","pushed_at":"2016-05-12T22:26:28Z","git_url":"git://github.com/JordanGS/zap-extensions.git","ssh_url":"git@github.com:JordanGS/zap-extensions.git","clone_url":"https://github.com/JordanGS/zap-extensions.git","svn_url":"https://github.com/JordanGS/zap-extensions","homepage":"","size":642262,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":true,"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":"ef612e038265cb0cb3e14255fde115bfa4748fb9","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-08-07T02:52:11Z","pushed_at":"2016-08-08T00:08:23Z","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":711833,"stargazers_count":86,"watchers_count":86,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":100,"mirror_url":null,"open_issues_count":14,"forks":100,"open_issues":14,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/363"},"html":{"href":"https://github.com/zaproxy/zap-extensions/pull/363"},"issue":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/issues/363"},"comments":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/issues/363/comments"},"review_comments":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/pulls/363/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/363/commits"},"statuses":{"href":"https://api.github.com/repos/zaproxy/zap-extensions/statuses/b51f8a2dd5a53834f413bbe9247d5f76829c7c9d"}}}}
{"actor":{"display_login":"JordanGS"}}