{"action":"created","comment":{"url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/comments/190874394","pull_request_review_id":123347158,"id":190874394,"diff_hunk":"@@ -0,0 +1,130 @@\n+/*\n+ * ProActive Parallel Suite(TM):\n+ * The Open Source library for parallel and distributed\n+ * Workflows & Scheduling, Orchestration, Cloud Automation\n+ * and Big Data Analysis on Enterprise Grids & Clouds.\n+ *\n+ * Copyright (c) 2007 - 2017 ActiveEon\n+ * Contact: contact@activeeon.com\n+ *\n+ * This library is free software: you can redistribute it and/or\n+ * modify it under the terms of the GNU Affero General Public License\n+ * as published by the Free Software Foundation: version 3 of\n+ * the License.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License\n+ * along with this program. If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ * If needed, contact us to obtain a release under GPL Version 2 or 3\n+ * or a different license than the AGPL.\n+ */\n+package org.ow2.proactive_grid_cloud_portal.rm.server;\n+\n+import static org.ow2.proactive_grid_cloud_portal.rm.server.NSCreationServlet.MAX_UPLOAD_SIZE;\n+\n+import java.io.*;\n+import java.nio.charset.StandardCharsets;\n+import java.util.Arrays;\n+import java.util.Iterator;\n+import java.util.List;\n+\n+import javax.servlet.http.HttpServlet;\n+import javax.servlet.http.HttpServletRequest;\n+import javax.servlet.http.HttpServletResponse;\n+\n+import org.apache.commons.fileupload.FileItem;\n+import org.apache.commons.fileupload.disk.DiskFileItemFactory;\n+import org.apache.commons.fileupload.servlet.ServletFileUpload;\n+import org.codehaus.jettison.json.JSONException;\n+import org.codehaus.jettison.json.JSONObject;\n+import org.codehaus.jettison.json.JSONWriter;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import com.google.gwt.core.client.GWT;","path":"rm-portal/src/main/java/org/ow2/proactive_grid_cloud_portal/rm/server/ImportNodeSourceServlet.java","position":49,"original_position":49,"commit_id":"4df52ff6b368a0a997635c157861ae4687af929d","original_commit_id":"4df52ff6b368a0a997635c157861ae4687af929d","user":{"login":"sonarqube-activeeon","id":14940028,"avatar_url":"https://avatars1.githubusercontent.com/u/14940028?v=4","gravatar_id":"","url":"https://api.github.com/users/sonarqube-activeeon","html_url":"https://github.com/sonarqube-activeeon","followers_url":"https://api.github.com/users/sonarqube-activeeon/followers","following_url":"https://api.github.com/users/sonarqube-activeeon/following{/other_user}","gists_url":"https://api.github.com/users/sonarqube-activeeon/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarqube-activeeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarqube-activeeon/subscriptions","organizations_url":"https://api.github.com/users/sonarqube-activeeon/orgs","repos_url":"https://api.github.com/users/sonarqube-activeeon/repos","events_url":"https://api.github.com/users/sonarqube-activeeon/events{/privacy}","received_events_url":"https://api.github.com/users/sonarqube-activeeon/received_events","type":"User","site_admin":false},"body":"![MINOR](https://sonarsource.github.io/sonar-github/severity-minor.png 'Severity: MINOR') Remove this unused import 'com.google.gwt.core.client.GWT'. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://sonarcloud.io/coding_rules#rule_key=squid%3AUselessImportCheck)\n","created_at":"2018-05-25T12:11:23Z","updated_at":"2018-05-25T12:11:23Z","html_url":"https://github.com/ow2-proactive/scheduling-portal/pull/449#discussion_r190874394","pull_request_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/449","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/comments/190874394"},"html":{"href":"https://github.com/ow2-proactive/scheduling-portal/pull/449#discussion_r190874394"},"pull_request":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/449"}}},"pull_request":{"url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/449","id":190536721,"html_url":"https://github.com/ow2-proactive/scheduling-portal/pull/449","diff_url":"https://github.com/ow2-proactive/scheduling-portal/pull/449.diff","patch_url":"https://github.com/ow2-proactive/scheduling-portal/pull/449.patch","issue_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/issues/449","number":449,"state":"open","locked":false,"title":"Be able to export an import a node source","user":{"login":"jrochas","id":10711209,"avatar_url":"https://avatars3.githubusercontent.com/u/10711209?v=4","gravatar_id":"","url":"https://api.github.com/users/jrochas","html_url":"https://github.com/jrochas","followers_url":"https://api.github.com/users/jrochas/followers","following_url":"https://api.github.com/users/jrochas/following{/other_user}","gists_url":"https://api.github.com/users/jrochas/gists{/gist_id}","starred_url":"https://api.github.com/users/jrochas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrochas/subscriptions","organizations_url":"https://api.github.com/users/jrochas/orgs","repos_url":"https://api.github.com/users/jrochas/repos","events_url":"https://api.github.com/users/jrochas/events{/privacy}","received_events_url":"https://api.github.com/users/jrochas/received_events","type":"User","site_admin":false},"body":"In Resource Manager, we add the possibility to download a file containing a running node source configuration in JSON format. We also provide the possibility to import a node source from such a file when adding a node source.","created_at":"2018-05-25T09:51:35Z","updated_at":"2018-05-25T12:11:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43d29d240a100b3792579893b319ec923b846c47","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/449/commits","review_comments_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/449/comments","review_comment_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/issues/449/comments","statuses_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/statuses/4df52ff6b368a0a997635c157861ae4687af929d","head":{"label":"jrochas:export-node-source-json","ref":"export-node-source-json","sha":"4df52ff6b368a0a997635c157861ae4687af929d","user":{"login":"jrochas","id":10711209,"avatar_url":"https://avatars3.githubusercontent.com/u/10711209?v=4","gravatar_id":"","url":"https://api.github.com/users/jrochas","html_url":"https://github.com/jrochas","followers_url":"https://api.github.com/users/jrochas/followers","following_url":"https://api.github.com/users/jrochas/following{/other_user}","gists_url":"https://api.github.com/users/jrochas/gists{/gist_id}","starred_url":"https://api.github.com/users/jrochas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrochas/subscriptions","organizations_url":"https://api.github.com/users/jrochas/orgs","repos_url":"https://api.github.com/users/jrochas/repos","events_url":"https://api.github.com/users/jrochas/events{/privacy}","received_events_url":"https://api.github.com/users/jrochas/received_events","type":"User","site_admin":false},"repo":{"id":93499724,"name":"scheduling-portal","full_name":"jrochas/scheduling-portal","owner":{"login":"jrochas","id":10711209,"avatar_url":"https://avatars3.githubusercontent.com/u/10711209?v=4","gravatar_id":"","url":"https://api.github.com/users/jrochas","html_url":"https://github.com/jrochas","followers_url":"https://api.github.com/users/jrochas/followers","following_url":"https://api.github.com/users/jrochas/following{/other_user}","gists_url":"https://api.github.com/users/jrochas/gists{/gist_id}","starred_url":"https://api.github.com/users/jrochas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrochas/subscriptions","organizations_url":"https://api.github.com/users/jrochas/orgs","repos_url":"https://api.github.com/users/jrochas/repos","events_url":"https://api.github.com/users/jrochas/events{/privacy}","received_events_url":"https://api.github.com/users/jrochas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jrochas/scheduling-portal","description":null,"fork":true,"url":"https://api.github.com/repos/jrochas/scheduling-portal","forks_url":"https://api.github.com/repos/jrochas/scheduling-portal/forks","keys_url":"https://api.github.com/repos/jrochas/scheduling-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jrochas/scheduling-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jrochas/scheduling-portal/teams","hooks_url":"https://api.github.com/repos/jrochas/scheduling-portal/hooks","issue_events_url":"https://api.github.com/repos/jrochas/scheduling-portal/issues/events{/number}","events_url":"https://api.github.com/repos/jrochas/scheduling-portal/events","assignees_url":"https://api.github.com/repos/jrochas/scheduling-portal/assignees{/user}","branches_url":"https://api.github.com/repos/jrochas/scheduling-portal/branches{/branch}","tags_url":"https://api.github.com/repos/jrochas/scheduling-portal/tags","blobs_url":"https://api.github.com/repos/jrochas/scheduling-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jrochas/scheduling-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jrochas/scheduling-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/jrochas/scheduling-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jrochas/scheduling-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/jrochas/scheduling-portal/languages","stargazers_url":"https://api.github.com/repos/jrochas/scheduling-portal/stargazers","contributors_url":"https://api.github.com/repos/jrochas/scheduling-portal/contributors","subscribers_url":"https://api.github.com/repos/jrochas/scheduling-portal/subscribers","subscription_url":"https://api.github.com/repos/jrochas/scheduling-portal/subscription","commits_url":"https://api.github.com/repos/jrochas/scheduling-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/jrochas/scheduling-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/jrochas/scheduling-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/jrochas/scheduling-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/jrochas/scheduling-portal/contents/{+path}","compare_url":"https://api.github.com/repos/jrochas/scheduling-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jrochas/scheduling-portal/merges","archive_url":"https://api.github.com/repos/jrochas/scheduling-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jrochas/scheduling-portal/downloads","issues_url":"https://api.github.com/repos/jrochas/scheduling-portal/issues{/number}","pulls_url":"https://api.github.com/repos/jrochas/scheduling-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/jrochas/scheduling-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/jrochas/scheduling-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jrochas/scheduling-portal/labels{/name}","releases_url":"https://api.github.com/repos/jrochas/scheduling-portal/releases{/id}","deployments_url":"https://api.github.com/repos/jrochas/scheduling-portal/deployments","created_at":"2017-06-06T09:18:57Z","updated_at":"2018-05-14T08:48:49Z","pushed_at":"2018-05-25T12:01:21Z","git_url":"git://github.com/jrochas/scheduling-portal.git","ssh_url":"git@github.com:jrochas/scheduling-portal.git","clone_url":"https://github.com/jrochas/scheduling-portal.git","svn_url":"https://github.com/jrochas/scheduling-portal","homepage":"http://try.activeeon.com","size":118984,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ow2-proactive:master","ref":"master","sha":"5f0c8935b4cac208fbb4c42b5f57e3763564f809","user":{"login":"ow2-proactive","id":11553998,"avatar_url":"https://avatars1.githubusercontent.com/u/11553998?v=4","gravatar_id":"","url":"https://api.github.com/users/ow2-proactive","html_url":"https://github.com/ow2-proactive","followers_url":"https://api.github.com/users/ow2-proactive/followers","following_url":"https://api.github.com/users/ow2-proactive/following{/other_user}","gists_url":"https://api.github.com/users/ow2-proactive/gists{/gist_id}","starred_url":"https://api.github.com/users/ow2-proactive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ow2-proactive/subscriptions","organizations_url":"https://api.github.com/users/ow2-proactive/orgs","repos_url":"https://api.github.com/users/ow2-proactive/repos","events_url":"https://api.github.com/users/ow2-proactive/events{/privacy}","received_events_url":"https://api.github.com/users/ow2-proactive/received_events","type":"Organization","site_admin":false},"repo":{"id":35725080,"name":"scheduling-portal","full_name":"ow2-proactive/scheduling-portal","owner":{"login":"ow2-proactive","id":11553998,"avatar_url":"https://avatars1.githubusercontent.com/u/11553998?v=4","gravatar_id":"","url":"https://api.github.com/users/ow2-proactive","html_url":"https://github.com/ow2-proactive","followers_url":"https://api.github.com/users/ow2-proactive/followers","following_url":"https://api.github.com/users/ow2-proactive/following{/other_user}","gists_url":"https://api.github.com/users/ow2-proactive/gists{/gist_id}","starred_url":"https://api.github.com/users/ow2-proactive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ow2-proactive/subscriptions","organizations_url":"https://api.github.com/users/ow2-proactive/orgs","repos_url":"https://api.github.com/users/ow2-proactive/repos","events_url":"https://api.github.com/users/ow2-proactive/events{/privacy}","received_events_url":"https://api.github.com/users/ow2-proactive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ow2-proactive/scheduling-portal","description":null,"fork":false,"url":"https://api.github.com/repos/ow2-proactive/scheduling-portal","forks_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/forks","keys_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/teams","hooks_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/hooks","issue_events_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/issues/events{/number}","events_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/events","assignees_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/assignees{/user}","branches_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/branches{/branch}","tags_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/tags","blobs_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/git/refs{/sha}","trees_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/statuses/{sha}","languages_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/languages","stargazers_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/stargazers","contributors_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/contributors","subscribers_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/subscribers","subscription_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/subscription","commits_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/commits{/sha}","git_commits_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/git/commits{/sha}","comments_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/comments{/number}","issue_comment_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/issues/comments{/number}","contents_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/contents/{+path}","compare_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/merges","archive_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/downloads","issues_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/issues{/number}","pulls_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls{/number}","milestones_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/milestones{/number}","notifications_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/labels{/name}","releases_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/releases{/id}","deployments_url":"https://api.github.com/repos/ow2-proactive/scheduling-portal/deployments","created_at":"2015-05-16T13:38:55Z","updated_at":"2018-05-20T20:55:18Z","pushed_at":"2018-05-25T12:01:23Z","git_url":"git://github.com/ow2-proactive/scheduling-portal.git","ssh_url":"git@github.com:ow2-proactive/scheduling-portal.git","clone_url":"https://github.com/ow2-proactive/scheduling-portal.git","svn_url":"https://github.com/ow2-proactive/scheduling-portal","homepage":"http://try.activeeon.com","size":118944,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":29,"mirror_url":null,"archived":false,"open_issues_count":60,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":29,"open_issues":60,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/449"},"html":{"href":"https://github.com/ow2-proactive/scheduling-portal/pull/449"},"issue":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/issues/449"},"comments":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/issues/449/comments"},"review_comments":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/449/comments"},"review_comment":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/pulls/449/commits"},"statuses":{"href":"https://api.github.com/repos/ow2-proactive/scheduling-portal/statuses/4df52ff6b368a0a997635c157861ae4687af929d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sonarqube-activeeon"}}