{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments/47463949","id":47463949,"diff_hunk":"@@ -126,7 +128,20 @@ public AbstractAPIManager(String username) throws APIManagementException {\n                 //load resources for each tenants.\n                 APIUtil.loadloadTenantAPIRXT( tenantUserName, tenantId);\n                 APIUtil.loadTenantAPIPolicy( tenantUserName, tenantId);\n-                APIUtil.writeDefinedSequencesToTenantRegistry(tenantId);\n+\n+                //Check whether GatewayType is synapse before loading sequences into registry\n+                String filePath =\n+                        CarbonUtils.getCarbonHome() + File.separator + \"repository\" + File.separator + \"conf\" +\n+                                File.separator + \"api-manager.xml\";\n+\n+                APIManagerConfiguration configuration = new APIManagerConfiguration();\n+                configuration.load(filePath);","path":"components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/AbstractAPIManager.java","position":28,"original_position":28,"commit_id":"f3db92049547e75c8ebd9a19fabcd1052347deac","original_commit_id":"f3db92049547e75c8ebd9a19fabcd1052347deac","user":{"login":"lakmali","id":3793436,"avatar_url":"https://avatars.githubusercontent.com/u/3793436?v=3","gravatar_id":"","url":"https://api.github.com/users/lakmali","html_url":"https://github.com/lakmali","followers_url":"https://api.github.com/users/lakmali/followers","following_url":"https://api.github.com/users/lakmali/following{/other_user}","gists_url":"https://api.github.com/users/lakmali/gists{/gist_id}","starred_url":"https://api.github.com/users/lakmali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakmali/subscriptions","organizations_url":"https://api.github.com/users/lakmali/orgs","repos_url":"https://api.github.com/users/lakmali/repos","events_url":"https://api.github.com/users/lakmali/events{/privacy}","received_events_url":"https://api.github.com/users/lakmali/received_events","type":"User","site_admin":false},"body":"You can use the APIManagerConfigurationService OSGI service available with out reading api-manager.xml again here. \r\n\r\nAPIManagerConfiguration config = ServiceReferenceHolder.getInstance().getAPIManagerConfigurationService().\r\n                getAPIManagerConfiguration();\r\n","created_at":"2015-12-14T06:08:39Z","updated_at":"2015-12-14T06:08:39Z","html_url":"https://github.com/wso2/carbon-apimgt/pull/1381#discussion_r47463949","pull_request_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/1381","_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments/47463949"},"html":{"href":"https://github.com/wso2/carbon-apimgt/pull/1381#discussion_r47463949"},"pull_request":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/1381"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/1381","id":52989893,"html_url":"https://github.com/wso2/carbon-apimgt/pull/1381","diff_url":"https://github.com/wso2/carbon-apimgt/pull/1381.diff","patch_url":"https://github.com/wso2/carbon-apimgt/pull/1381.patch","issue_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/1381","number":1381,"state":"open","locked":false,"title":"Check for GatewayType for methods that attempts to load \"customsequences\"","user":{"login":"Shabirmean","id":7249208,"avatar_url":"https://avatars.githubusercontent.com/u/7249208?v=3","gravatar_id":"","url":"https://api.github.com/users/Shabirmean","html_url":"https://github.com/Shabirmean","followers_url":"https://api.github.com/users/Shabirmean/followers","following_url":"https://api.github.com/users/Shabirmean/following{/other_user}","gists_url":"https://api.github.com/users/Shabirmean/gists{/gist_id}","starred_url":"https://api.github.com/users/Shabirmean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shabirmean/subscriptions","organizations_url":"https://api.github.com/users/Shabirmean/orgs","repos_url":"https://api.github.com/users/Shabirmean/repos","events_url":"https://api.github.com/users/Shabirmean/events{/privacy}","received_events_url":"https://api.github.com/users/Shabirmean/received_events","type":"User","site_admin":false},"body":"The calls for loading custom-sequences in the classes \"AbstractAPIManager\" and \"CommonConfigDeployer\", did not have the GatewayType check in the api-manager.xml file before attempting to load. This effects scenarios where the GatewayType configured is not \"synapse\".","created_at":"2015-12-08T14:53:11Z","updated_at":"2015-12-14T06:08:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17e207e6f0af031fcb2c0a64f6f834dc806b99f0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/1381/commits","review_comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/1381/comments","review_comment_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/1381/comments","statuses_url":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/f3db92049547e75c8ebd9a19fabcd1052347deac","head":{"label":"Shabirmean:release-1.10.x","ref":"release-1.10.x","sha":"f3db92049547e75c8ebd9a19fabcd1052347deac","user":{"login":"Shabirmean","id":7249208,"avatar_url":"https://avatars.githubusercontent.com/u/7249208?v=3","gravatar_id":"","url":"https://api.github.com/users/Shabirmean","html_url":"https://github.com/Shabirmean","followers_url":"https://api.github.com/users/Shabirmean/followers","following_url":"https://api.github.com/users/Shabirmean/following{/other_user}","gists_url":"https://api.github.com/users/Shabirmean/gists{/gist_id}","starred_url":"https://api.github.com/users/Shabirmean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shabirmean/subscriptions","organizations_url":"https://api.github.com/users/Shabirmean/orgs","repos_url":"https://api.github.com/users/Shabirmean/repos","events_url":"https://api.github.com/users/Shabirmean/events{/privacy}","received_events_url":"https://api.github.com/users/Shabirmean/received_events","type":"User","site_admin":false},"repo":{"id":47624028,"name":"carbon-apimgt","full_name":"Shabirmean/carbon-apimgt","owner":{"login":"Shabirmean","id":7249208,"avatar_url":"https://avatars.githubusercontent.com/u/7249208?v=3","gravatar_id":"","url":"https://api.github.com/users/Shabirmean","html_url":"https://github.com/Shabirmean","followers_url":"https://api.github.com/users/Shabirmean/followers","following_url":"https://api.github.com/users/Shabirmean/following{/other_user}","gists_url":"https://api.github.com/users/Shabirmean/gists{/gist_id}","starred_url":"https://api.github.com/users/Shabirmean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shabirmean/subscriptions","organizations_url":"https://api.github.com/users/Shabirmean/orgs","repos_url":"https://api.github.com/users/Shabirmean/repos","events_url":"https://api.github.com/users/Shabirmean/events{/privacy}","received_events_url":"https://api.github.com/users/Shabirmean/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shabirmean/carbon-apimgt","description":"","fork":true,"url":"https://api.github.com/repos/Shabirmean/carbon-apimgt","forks_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/forks","keys_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/teams","hooks_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/hooks","issue_events_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/issues/events{/number}","events_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/events","assignees_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/assignees{/user}","branches_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/branches{/branch}","tags_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/tags","blobs_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/statuses/{sha}","languages_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/languages","stargazers_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/stargazers","contributors_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/contributors","subscribers_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/subscribers","subscription_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/subscription","commits_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/contents/{+path}","compare_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/merges","archive_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/downloads","issues_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/issues{/number}","pulls_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/pulls{/number}","milestones_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/milestones{/number}","notifications_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/labels{/name}","releases_url":"https://api.github.com/repos/Shabirmean/carbon-apimgt/releases{/id}","created_at":"2015-12-08T13:32:09Z","updated_at":"2015-12-08T13:32:21Z","pushed_at":"2015-12-08T14:42:46Z","git_url":"git://github.com/Shabirmean/carbon-apimgt.git","ssh_url":"git@github.com:Shabirmean/carbon-apimgt.git","clone_url":"https://github.com/Shabirmean/carbon-apimgt.git","svn_url":"https://github.com/Shabirmean/carbon-apimgt","homepage":null,"size":61348,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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:release-1.10.x","ref":"release-1.10.x","sha":"30a8f9640e8b2c6a91cc573e88f315add65ee057","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":17201744,"name":"carbon-apimgt","full_name":"wso2/carbon-apimgt","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-apimgt","description":"","fork":false,"url":"https://api.github.com/repos/wso2/carbon-apimgt","forks_url":"https://api.github.com/repos/wso2/carbon-apimgt/forks","keys_url":"https://api.github.com/repos/wso2/carbon-apimgt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/carbon-apimgt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/carbon-apimgt/teams","hooks_url":"https://api.github.com/repos/wso2/carbon-apimgt/hooks","issue_events_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/carbon-apimgt/events","assignees_url":"https://api.github.com/repos/wso2/carbon-apimgt/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/carbon-apimgt/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/carbon-apimgt/tags","blobs_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/carbon-apimgt/languages","stargazers_url":"https://api.github.com/repos/wso2/carbon-apimgt/stargazers","contributors_url":"https://api.github.com/repos/wso2/carbon-apimgt/contributors","subscribers_url":"https://api.github.com/repos/wso2/carbon-apimgt/subscribers","subscription_url":"https://api.github.com/repos/wso2/carbon-apimgt/subscription","commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/carbon-apimgt/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/carbon-apimgt/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/carbon-apimgt/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/carbon-apimgt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/carbon-apimgt/merges","archive_url":"https://api.github.com/repos/wso2/carbon-apimgt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/carbon-apimgt/downloads","issues_url":"https://api.github.com/repos/wso2/carbon-apimgt/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/carbon-apimgt/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/carbon-apimgt/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/carbon-apimgt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/carbon-apimgt/labels{/name}","releases_url":"https://api.github.com/repos/wso2/carbon-apimgt/releases{/id}","created_at":"2014-02-26T06:46:48Z","updated_at":"2015-12-10T01:58:43Z","pushed_at":"2015-12-14T05:57:30Z","git_url":"git://github.com/wso2/carbon-apimgt.git","ssh_url":"git@github.com:wso2/carbon-apimgt.git","clone_url":"https://github.com/wso2/carbon-apimgt.git","svn_url":"https://github.com/wso2/carbon-apimgt","homepage":null,"size":65169,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":114,"mirror_url":null,"open_issues_count":8,"forks":114,"open_issues":8,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/1381"},"html":{"href":"https://github.com/wso2/carbon-apimgt/pull/1381"},"issue":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/issues/1381"},"comments":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/issues/1381/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/1381/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/pulls/1381/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/carbon-apimgt/statuses/f3db92049547e75c8ebd9a19fabcd1052347deac"}}}}