{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/che/pulls/comments/72030731","id":72030731,"diff_hunk":"@@ -226,6 +227,8 @@\n     private static final String MESSAGE_COMMIT_NOT_POSSIBLE       = \"Commit is not possible because repository state is '%s'\";\n     private static final String MESSAGE_COMMIT_AMEND_NOT_POSSIBLE = \"Amend is not possible because repository state is '%s'\";\n ","path":"wsagent/che-core-git-impl-jgit/src/main/java/org/eclipse/che/git/impl/jgit/JGitConnection.java","position":11,"original_position":11,"commit_id":"da234b4d22d63f0938e72b3594aa8366c7dc4ae4","original_commit_id":"da234b4d22d63f0938e72b3594aa8366c7dc4ae4","user":{"login":"vinokurig","id":7668752,"avatar_url":"https://avatars.githubusercontent.com/u/7668752?v=3","gravatar_id":"","url":"https://api.github.com/users/vinokurig","html_url":"https://github.com/vinokurig","followers_url":"https://api.github.com/users/vinokurig/followers","following_url":"https://api.github.com/users/vinokurig/following{/other_user}","gists_url":"https://api.github.com/users/vinokurig/gists{/gist_id}","starred_url":"https://api.github.com/users/vinokurig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinokurig/subscriptions","organizations_url":"https://api.github.com/users/vinokurig/orgs","repos_url":"https://api.github.com/users/vinokurig/repos","events_url":"https://api.github.com/users/vinokurig/events{/privacy}","received_events_url":"https://api.github.com/users/vinokurig/received_events","type":"User","site_admin":false},"body":"I think it is better to remove this constant and define the string directly in the check because it is only a part of error and it is used only one time. WDYT?","created_at":"2016-07-25T09:06:13Z","updated_at":"2016-07-25T09:06:13Z","html_url":"https://github.com/eclipse/che/pull/1871#discussion_r72030731","pull_request_url":"https://api.github.com/repos/eclipse/che/pulls/1871","_links":{"self":{"href":"https://api.github.com/repos/eclipse/che/pulls/comments/72030731"},"html":{"href":"https://github.com/eclipse/che/pull/1871#discussion_r72030731"},"pull_request":{"href":"https://api.github.com/repos/eclipse/che/pulls/1871"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/che/pulls/1871","id":78037506,"html_url":"https://github.com/eclipse/che/pull/1871","diff_url":"https://github.com/eclipse/che/pull/1871.diff","patch_url":"https://github.com/eclipse/che/pull/1871.patch","issue_url":"https://api.github.com/repos/eclipse/che/issues/1871","number":1871,"state":"open","locked":false,"title":" generate Exception Message for GIT actions","user":{"login":"i053322","id":9446387,"avatar_url":"https://avatars.githubusercontent.com/u/9446387?v=3","gravatar_id":"","url":"https://api.github.com/users/i053322","html_url":"https://github.com/i053322","followers_url":"https://api.github.com/users/i053322/followers","following_url":"https://api.github.com/users/i053322/following{/other_user}","gists_url":"https://api.github.com/users/i053322/gists{/gist_id}","starred_url":"https://api.github.com/users/i053322/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i053322/subscriptions","organizations_url":"https://api.github.com/users/i053322/orgs","repos_url":"https://api.github.com/users/i053322/repos","events_url":"https://api.github.com/users/i053322/events{/privacy}","received_events_url":"https://api.github.com/users/i053322/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\nIn action like clone , fetch , pull , push I added messages for case of SSL or if the message start with file name to long security issue,\r\n### What issues does this PR fix or reference?\r\nThe message handle in two new cases:\r\n1. SSL in case of SSLHandshakeException we raise message SAP Web IDE is not configured to trust the security certificate provided by the Git server.\r\n2. in case that the message start with \"file name too long\" - there is security issue, error message should not include complete local file path on the target system\r\n### Previous Behavior\r\nRemove this section if not relevant\r\nThe message that raisewas from Throwable message\r\n### New Behavior\r\nThis content may also be included in the release notes.\r\n\r\n### Tests written?\r\nYes/No\r\nThere are tests for all the git actions\r\n### Docs requirements?\r\nInclude the content for all the docs changes required. \r\n1.  API changes  \r\n2.  User docs changes  \r\n\r\n\r\nPlease review [Che's Contributing Guide](https://github.com/eclipse/che/CONTRIBUTING.MD) for best practices.\r\n\r\n","created_at":"2016-07-19T19:48:50Z","updated_at":"2016-07-25T09:06:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"813f960be2b05f61ae063935f286cf676882ec30","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eclipse/che/pulls/1871/commits","review_comments_url":"https://api.github.com/repos/eclipse/che/pulls/1871/comments","review_comment_url":"https://api.github.com/repos/eclipse/che/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/che/issues/1871/comments","statuses_url":"https://api.github.com/repos/eclipse/che/statuses/da234b4d22d63f0938e72b3594aa8366c7dc4ae4","head":{"label":"i053322:genearte_exception_message_for_git","ref":"genearte_exception_message_for_git","sha":"da234b4d22d63f0938e72b3594aa8366c7dc4ae4","user":{"login":"i053322","id":9446387,"avatar_url":"https://avatars.githubusercontent.com/u/9446387?v=3","gravatar_id":"","url":"https://api.github.com/users/i053322","html_url":"https://github.com/i053322","followers_url":"https://api.github.com/users/i053322/followers","following_url":"https://api.github.com/users/i053322/following{/other_user}","gists_url":"https://api.github.com/users/i053322/gists{/gist_id}","starred_url":"https://api.github.com/users/i053322/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i053322/subscriptions","organizations_url":"https://api.github.com/users/i053322/orgs","repos_url":"https://api.github.com/users/i053322/repos","events_url":"https://api.github.com/users/i053322/events{/privacy}","received_events_url":"https://api.github.com/users/i053322/received_events","type":"User","site_admin":false},"repo":{"id":63274163,"name":"che","full_name":"i053322/che","owner":{"login":"i053322","id":9446387,"avatar_url":"https://avatars.githubusercontent.com/u/9446387?v=3","gravatar_id":"","url":"https://api.github.com/users/i053322","html_url":"https://github.com/i053322","followers_url":"https://api.github.com/users/i053322/followers","following_url":"https://api.github.com/users/i053322/following{/other_user}","gists_url":"https://api.github.com/users/i053322/gists{/gist_id}","starred_url":"https://api.github.com/users/i053322/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i053322/subscriptions","organizations_url":"https://api.github.com/users/i053322/orgs","repos_url":"https://api.github.com/users/i053322/repos","events_url":"https://api.github.com/users/i053322/events{/privacy}","received_events_url":"https://api.github.com/users/i053322/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/i053322/che","description":"Eclipse Che: Next-generation Eclipse IDE.  Open source workspace server and cloud IDE.","fork":true,"url":"https://api.github.com/repos/i053322/che","forks_url":"https://api.github.com/repos/i053322/che/forks","keys_url":"https://api.github.com/repos/i053322/che/keys{/key_id}","collaborators_url":"https://api.github.com/repos/i053322/che/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/i053322/che/teams","hooks_url":"https://api.github.com/repos/i053322/che/hooks","issue_events_url":"https://api.github.com/repos/i053322/che/issues/events{/number}","events_url":"https://api.github.com/repos/i053322/che/events","assignees_url":"https://api.github.com/repos/i053322/che/assignees{/user}","branches_url":"https://api.github.com/repos/i053322/che/branches{/branch}","tags_url":"https://api.github.com/repos/i053322/che/tags","blobs_url":"https://api.github.com/repos/i053322/che/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/i053322/che/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/i053322/che/git/refs{/sha}","trees_url":"https://api.github.com/repos/i053322/che/git/trees{/sha}","statuses_url":"https://api.github.com/repos/i053322/che/statuses/{sha}","languages_url":"https://api.github.com/repos/i053322/che/languages","stargazers_url":"https://api.github.com/repos/i053322/che/stargazers","contributors_url":"https://api.github.com/repos/i053322/che/contributors","subscribers_url":"https://api.github.com/repos/i053322/che/subscribers","subscription_url":"https://api.github.com/repos/i053322/che/subscription","commits_url":"https://api.github.com/repos/i053322/che/commits{/sha}","git_commits_url":"https://api.github.com/repos/i053322/che/git/commits{/sha}","comments_url":"https://api.github.com/repos/i053322/che/comments{/number}","issue_comment_url":"https://api.github.com/repos/i053322/che/issues/comments{/number}","contents_url":"https://api.github.com/repos/i053322/che/contents/{+path}","compare_url":"https://api.github.com/repos/i053322/che/compare/{base}...{head}","merges_url":"https://api.github.com/repos/i053322/che/merges","archive_url":"https://api.github.com/repos/i053322/che/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/i053322/che/downloads","issues_url":"https://api.github.com/repos/i053322/che/issues{/number}","pulls_url":"https://api.github.com/repos/i053322/che/pulls{/number}","milestones_url":"https://api.github.com/repos/i053322/che/milestones{/number}","notifications_url":"https://api.github.com/repos/i053322/che/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/i053322/che/labels{/name}","releases_url":"https://api.github.com/repos/i053322/che/releases{/id}","deployments_url":"https://api.github.com/repos/i053322/che/deployments","created_at":"2016-07-13T19:35:26Z","updated_at":"2016-07-13T19:35:43Z","pushed_at":"2016-07-22T10:16:22Z","git_url":"git://github.com/i053322/che.git","ssh_url":"git@github.com:i053322/che.git","clone_url":"https://github.com/i053322/che.git","svn_url":"https://github.com/i053322/che","homepage":"http://eclipse.org/che","size":29534,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"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":"eclipse:master","ref":"master","sha":"b0049aab30e1ae8c1243ea20b8664c96ad75d624","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":32935745,"name":"che","full_name":"eclipse/che","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/che","description":"Eclipse Che: Next-generation Eclipse IDE.  Open source workspace server and cloud IDE.","fork":false,"url":"https://api.github.com/repos/eclipse/che","forks_url":"https://api.github.com/repos/eclipse/che/forks","keys_url":"https://api.github.com/repos/eclipse/che/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/che/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/che/teams","hooks_url":"https://api.github.com/repos/eclipse/che/hooks","issue_events_url":"https://api.github.com/repos/eclipse/che/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/che/events","assignees_url":"https://api.github.com/repos/eclipse/che/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/che/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/che/tags","blobs_url":"https://api.github.com/repos/eclipse/che/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/che/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/che/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/che/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/che/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/che/languages","stargazers_url":"https://api.github.com/repos/eclipse/che/stargazers","contributors_url":"https://api.github.com/repos/eclipse/che/contributors","subscribers_url":"https://api.github.com/repos/eclipse/che/subscribers","subscription_url":"https://api.github.com/repos/eclipse/che/subscription","commits_url":"https://api.github.com/repos/eclipse/che/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/che/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/che/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/che/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/che/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/che/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/che/merges","archive_url":"https://api.github.com/repos/eclipse/che/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/che/downloads","issues_url":"https://api.github.com/repos/eclipse/che/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/che/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/che/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/che/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/che/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/che/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/che/deployments","created_at":"2015-03-26T15:31:01Z","updated_at":"2016-07-25T07:22:34Z","pushed_at":"2016-07-25T08:26:43Z","git_url":"git://github.com/eclipse/che.git","ssh_url":"git@github.com:eclipse/che.git","clone_url":"https://github.com/eclipse/che.git","svn_url":"https://github.com/eclipse/che","homepage":"http://eclipse.org/che","size":43509,"stargazers_count":3044,"watchers_count":3044,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":479,"mirror_url":null,"open_issues_count":268,"forks":479,"open_issues":268,"watchers":3044,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/che/pulls/1871"},"html":{"href":"https://github.com/eclipse/che/pull/1871"},"issue":{"href":"https://api.github.com/repos/eclipse/che/issues/1871"},"comments":{"href":"https://api.github.com/repos/eclipse/che/issues/1871/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/che/pulls/1871/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/che/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/che/pulls/1871/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/che/statuses/da234b4d22d63f0938e72b3594aa8366c7dc4ae4"}}}}
{"actor":{"display_login":"vinokurig"}}