{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/esb-connectors/pulls/comments/44250786","id":44250786,"diff_hunk":"@@ -1,71 +1,68 @@\n <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n-<template name=\"changeStatus\" xmlns=\"http://ws.apache.org/ns/synapse\">\n-\t<parameter name=\"jobId\" description=\"The unique ID of the Job Opening record for which the associated candidate status has to be changed.\" />\n-\t<parameter name=\"candidateIds\" description=\"The comma separated candidate ids for which the status has to be changed, with respect to the job opening.\" />\n-\t<parameter name=\"candidateStatus\" description=\"The status of the resume with respect to the job opening.\" />\n-\t<parameter name=\"comments\" description=\"The comments for why the status is being changed.\" />\n-\n-\t<sequence>\n-\t\t<property name=\"uri.var.jobId\" expression=\"$func:jobId\" />\n-\t\t<property name=\"uri.var.candidateIds\" expression=\"$func:candidateIds\" />\n-\t\t<property name=\"uri.var.candidateStatus\" expression=\"$func:candidateStatus\" />\n-\t\t<property name=\"uri.var.comments\" expression=\"$func:comments\" />\n+<!--\n+   Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n \n-\t\t<payloadFactory media-type=\"json\">\n-\t\t\t\t<format>\n-\t\t\t\t\t{\n-\t\t\t\t\t\t\"authtoken\": \"$1\",\n-\t\t\t\t\t\t\"scope\":     \"$2\",\n-\t\t\t\t\t\t\"candidateIds\": \"$3\",\n-\t\t\t\t\t\t\"candidateStatus\": \"$4\"\n-\t\t\t\t\t}\n-\t\t\t\t</format>\n-\t\t\t\t<args>\n-\t\t\t\t\t<arg expression=\"get-property('uri.var.authToken')\" />\n-\t\t\t\t\t<arg expression=\"get-property('uri.var.scope')\" />\n-\t\t\t\t\t<arg expression=\"get-property('uri.var.candidateIds')\" />\n-\t\t\t\t\t<arg expression=\"get-property('uri.var.candidateStatus')\" />\n-\t\t\t\t</args>\n-\t\t\t</payloadFactory>\t\n-\t\n-\t\n-\t\t\t<script language=\"js\">\n-\t            <![CDATA[\n-\t                    \n-\t        \t//initializing the payload\n-\t        \tvar payload = mc.getPayloadJSON();\n-\t        \t\n-\t            // initializing the optional parameters\n-\t\t\t\tvar jobId = mc.getProperty(\"uri.var.jobId\");\n-\t\t\t\tvar comments = mc.getProperty(\"uri.var.comments\");\n-\t\t\t\t\n-\t\t\t\t// adding the optional parameters to the payload\n-\t\t\t\tif (jobId != null && jobId != \"\") {\n-\t\t\t\t\tpayload.jobId = jobId;\n-\t\t\t\t}\n-\t\t\t\t\n-\t\t\t\tif (comments != null && comments != \"\") {\n-\t\t\t\t\tpayload.comments = comments;\n-\t\t\t\t}\n+   WSO2 Inc. licenses this file to you under the Apache License,\n+   Version 2.0 (the \"License\"); you may not use this file except\n+   in compliance with the License.\n+   You may obtain a copy of the License at\n \n-\t        \tmc.setPayloadJSON(payload); \n-\t            ]]>\n+   http://www.apache.org/licenses/LICENSE-2.0\n \n-\t\t\t</script>\n-\t\t\n-\t\t    <property name=\"messageType\" value=\"application/x-www-form-urlencoded\" scope=\"axis2\" />\n-\t\t\n-\t\t\t<call>\n-\t\t\t\t<endpoint>\n-\t\t\t\t\t<http method=\"post\" uri-template=\"{uri.var.apiUrl}/ats/private/{uri.var.responseFormat}/Candidates/changeStatus\" />\n-\t\t\t\t</endpoint>\n-\t\t\t</call>\n-\t\t\t\n-\t\t\t<!-- Removing custom headers -->\n-\t\t\t<header name=\"Strict-Transport-Security\" action=\"remove\" scope=\"transport\" />\n-\t\t\t<header name=\"X-XSS-Protection\" action=\"remove\" scope=\"transport\" />\n-\t\t\t<header name=\"X-Content-Type-Options\" action=\"remove\" scope=\"transport\" />\n-\t\t\t<header name=\"Pragma\" action=\"remove\" scope=\"transport\" />\n-\t\t\t<header name=\"Cache-Control\" action=\"remove\" scope=\"transport\" />\n-\t\t</sequence>\n+   Unless required by applicable law or agreed to in writing,\n+   software distributed under the License is distributed on an\n+   \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+   KIND, either express or implied. See the License for the\n+   specific language governing permissions and limitations\n+   under the License.\n+-->\n+<template name=\"changeStatus\" xmlns=\"http://ws.apache.org/ns/synapse\">\n+    <parameter name=\"jobId\"\n+               description=\"The unique ID of the Job Opening record for which the associated candidate status has to be changed.\"/>\n+    <parameter name=\"candidateIds\"\n+               description=\"The comma separated candidate ids for which the status has to be changed, with respect to the job opening.\"/>\n+    <parameter name=\"candidateStatus\" description=\"The status of the resume with respect to the job opening.\"/>\n+    <parameter name=\"comments\" description=\"The comments for why the status is being changed.\"/>\n+    <parameter name=\"version\" description=\"The API version being used.\"/>\n+    <sequence>\n+        <property name=\"uri.var.jobId\" expression=\"$func:jobId\"/>\n+        <property name=\"uri.var.candidateIds\" expression=\"$func:candidateIds\"/>\n+        <property name=\"uri.var.candidateStatus\" expression=\"$func:candidateStatus\"/>\n+        <property name=\"uri.var.comments\" expression=\"$func:comments\"/>\n+        <property name=\"uri.var.version\" expression=\"$func:version\"/>\n+        <property name=\"uri.var.urlQuery\" value=\"\"/>\n+        <script language=\"js\">\n+            <![CDATA[\n+            var jobId = mc.getProperty('uri.var.jobId');\n+            var comments = mc.getProperty('uri.var.comments');\n+            var version = mc.getProperty('uri.var.version');\n+            var urlQuery = \"\";\n+            if (jobId != null && jobId != \"\") {\n+               urlQuery += \"jobId=\" + jobId + '&';\n+            }\n+            if (comments != null && comments != \"\") {\n+               urlQuery += \"comments=\" + comments + '&';","path":"zohorecruit/zohorecruit-connector/zohorecruit-connector-1.0.0/org.wso2.carbon.connector/src/main/resources/zohorecruit-candidates/changeStatus.xml","position":110,"original_position":110,"commit_id":"41d136460cf4bc5ac4fd33f18ed23f02308aa5d3","original_commit_id":"41d136460cf4bc5ac4fd33f18ed23f02308aa5d3","user":{"login":"kesavany","id":1311321,"avatar_url":"https://avatars.githubusercontent.com/u/1311321?v=3","gravatar_id":"","url":"https://api.github.com/users/kesavany","html_url":"https://github.com/kesavany","followers_url":"https://api.github.com/users/kesavany/followers","following_url":"https://api.github.com/users/kesavany/following{/other_user}","gists_url":"https://api.github.com/users/kesavany/gists{/gist_id}","starred_url":"https://api.github.com/users/kesavany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesavany/subscriptions","organizations_url":"https://api.github.com/users/kesavany/orgs","repos_url":"https://api.github.com/users/kesavany/repos","events_url":"https://api.github.com/users/kesavany/events{/privacy}","received_events_url":"https://api.github.com/users/kesavany/received_events","type":"User","site_admin":false},"body":"Fixed in https://github.com/wso2/esb-connectors/pull/406","created_at":"2015-11-09T08:40:52Z","updated_at":"2015-11-09T08:40:52Z","html_url":"https://github.com/wso2/esb-connectors/pull/271#discussion_r44250786","pull_request_url":"https://api.github.com/repos/wso2/esb-connectors/pulls/271","_links":{"self":{"href":"https://api.github.com/repos/wso2/esb-connectors/pulls/comments/44250786"},"html":{"href":"https://github.com/wso2/esb-connectors/pull/271#discussion_r44250786"},"pull_request":{"href":"https://api.github.com/repos/wso2/esb-connectors/pulls/271"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/esb-connectors/pulls/271","id":42549071,"html_url":"https://github.com/wso2/esb-connectors/pull/271","diff_url":"https://github.com/wso2/esb-connectors/pull/271.diff","patch_url":"https://github.com/wso2/esb-connectors/pull/271.patch","issue_url":"https://api.github.com/repos/wso2/esb-connectors/issues/271","number":271,"state":"closed","locked":false,"title":"zohorecruit connector modified according to API changes.","user":{"login":"kesavany","id":1311321,"avatar_url":"https://avatars.githubusercontent.com/u/1311321?v=3","gravatar_id":"","url":"https://api.github.com/users/kesavany","html_url":"https://github.com/kesavany","followers_url":"https://api.github.com/users/kesavany/followers","following_url":"https://api.github.com/users/kesavany/following{/other_user}","gists_url":"https://api.github.com/users/kesavany/gists{/gist_id}","starred_url":"https://api.github.com/users/kesavany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesavany/subscriptions","organizations_url":"https://api.github.com/users/kesavany/orgs","repos_url":"https://api.github.com/users/kesavany/repos","events_url":"https://api.github.com/users/kesavany/events{/privacy}","received_events_url":"https://api.github.com/users/kesavany/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-17T02:06:35Z","updated_at":"2015-11-09T08:40:52Z","closed_at":"2015-08-17T04:28:38Z","merged_at":"2015-08-17T04:28:38Z","merge_commit_sha":"1ee9583379cff7ce54dc1b8b03adfd7eccaee6fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/esb-connectors/pulls/271/commits","review_comments_url":"https://api.github.com/repos/wso2/esb-connectors/pulls/271/comments","review_comment_url":"https://api.github.com/repos/wso2/esb-connectors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/esb-connectors/issues/271/comments","statuses_url":"https://api.github.com/repos/wso2/esb-connectors/statuses/41d136460cf4bc5ac4fd33f18ed23f02308aa5d3","head":{"label":"kesavany:master","ref":"master","sha":"41d136460cf4bc5ac4fd33f18ed23f02308aa5d3","user":{"login":"kesavany","id":1311321,"avatar_url":"https://avatars.githubusercontent.com/u/1311321?v=3","gravatar_id":"","url":"https://api.github.com/users/kesavany","html_url":"https://github.com/kesavany","followers_url":"https://api.github.com/users/kesavany/followers","following_url":"https://api.github.com/users/kesavany/following{/other_user}","gists_url":"https://api.github.com/users/kesavany/gists{/gist_id}","starred_url":"https://api.github.com/users/kesavany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesavany/subscriptions","organizations_url":"https://api.github.com/users/kesavany/orgs","repos_url":"https://api.github.com/users/kesavany/repos","events_url":"https://api.github.com/users/kesavany/events{/privacy}","received_events_url":"https://api.github.com/users/kesavany/received_events","type":"User","site_admin":false},"repo":{"id":35799433,"name":"esb-connectors","full_name":"kesavany/esb-connectors","owner":{"login":"kesavany","id":1311321,"avatar_url":"https://avatars.githubusercontent.com/u/1311321?v=3","gravatar_id":"","url":"https://api.github.com/users/kesavany","html_url":"https://github.com/kesavany","followers_url":"https://api.github.com/users/kesavany/followers","following_url":"https://api.github.com/users/kesavany/following{/other_user}","gists_url":"https://api.github.com/users/kesavany/gists{/gist_id}","starred_url":"https://api.github.com/users/kesavany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kesavany/subscriptions","organizations_url":"https://api.github.com/users/kesavany/orgs","repos_url":"https://api.github.com/users/kesavany/repos","events_url":"https://api.github.com/users/kesavany/events{/privacy}","received_events_url":"https://api.github.com/users/kesavany/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kesavany/esb-connectors","description":"","fork":true,"url":"https://api.github.com/repos/kesavany/esb-connectors","forks_url":"https://api.github.com/repos/kesavany/esb-connectors/forks","keys_url":"https://api.github.com/repos/kesavany/esb-connectors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kesavany/esb-connectors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kesavany/esb-connectors/teams","hooks_url":"https://api.github.com/repos/kesavany/esb-connectors/hooks","issue_events_url":"https://api.github.com/repos/kesavany/esb-connectors/issues/events{/number}","events_url":"https://api.github.com/repos/kesavany/esb-connectors/events","assignees_url":"https://api.github.com/repos/kesavany/esb-connectors/assignees{/user}","branches_url":"https://api.github.com/repos/kesavany/esb-connectors/branches{/branch}","tags_url":"https://api.github.com/repos/kesavany/esb-connectors/tags","blobs_url":"https://api.github.com/repos/kesavany/esb-connectors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kesavany/esb-connectors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kesavany/esb-connectors/git/refs{/sha}","trees_url":"https://api.github.com/repos/kesavany/esb-connectors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kesavany/esb-connectors/statuses/{sha}","languages_url":"https://api.github.com/repos/kesavany/esb-connectors/languages","stargazers_url":"https://api.github.com/repos/kesavany/esb-connectors/stargazers","contributors_url":"https://api.github.com/repos/kesavany/esb-connectors/contributors","subscribers_url":"https://api.github.com/repos/kesavany/esb-connectors/subscribers","subscription_url":"https://api.github.com/repos/kesavany/esb-connectors/subscription","commits_url":"https://api.github.com/repos/kesavany/esb-connectors/commits{/sha}","git_commits_url":"https://api.github.com/repos/kesavany/esb-connectors/git/commits{/sha}","comments_url":"https://api.github.com/repos/kesavany/esb-connectors/comments{/number}","issue_comment_url":"https://api.github.com/repos/kesavany/esb-connectors/issues/comments{/number}","contents_url":"https://api.github.com/repos/kesavany/esb-connectors/contents/{+path}","compare_url":"https://api.github.com/repos/kesavany/esb-connectors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kesavany/esb-connectors/merges","archive_url":"https://api.github.com/repos/kesavany/esb-connectors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kesavany/esb-connectors/downloads","issues_url":"https://api.github.com/repos/kesavany/esb-connectors/issues{/number}","pulls_url":"https://api.github.com/repos/kesavany/esb-connectors/pulls{/number}","milestones_url":"https://api.github.com/repos/kesavany/esb-connectors/milestones{/number}","notifications_url":"https://api.github.com/repos/kesavany/esb-connectors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kesavany/esb-connectors/labels{/name}","releases_url":"https://api.github.com/repos/kesavany/esb-connectors/releases{/id}","created_at":"2015-05-18T05:55:13Z","updated_at":"2015-05-18T05:55:56Z","pushed_at":"2015-11-09T08:29:01Z","git_url":"git://github.com/kesavany/esb-connectors.git","ssh_url":"git@github.com:kesavany/esb-connectors.git","clone_url":"https://github.com/kesavany/esb-connectors.git","svn_url":"https://github.com/kesavany/esb-connectors","homepage":null,"size":168048,"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":"97af293fc1d1d8635045ab300c5b50aee18e6a32","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":14882706,"name":"esb-connectors","full_name":"wso2/esb-connectors","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/esb-connectors","description":"","fork":false,"url":"https://api.github.com/repos/wso2/esb-connectors","forks_url":"https://api.github.com/repos/wso2/esb-connectors/forks","keys_url":"https://api.github.com/repos/wso2/esb-connectors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/esb-connectors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/esb-connectors/teams","hooks_url":"https://api.github.com/repos/wso2/esb-connectors/hooks","issue_events_url":"https://api.github.com/repos/wso2/esb-connectors/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/esb-connectors/events","assignees_url":"https://api.github.com/repos/wso2/esb-connectors/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/esb-connectors/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/esb-connectors/tags","blobs_url":"https://api.github.com/repos/wso2/esb-connectors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/esb-connectors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/esb-connectors/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/esb-connectors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/esb-connectors/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/esb-connectors/languages","stargazers_url":"https://api.github.com/repos/wso2/esb-connectors/stargazers","contributors_url":"https://api.github.com/repos/wso2/esb-connectors/contributors","subscribers_url":"https://api.github.com/repos/wso2/esb-connectors/subscribers","subscription_url":"https://api.github.com/repos/wso2/esb-connectors/subscription","commits_url":"https://api.github.com/repos/wso2/esb-connectors/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/esb-connectors/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/esb-connectors/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/esb-connectors/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/esb-connectors/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/esb-connectors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/esb-connectors/merges","archive_url":"https://api.github.com/repos/wso2/esb-connectors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/esb-connectors/downloads","issues_url":"https://api.github.com/repos/wso2/esb-connectors/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/esb-connectors/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/esb-connectors/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/esb-connectors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/esb-connectors/labels{/name}","releases_url":"https://api.github.com/repos/wso2/esb-connectors/releases{/id}","created_at":"2013-12-03T03:43:53Z","updated_at":"2015-10-14T16:43:20Z","pushed_at":"2015-11-09T08:29:03Z","git_url":"git://github.com/wso2/esb-connectors.git","ssh_url":"git@github.com:wso2/esb-connectors.git","clone_url":"https://github.com/wso2/esb-connectors.git","svn_url":"https://github.com/wso2/esb-connectors","homepage":null,"size":232079,"stargazers_count":23,"watchers_count":23,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":177,"mirror_url":null,"open_issues_count":51,"forks":177,"open_issues":51,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/esb-connectors/pulls/271"},"html":{"href":"https://github.com/wso2/esb-connectors/pull/271"},"issue":{"href":"https://api.github.com/repos/wso2/esb-connectors/issues/271"},"comments":{"href":"https://api.github.com/repos/wso2/esb-connectors/issues/271/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/esb-connectors/pulls/271/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/esb-connectors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/esb-connectors/pulls/271/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/esb-connectors/statuses/41d136460cf4bc5ac4fd33f18ed23f02308aa5d3"}}}}