{"action":"created","comment":{"url":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/comments/73297401","id":73297401,"diff_hunk":"@@ -0,0 +1,52 @@\n+/*\n+ * ============= Ryft-Customized BSD License ============\n+ * Copyright (c) 2015, Ryft Systems, Inc.\n+ * All rights reserved.\n+ * Redistribution and use in source and binary forms, with or without modification,\n+ * are permitted provided that the following conditions are met:\n+ *\n+ * 1. Redistributions of source code must retain the above copyright notice,\n+ *   this list of conditions and the following disclaimer.\n+ * 2. Redistributions in binary form must reproduce the above copyright notice,\n+ *   this list of conditions and the following disclaimer in the documentation and/or\n+ *   other materials provided with the distribution.\n+ * 3. All advertising materials mentioning features or use of this software must display the following acknowledgement:\n+ *   This product includes software developed by Ryft Systems, Inc.\n+ * 4. Neither the name of Ryft Systems, Inc. nor the names of its contributors may be used\n+ *   to endorse or promote products derived from this software without specific prior written permission.\n+ *\n+ * THIS SOFTWARE IS PROVIDED BY RYFT SYSTEMS, INC. ''AS IS'' AND ANY\n+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n+ * DISCLAIMED. IN NO EVENT SHALL RYFT SYSTEMS, INC. BE LIABLE FOR ANY\n+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n+ * ============\n+ */\n+\n+package com.ryft.spark.connector.rest\n+\n+import java.security.cert.X509Certificate\n+import javax.net.ssl.X509TrustManager\n+\n+/**\n+  * Workaround for successful self-signed certificate check\n+  * More details at http://stackoverflow.com/a/1828840\n+  */\n+class DefaultTrustManager extends X509TrustManager {\n+  @throws(classOf[java.security.cert.CertificateException])\n+  def checkClientTrusted(x509Certificates: Array[X509Certificate], s: String) {\n+  }\n+\n+  @throws(classOf[java.security.cert.CertificateException])\n+  def checkServerTrusted(x509Certificates: Array[X509Certificate], s: String) {\n+  }\n+\n+  def getAcceptedIssuers: Array[X509Certificate] = {\n+    null","path":"spark-ryft-connector/src/main/scala/com/ryft/spark/connector/rest/DefaultTrustManager.scala","position":50,"original_position":50,"commit_id":"3a6d12482aca71b3080e2704dbfec55370904f3a","original_commit_id":"3a6d12482aca71b3080e2704dbfec55370904f3a","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Avoid using null](https://www.codacy.com/app/s-demyanov/spark-ryft-connector/file/3152956877/issues/source?bid=3082310&fileBranchId=3494376#l50)","created_at":"2016-08-03T08:15:45Z","updated_at":"2016-08-03T08:15:45Z","html_url":"https://github.com/getryft/spark-ryft-connector/pull/90#discussion_r73297401","pull_request_url":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/comments/73297401"},"html":{"href":"https://github.com/getryft/spark-ryft-connector/pull/90#discussion_r73297401"},"pull_request":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/90","id":79738703,"html_url":"https://github.com/getryft/spark-ryft-connector/pull/90","diff_url":"https://github.com/getryft/spark-ryft-connector/pull/90.diff","patch_url":"https://github.com/getryft/spark-ryft-connector/pull/90.patch","issue_url":"https://api.github.com/repos/getryft/spark-ryft-connector/issues/90","number":90,"state":"open","locked":false,"title":"Added Ryft REST HTTPS support","user":{"login":"apanevin","id":18486996,"avatar_url":"https://avatars.githubusercontent.com/u/18486996?v=3","gravatar_id":"","url":"https://api.github.com/users/apanevin","html_url":"https://github.com/apanevin","followers_url":"https://api.github.com/users/apanevin/followers","following_url":"https://api.github.com/users/apanevin/following{/other_user}","gists_url":"https://api.github.com/users/apanevin/gists{/gist_id}","starred_url":"https://api.github.com/users/apanevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apanevin/subscriptions","organizations_url":"https://api.github.com/users/apanevin/orgs","repos_url":"https://api.github.com/users/apanevin/repos","events_url":"https://api.github.com/users/apanevin/events{/privacy}","received_events_url":"https://api.github.com/users/apanevin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-02T13:51:44Z","updated_at":"2016-08-03T08:15:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95d5d499e8acbfb143c647fe8c27a8f6c5f3e061","assignee":{"login":"apanevin","id":18486996,"avatar_url":"https://avatars.githubusercontent.com/u/18486996?v=3","gravatar_id":"","url":"https://api.github.com/users/apanevin","html_url":"https://github.com/apanevin","followers_url":"https://api.github.com/users/apanevin/followers","following_url":"https://api.github.com/users/apanevin/following{/other_user}","gists_url":"https://api.github.com/users/apanevin/gists{/gist_id}","starred_url":"https://api.github.com/users/apanevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apanevin/subscriptions","organizations_url":"https://api.github.com/users/apanevin/orgs","repos_url":"https://api.github.com/users/apanevin/repos","events_url":"https://api.github.com/users/apanevin/events{/privacy}","received_events_url":"https://api.github.com/users/apanevin/received_events","type":"User","site_admin":false},"assignees":[{"login":"apanevin","id":18486996,"avatar_url":"https://avatars.githubusercontent.com/u/18486996?v=3","gravatar_id":"","url":"https://api.github.com/users/apanevin","html_url":"https://github.com/apanevin","followers_url":"https://api.github.com/users/apanevin/followers","following_url":"https://api.github.com/users/apanevin/following{/other_user}","gists_url":"https://api.github.com/users/apanevin/gists{/gist_id}","starred_url":"https://api.github.com/users/apanevin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apanevin/subscriptions","organizations_url":"https://api.github.com/users/apanevin/orgs","repos_url":"https://api.github.com/users/apanevin/repos","events_url":"https://api.github.com/users/apanevin/events{/privacy}","received_events_url":"https://api.github.com/users/apanevin/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/90/commits","review_comments_url":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/90/comments","review_comment_url":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getryft/spark-ryft-connector/issues/90/comments","statuses_url":"https://api.github.com/repos/getryft/spark-ryft-connector/statuses/3a6d12482aca71b3080e2704dbfec55370904f3a","head":{"label":"getryft:feature/https-support","ref":"feature/https-support","sha":"3a6d12482aca71b3080e2704dbfec55370904f3a","user":{"login":"getryft","id":10607851,"avatar_url":"https://avatars.githubusercontent.com/u/10607851?v=3","gravatar_id":"","url":"https://api.github.com/users/getryft","html_url":"https://github.com/getryft","followers_url":"https://api.github.com/users/getryft/followers","following_url":"https://api.github.com/users/getryft/following{/other_user}","gists_url":"https://api.github.com/users/getryft/gists{/gist_id}","starred_url":"https://api.github.com/users/getryft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getryft/subscriptions","organizations_url":"https://api.github.com/users/getryft/orgs","repos_url":"https://api.github.com/users/getryft/repos","events_url":"https://api.github.com/users/getryft/events{/privacy}","received_events_url":"https://api.github.com/users/getryft/received_events","type":"Organization","site_admin":false},"repo":{"id":39964786,"name":"spark-ryft-connector","full_name":"getryft/spark-ryft-connector","owner":{"login":"getryft","id":10607851,"avatar_url":"https://avatars.githubusercontent.com/u/10607851?v=3","gravatar_id":"","url":"https://api.github.com/users/getryft","html_url":"https://github.com/getryft","followers_url":"https://api.github.com/users/getryft/followers","following_url":"https://api.github.com/users/getryft/following{/other_user}","gists_url":"https://api.github.com/users/getryft/gists{/gist_id}","starred_url":"https://api.github.com/users/getryft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getryft/subscriptions","organizations_url":"https://api.github.com/users/getryft/orgs","repos_url":"https://api.github.com/users/getryft/repos","events_url":"https://api.github.com/users/getryft/events{/privacy}","received_events_url":"https://api.github.com/users/getryft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getryft/spark-ryft-connector","description":"Spark connector for Ryft ONE","fork":false,"url":"https://api.github.com/repos/getryft/spark-ryft-connector","forks_url":"https://api.github.com/repos/getryft/spark-ryft-connector/forks","keys_url":"https://api.github.com/repos/getryft/spark-ryft-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getryft/spark-ryft-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getryft/spark-ryft-connector/teams","hooks_url":"https://api.github.com/repos/getryft/spark-ryft-connector/hooks","issue_events_url":"https://api.github.com/repos/getryft/spark-ryft-connector/issues/events{/number}","events_url":"https://api.github.com/repos/getryft/spark-ryft-connector/events","assignees_url":"https://api.github.com/repos/getryft/spark-ryft-connector/assignees{/user}","branches_url":"https://api.github.com/repos/getryft/spark-ryft-connector/branches{/branch}","tags_url":"https://api.github.com/repos/getryft/spark-ryft-connector/tags","blobs_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getryft/spark-ryft-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/getryft/spark-ryft-connector/languages","stargazers_url":"https://api.github.com/repos/getryft/spark-ryft-connector/stargazers","contributors_url":"https://api.github.com/repos/getryft/spark-ryft-connector/contributors","subscribers_url":"https://api.github.com/repos/getryft/spark-ryft-connector/subscribers","subscription_url":"https://api.github.com/repos/getryft/spark-ryft-connector/subscription","commits_url":"https://api.github.com/repos/getryft/spark-ryft-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/getryft/spark-ryft-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/getryft/spark-ryft-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/getryft/spark-ryft-connector/contents/{+path}","compare_url":"https://api.github.com/repos/getryft/spark-ryft-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getryft/spark-ryft-connector/merges","archive_url":"https://api.github.com/repos/getryft/spark-ryft-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getryft/spark-ryft-connector/downloads","issues_url":"https://api.github.com/repos/getryft/spark-ryft-connector/issues{/number}","pulls_url":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/getryft/spark-ryft-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/getryft/spark-ryft-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getryft/spark-ryft-connector/labels{/name}","releases_url":"https://api.github.com/repos/getryft/spark-ryft-connector/releases{/id}","deployments_url":"https://api.github.com/repos/getryft/spark-ryft-connector/deployments","created_at":"2015-07-30T17:59:30Z","updated_at":"2016-01-12T16:25:25Z","pushed_at":"2016-08-03T08:13:51Z","git_url":"git://github.com/getryft/spark-ryft-connector.git","ssh_url":"git@github.com:getryft/spark-ryft-connector.git","clone_url":"https://github.com/getryft/spark-ryft-connector.git","svn_url":"https://github.com/getryft/spark-ryft-connector","homepage":"http://www.ryft.com","size":499,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"getryft:development","ref":"development","sha":"732331605fe3704ce00b01ac1e130b33c488fac3","user":{"login":"getryft","id":10607851,"avatar_url":"https://avatars.githubusercontent.com/u/10607851?v=3","gravatar_id":"","url":"https://api.github.com/users/getryft","html_url":"https://github.com/getryft","followers_url":"https://api.github.com/users/getryft/followers","following_url":"https://api.github.com/users/getryft/following{/other_user}","gists_url":"https://api.github.com/users/getryft/gists{/gist_id}","starred_url":"https://api.github.com/users/getryft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getryft/subscriptions","organizations_url":"https://api.github.com/users/getryft/orgs","repos_url":"https://api.github.com/users/getryft/repos","events_url":"https://api.github.com/users/getryft/events{/privacy}","received_events_url":"https://api.github.com/users/getryft/received_events","type":"Organization","site_admin":false},"repo":{"id":39964786,"name":"spark-ryft-connector","full_name":"getryft/spark-ryft-connector","owner":{"login":"getryft","id":10607851,"avatar_url":"https://avatars.githubusercontent.com/u/10607851?v=3","gravatar_id":"","url":"https://api.github.com/users/getryft","html_url":"https://github.com/getryft","followers_url":"https://api.github.com/users/getryft/followers","following_url":"https://api.github.com/users/getryft/following{/other_user}","gists_url":"https://api.github.com/users/getryft/gists{/gist_id}","starred_url":"https://api.github.com/users/getryft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getryft/subscriptions","organizations_url":"https://api.github.com/users/getryft/orgs","repos_url":"https://api.github.com/users/getryft/repos","events_url":"https://api.github.com/users/getryft/events{/privacy}","received_events_url":"https://api.github.com/users/getryft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getryft/spark-ryft-connector","description":"Spark connector for Ryft ONE","fork":false,"url":"https://api.github.com/repos/getryft/spark-ryft-connector","forks_url":"https://api.github.com/repos/getryft/spark-ryft-connector/forks","keys_url":"https://api.github.com/repos/getryft/spark-ryft-connector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getryft/spark-ryft-connector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getryft/spark-ryft-connector/teams","hooks_url":"https://api.github.com/repos/getryft/spark-ryft-connector/hooks","issue_events_url":"https://api.github.com/repos/getryft/spark-ryft-connector/issues/events{/number}","events_url":"https://api.github.com/repos/getryft/spark-ryft-connector/events","assignees_url":"https://api.github.com/repos/getryft/spark-ryft-connector/assignees{/user}","branches_url":"https://api.github.com/repos/getryft/spark-ryft-connector/branches{/branch}","tags_url":"https://api.github.com/repos/getryft/spark-ryft-connector/tags","blobs_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/refs{/sha}","trees_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getryft/spark-ryft-connector/statuses/{sha}","languages_url":"https://api.github.com/repos/getryft/spark-ryft-connector/languages","stargazers_url":"https://api.github.com/repos/getryft/spark-ryft-connector/stargazers","contributors_url":"https://api.github.com/repos/getryft/spark-ryft-connector/contributors","subscribers_url":"https://api.github.com/repos/getryft/spark-ryft-connector/subscribers","subscription_url":"https://api.github.com/repos/getryft/spark-ryft-connector/subscription","commits_url":"https://api.github.com/repos/getryft/spark-ryft-connector/commits{/sha}","git_commits_url":"https://api.github.com/repos/getryft/spark-ryft-connector/git/commits{/sha}","comments_url":"https://api.github.com/repos/getryft/spark-ryft-connector/comments{/number}","issue_comment_url":"https://api.github.com/repos/getryft/spark-ryft-connector/issues/comments{/number}","contents_url":"https://api.github.com/repos/getryft/spark-ryft-connector/contents/{+path}","compare_url":"https://api.github.com/repos/getryft/spark-ryft-connector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getryft/spark-ryft-connector/merges","archive_url":"https://api.github.com/repos/getryft/spark-ryft-connector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getryft/spark-ryft-connector/downloads","issues_url":"https://api.github.com/repos/getryft/spark-ryft-connector/issues{/number}","pulls_url":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls{/number}","milestones_url":"https://api.github.com/repos/getryft/spark-ryft-connector/milestones{/number}","notifications_url":"https://api.github.com/repos/getryft/spark-ryft-connector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getryft/spark-ryft-connector/labels{/name}","releases_url":"https://api.github.com/repos/getryft/spark-ryft-connector/releases{/id}","deployments_url":"https://api.github.com/repos/getryft/spark-ryft-connector/deployments","created_at":"2015-07-30T17:59:30Z","updated_at":"2016-01-12T16:25:25Z","pushed_at":"2016-08-03T08:13:51Z","git_url":"git://github.com/getryft/spark-ryft-connector.git","ssh_url":"git@github.com:getryft/spark-ryft-connector.git","clone_url":"https://github.com/getryft/spark-ryft-connector.git","svn_url":"https://github.com/getryft/spark-ryft-connector","homepage":"http://www.ryft.com","size":499,"stargazers_count":1,"watchers_count":1,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/90"},"html":{"href":"https://github.com/getryft/spark-ryft-connector/pull/90"},"issue":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/issues/90"},"comments":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/getryft/spark-ryft-connector/statuses/3a6d12482aca71b3080e2704dbfec55370904f3a"}}}}
{"actor":{"display_login":"codacy-bot"}}