{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-deployment/pulls/comments/42962090","id":42962090,"diff_hunk":"@@ -201,12 +202,18 @@ private void setServiceListPath(WebApplication webApplication) {\n         webApplication.setServiceListPath(serviceListPathParam);\n     }\n \n+    private boolean checkFaultyWebappParam(Context context) {\n+        String param = context.findParameter(WebappsConstants.FAULTY_WEBAPP);\n+        return param != null && !\"\".equals(param) && Boolean.parseBoolean(param);\n+    }\n+\n     private WebappMetadata getWebapp(WebApplication webApplication) {\n         WebappMetadata webappMetadata;\n         webappMetadata = new WebappMetadata();\n \n         String appContext = WebAppUtils.checkJaxApplication(webApplication);\n-        if(appContext != null){\n+        boolean isFaulty = checkFaultyWebappParam(webApplication.getContext());\n+        if (appContext != null && !isFaulty && \"STARTED\".equalsIgnoreCase(webApplication.getContext().getStateName())) {","path":"components/webapp-mgt/org.wso2.carbon.webapp.mgt/src/main/java/org/wso2/carbon/webapp/mgt/WebappAdmin.java","position":24,"original_position":24,"commit_id":"35372efc8812c6079e90bc4cc5b81486413cbc88","original_commit_id":"35372efc8812c6079e90bc4cc5b81486413cbc88","user":{"login":"Niranjan-K","id":5525926,"avatar_url":"https://avatars.githubusercontent.com/u/5525926?v=3","gravatar_id":"","url":"https://api.github.com/users/Niranjan-K","html_url":"https://github.com/Niranjan-K","followers_url":"https://api.github.com/users/Niranjan-K/followers","following_url":"https://api.github.com/users/Niranjan-K/following{/other_user}","gists_url":"https://api.github.com/users/Niranjan-K/gists{/gist_id}","starred_url":"https://api.github.com/users/Niranjan-K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Niranjan-K/subscriptions","organizations_url":"https://api.github.com/users/Niranjan-K/orgs","repos_url":"https://api.github.com/users/Niranjan-K/repos","events_url":"https://api.github.com/users/Niranjan-K/events{/privacy}","received_events_url":"https://api.github.com/users/Niranjan-K/received_events","type":"User","site_admin":false},"body":"Should use a Constant for \"STARTED\"","created_at":"2015-10-26T06:04:14Z","updated_at":"2015-10-26T06:04:14Z","html_url":"https://github.com/wso2/carbon-deployment/pull/168#discussion_r42962090","pull_request_url":"https://api.github.com/repos/wso2/carbon-deployment/pulls/168","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-deployment/pulls/comments/42962090"},"html":{"href":"https://github.com/wso2/carbon-deployment/pull/168#discussion_r42962090"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-deployment/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-deployment/pulls/168","id":44430309,"html_url":"https://github.com/wso2/carbon-deployment/pull/168","diff_url":"https://github.com/wso2/carbon-deployment/pull/168.diff","patch_url":"https://github.com/wso2/carbon-deployment/pull/168.patch","issue_url":"https://api.github.com/repos/wso2/carbon-deployment/issues/168","number":168,"state":"closed","locked":false,"title":"WSAS-2132: Redeploying already stopped JaxRS webapp cause inaccessibl…","user":{"login":"thusithathilina","id":7578389,"avatar_url":"https://avatars.githubusercontent.com/u/7578389?v=3","gravatar_id":"","url":"https://api.github.com/users/thusithathilina","html_url":"https://github.com/thusithathilina","followers_url":"https://api.github.com/users/thusithathilina/followers","following_url":"https://api.github.com/users/thusithathilina/following{/other_user}","gists_url":"https://api.github.com/users/thusithathilina/gists{/gist_id}","starred_url":"https://api.github.com/users/thusithathilina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thusithathilina/subscriptions","organizations_url":"https://api.github.com/users/thusithathilina/orgs","repos_url":"https://api.github.com/users/thusithathilina/repos","events_url":"https://api.github.com/users/thusithathilina/events{/privacy}","received_events_url":"https://api.github.com/users/thusithathilina/received_events","type":"User","site_admin":false},"body":"…e webapp list page when GD enable","created_at":"2015-09-08T13:13:57Z","updated_at":"2015-10-26T06:04:14Z","closed_at":"2015-09-10T10:58:50Z","merged_at":"2015-09-10T10:58:50Z","merge_commit_sha":"692038cf1977b97a05a3de36a4733459f1d7adc8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-deployment/pulls/168/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-deployment/pulls/168/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-deployment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-deployment/issues/168/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-deployment/statuses/35372efc8812c6079e90bc4cc5b81486413cbc88","head":{"label":"thusithathilina:fix_WSAS_2132","ref":"fix_WSAS_2132","sha":"35372efc8812c6079e90bc4cc5b81486413cbc88","user":{"login":"thusithathilina","id":7578389,"avatar_url":"https://avatars.githubusercontent.com/u/7578389?v=3","gravatar_id":"","url":"https://api.github.com/users/thusithathilina","html_url":"https://github.com/thusithathilina","followers_url":"https://api.github.com/users/thusithathilina/followers","following_url":"https://api.github.com/users/thusithathilina/following{/other_user}","gists_url":"https://api.github.com/users/thusithathilina/gists{/gist_id}","starred_url":"https://api.github.com/users/thusithathilina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thusithathilina/subscriptions","organizations_url":"https://api.github.com/users/thusithathilina/orgs","repos_url":"https://api.github.com/users/thusithathilina/repos","events_url":"https://api.github.com/users/thusithathilina/events{/privacy}","received_events_url":"https://api.github.com/users/thusithathilina/received_events","type":"User","site_admin":false},"repo":{"id":33709706,"name":"carbon-deployment","full_name":"thusithathilina/carbon-deployment","owner":{"login":"thusithathilina","id":7578389,"avatar_url":"https://avatars.githubusercontent.com/u/7578389?v=3","gravatar_id":"","url":"https://api.github.com/users/thusithathilina","html_url":"https://github.com/thusithathilina","followers_url":"https://api.github.com/users/thusithathilina/followers","following_url":"https://api.github.com/users/thusithathilina/following{/other_user}","gists_url":"https://api.github.com/users/thusithathilina/gists{/gist_id}","starred_url":"https://api.github.com/users/thusithathilina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thusithathilina/subscriptions","organizations_url":"https://api.github.com/users/thusithathilina/orgs","repos_url":"https://api.github.com/users/thusithathilina/repos","events_url":"https://api.github.com/users/thusithathilina/events{/privacy}","received_events_url":"https://api.github.com/users/thusithathilina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thusithathilina/carbon-deployment","description":"","fork":true,"url":"https://api.github.com/repos/thusithathilina/carbon-deployment","forks_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/forks","keys_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/teams","hooks_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/hooks","issue_events_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/issues/events{/number}","events_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/events","assignees_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/assignees{/user}","branches_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/branches{/branch}","tags_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/tags","blobs_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/git/refs{/sha}","trees_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/statuses/{sha}","languages_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/languages","stargazers_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/stargazers","contributors_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/contributors","subscribers_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/subscribers","subscription_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/subscription","commits_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/commits{/sha}","git_commits_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/git/commits{/sha}","comments_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/comments{/number}","issue_comment_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/issues/comments{/number}","contents_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/contents/{+path}","compare_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/merges","archive_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/downloads","issues_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/issues{/number}","pulls_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/pulls{/number}","milestones_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/milestones{/number}","notifications_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/labels{/name}","releases_url":"https://api.github.com/repos/thusithathilina/carbon-deployment/releases{/id}","created_at":"2015-04-10T05:13:24Z","updated_at":"2015-04-10T05:13:28Z","pushed_at":"2015-09-08T13:13:33Z","git_url":"git://github.com/thusithathilina/carbon-deployment.git","ssh_url":"git@github.com:thusithathilina/carbon-deployment.git","clone_url":"https://github.com/thusithathilina/carbon-deployment.git","svn_url":"https://github.com/thusithathilina/carbon-deployment","homepage":null,"size":6869,"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":"wso2:master","ref":"master","sha":"bcceabb1bf7c02486b5caa6b21b453d9a13b057b","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":16379759,"name":"carbon-deployment","full_name":"wso2/carbon-deployment","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/carbon-deployment","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-deployment","forks_url":"https://api.github.com/repos/wso2/carbon-deployment/forks","keys_url":"https://api.github.com/repos/wso2/carbon-deployment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-deployment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-deployment/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-deployment/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-deployment/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-deployment/events","assignees_url":"https://api.github.com/repos/wso2/carbon-deployment/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-deployment/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-deployment/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-deployment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-deployment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-deployment/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-deployment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-deployment/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-deployment/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-deployment/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-deployment/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-deployment/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-deployment/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-deployment/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-deployment/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-deployment/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-deployment/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-deployment/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-deployment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-deployment/merges","archive_url":"https://api.github.com/repos/wso2/carbon-deployment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-deployment/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-deployment/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-deployment/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-deployment/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-deployment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-deployment/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-deployment/releases{/id}","created_at":"2014-01-30T14:40:30Z","updated_at":"2015-10-14T18:48:53Z","pushed_at":"2015-10-26T05:52:15Z","git_url":"git://github.com/wso2/carbon-deployment.git","ssh_url":"git@github.com:wso2/carbon-deployment.git","clone_url":"https://github.com/wso2/carbon-deployment.git","svn_url":"https://github.com/wso2/carbon-deployment","homepage":null,"size":10615,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":8,"forks":54,"open_issues":8,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-deployment/pulls/168"},"html":{"href":"https://github.com/wso2/carbon-deployment/pull/168"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-deployment/issues/168"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-deployment/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-deployment/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-deployment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-deployment/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-deployment/statuses/35372efc8812c6079e90bc4cc5b81486413cbc88"}}}}