{"action":"created","comment":{"url":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/comments/40914066","id":40914066,"diff_hunk":"@@ -171,6 +174,15 @@ public void doPost(final HttpServletRequest request, final HttpServletResponse r\n                 responsePW.print(responseString);\n                 responsePW.flush();","path":"server/src/main/java/org/bonitasoft/console/common/server/servlet/FileUploadServlet.java","position":91,"original_position":91,"commit_id":"4b0f54db1e897dade6aa80249d81fda9897a4d18","original_commit_id":"4b0f54db1e897dade6aa80249d81fda9897a4d18","user":{"login":"cpuy","id":1671164,"avatar_url":"https://avatars.githubusercontent.com/u/1671164?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuy","html_url":"https://github.com/cpuy","followers_url":"https://api.github.com/users/cpuy/followers","following_url":"https://api.github.com/users/cpuy/following{/other_user}","gists_url":"https://api.github.com/users/cpuy/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuy/subscriptions","organizations_url":"https://api.github.com/users/cpuy/orgs","repos_url":"https://api.github.com/users/cpuy/repos","events_url":"https://api.github.com/users/cpuy/events{/privacy}","received_events_url":"https://api.github.com/users/cpuy/received_events","type":"User","site_admin":false},"body":"May be not needed if we close printwriter in finally block","created_at":"2015-10-01T13:44:49Z","updated_at":"2015-10-01T13:44:49Z","html_url":"https://github.com/bonitasoft/bonita-web/pull/178#discussion_r40914066","pull_request_url":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/178","_links":{"self":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/comments/40914066"},"html":{"href":"https://github.com/bonitasoft/bonita-web/pull/178#discussion_r40914066"},"pull_request":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/178","id":46507429,"html_url":"https://github.com/bonitasoft/bonita-web/pull/178","diff_url":"https://github.com/bonitasoft/bonita-web/pull/178.diff","patch_url":"https://github.com/bonitasoft/bonita-web/pull/178.patch","issue_url":"https://api.github.com/repos/bonitasoft/bonita-web/issues/178","number":178,"state":"open","locked":false,"title":"throw a 413 error when uploaded file is too big ","user":{"login":"redboul","id":6637605,"avatar_url":"https://avatars.githubusercontent.com/u/6637605?v=3","gravatar_id":"","url":"https://api.github.com/users/redboul","html_url":"https://github.com/redboul","followers_url":"https://api.github.com/users/redboul/followers","following_url":"https://api.github.com/users/redboul/following{/other_user}","gists_url":"https://api.github.com/users/redboul/gists{/gist_id}","starred_url":"https://api.github.com/users/redboul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redboul/subscriptions","organizations_url":"https://api.github.com/users/redboul/orgs","repos_url":"https://api.github.com/users/redboul/repos","events_url":"https://api.github.com/users/redboul/events{/privacy}","received_events_url":"https://api.github.com/users/redboul/received_events","type":"User","site_admin":false},"body":"and fill response payload when type is json","created_at":"2015-10-01T10:30:07Z","updated_at":"2015-10-01T13:44:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3393e44c5ffc7387905f448279638d1260fcd23","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/178/commits","review_comments_url":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/178/comments","review_comment_url":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-web/issues/178/comments","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-web/statuses/4b0f54db1e897dade6aa80249d81fda9897a4d18","head":{"label":"bonitasoft:fix/BS-14134-json-response","ref":"fix/BS-14134-json-response","sha":"4b0f54db1e897dade6aa80249d81fda9897a4d18","user":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"repo":{"id":11337147,"name":"bonita-web","full_name":"bonitasoft/bonita-web","owner":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bonitasoft/bonita-web","description":"","fork":false,"url":"https://api.github.com/repos/bonitasoft/bonita-web","forks_url":"https://api.github.com/repos/bonitasoft/bonita-web/forks","keys_url":"https://api.github.com/repos/bonitasoft/bonita-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bonitasoft/bonita-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bonitasoft/bonita-web/teams","hooks_url":"https://api.github.com/repos/bonitasoft/bonita-web/hooks","issue_events_url":"https://api.github.com/repos/bonitasoft/bonita-web/issues/events{/number}","events_url":"https://api.github.com/repos/bonitasoft/bonita-web/events","assignees_url":"https://api.github.com/repos/bonitasoft/bonita-web/assignees{/user}","branches_url":"https://api.github.com/repos/bonitasoft/bonita-web/branches{/branch}","tags_url":"https://api.github.com/repos/bonitasoft/bonita-web/tags","blobs_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-web/statuses/{sha}","languages_url":"https://api.github.com/repos/bonitasoft/bonita-web/languages","stargazers_url":"https://api.github.com/repos/bonitasoft/bonita-web/stargazers","contributors_url":"https://api.github.com/repos/bonitasoft/bonita-web/contributors","subscribers_url":"https://api.github.com/repos/bonitasoft/bonita-web/subscribers","subscription_url":"https://api.github.com/repos/bonitasoft/bonita-web/subscription","commits_url":"https://api.github.com/repos/bonitasoft/bonita-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/bonitasoft/bonita-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/bonitasoft/bonita-web/contents/{+path}","compare_url":"https://api.github.com/repos/bonitasoft/bonita-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bonitasoft/bonita-web/merges","archive_url":"https://api.github.com/repos/bonitasoft/bonita-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bonitasoft/bonita-web/downloads","issues_url":"https://api.github.com/repos/bonitasoft/bonita-web/issues{/number}","pulls_url":"https://api.github.com/repos/bonitasoft/bonita-web/pulls{/number}","milestones_url":"https://api.github.com/repos/bonitasoft/bonita-web/milestones{/number}","notifications_url":"https://api.github.com/repos/bonitasoft/bonita-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bonitasoft/bonita-web/labels{/name}","releases_url":"https://api.github.com/repos/bonitasoft/bonita-web/releases{/id}","created_at":"2013-07-11T08:39:00Z","updated_at":"2015-06-05T16:34:01Z","pushed_at":"2015-10-01T13:41:52Z","git_url":"git://github.com/bonitasoft/bonita-web.git","ssh_url":"git@github.com:bonitasoft/bonita-web.git","clone_url":"https://github.com/bonitasoft/bonita-web.git","svn_url":"https://github.com/bonitasoft/bonita-web","homepage":"http://community.bonitasoft.com/","size":261715,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":1,"forks":25,"open_issues":1,"watchers":12,"default_branch":"master"}},"base":{"label":"bonitasoft:MasterBugFixing","ref":"MasterBugFixing","sha":"85a5f20a2006a25a7ebcf39ac92b74823468b0d1","user":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"repo":{"id":11337147,"name":"bonita-web","full_name":"bonitasoft/bonita-web","owner":{"login":"bonitasoft","id":4619712,"avatar_url":"https://avatars.githubusercontent.com/u/4619712?v=3","gravatar_id":"","url":"https://api.github.com/users/bonitasoft","html_url":"https://github.com/bonitasoft","followers_url":"https://api.github.com/users/bonitasoft/followers","following_url":"https://api.github.com/users/bonitasoft/following{/other_user}","gists_url":"https://api.github.com/users/bonitasoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bonitasoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bonitasoft/subscriptions","organizations_url":"https://api.github.com/users/bonitasoft/orgs","repos_url":"https://api.github.com/users/bonitasoft/repos","events_url":"https://api.github.com/users/bonitasoft/events{/privacy}","received_events_url":"https://api.github.com/users/bonitasoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bonitasoft/bonita-web","description":"","fork":false,"url":"https://api.github.com/repos/bonitasoft/bonita-web","forks_url":"https://api.github.com/repos/bonitasoft/bonita-web/forks","keys_url":"https://api.github.com/repos/bonitasoft/bonita-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bonitasoft/bonita-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bonitasoft/bonita-web/teams","hooks_url":"https://api.github.com/repos/bonitasoft/bonita-web/hooks","issue_events_url":"https://api.github.com/repos/bonitasoft/bonita-web/issues/events{/number}","events_url":"https://api.github.com/repos/bonitasoft/bonita-web/events","assignees_url":"https://api.github.com/repos/bonitasoft/bonita-web/assignees{/user}","branches_url":"https://api.github.com/repos/bonitasoft/bonita-web/branches{/branch}","tags_url":"https://api.github.com/repos/bonitasoft/bonita-web/tags","blobs_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bonitasoft/bonita-web/statuses/{sha}","languages_url":"https://api.github.com/repos/bonitasoft/bonita-web/languages","stargazers_url":"https://api.github.com/repos/bonitasoft/bonita-web/stargazers","contributors_url":"https://api.github.com/repos/bonitasoft/bonita-web/contributors","subscribers_url":"https://api.github.com/repos/bonitasoft/bonita-web/subscribers","subscription_url":"https://api.github.com/repos/bonitasoft/bonita-web/subscription","commits_url":"https://api.github.com/repos/bonitasoft/bonita-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/bonitasoft/bonita-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/bonitasoft/bonita-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/bonitasoft/bonita-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/bonitasoft/bonita-web/contents/{+path}","compare_url":"https://api.github.com/repos/bonitasoft/bonita-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bonitasoft/bonita-web/merges","archive_url":"https://api.github.com/repos/bonitasoft/bonita-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bonitasoft/bonita-web/downloads","issues_url":"https://api.github.com/repos/bonitasoft/bonita-web/issues{/number}","pulls_url":"https://api.github.com/repos/bonitasoft/bonita-web/pulls{/number}","milestones_url":"https://api.github.com/repos/bonitasoft/bonita-web/milestones{/number}","notifications_url":"https://api.github.com/repos/bonitasoft/bonita-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bonitasoft/bonita-web/labels{/name}","releases_url":"https://api.github.com/repos/bonitasoft/bonita-web/releases{/id}","created_at":"2013-07-11T08:39:00Z","updated_at":"2015-06-05T16:34:01Z","pushed_at":"2015-10-01T13:41:52Z","git_url":"git://github.com/bonitasoft/bonita-web.git","ssh_url":"git@github.com:bonitasoft/bonita-web.git","clone_url":"https://github.com/bonitasoft/bonita-web.git","svn_url":"https://github.com/bonitasoft/bonita-web","homepage":"http://community.bonitasoft.com/","size":261715,"stargazers_count":12,"watchers_count":12,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":1,"forks":25,"open_issues":1,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/178"},"html":{"href":"https://github.com/bonitasoft/bonita-web/pull/178"},"issue":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/issues/178"},"comments":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/bonitasoft/bonita-web/statuses/4b0f54db1e897dade6aa80249d81fda9897a4d18"}}}}