{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments/178288552","pull_request_review_id":108329122,"id":178288552,"diff_hunk":"@@ -461,7 +461,7 @@ private void removeIndentations(OMElement element, List<OMText> removables) {\n                     // XML escape the result of an expression that produces a literal, if the target format\n                     // of the payload is XML.\n                     details.setXml(isXML(value));\n-                    if (!details.isXml() && XML_TYPE.equals(getType()) && !isJson(value)) {\n+                    if (!details.isXml() && XML_TYPE.equals(getType()) && !isJson(value.trim())) {","path":"modules/core/src/main/java/org/apache/synapse/mediators/transform/PayloadFactoryMediator.java","position":5,"original_position":5,"commit_id":"e9e2e9c7eff4bbed9e20b0dd73c077ad185c6c9a","original_commit_id":"e9e2e9c7eff4bbed9e20b0dd73c077ad185c6c9a","user":{"login":"Shakila","id":2033965,"avatar_url":"https://avatars2.githubusercontent.com/u/2033965?v=4","gravatar_id":"","url":"https://api.github.com/users/Shakila","html_url":"https://github.com/Shakila","followers_url":"https://api.github.com/users/Shakila/followers","following_url":"https://api.github.com/users/Shakila/following{/other_user}","gists_url":"https://api.github.com/users/Shakila/gists{/gist_id}","starred_url":"https://api.github.com/users/Shakila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shakila/subscriptions","organizations_url":"https://api.github.com/users/Shakila/orgs","repos_url":"https://api.github.com/users/Shakila/repos","events_url":"https://api.github.com/users/Shakila/events{/privacy}","received_events_url":"https://api.github.com/users/Shakila/received_events","type":"User","site_admin":false},"body":"Yes. They have a use-case where they send spaces.","created_at":"2018-03-30T13:11:21Z","updated_at":"2018-03-30T13:11:22Z","html_url":"https://github.com/wso2/wso2-synapse/pull/1085#discussion_r178288552","pull_request_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/1085","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments/178288552"},"html":{"href":"https://github.com/wso2/wso2-synapse/pull/1085#discussion_r178288552"},"pull_request":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/1085"}},"in_reply_to_id":178288110},"pull_request":{"url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/1085","id":178556165,"html_url":"https://github.com/wso2/wso2-synapse/pull/1085","diff_url":"https://github.com/wso2/wso2-synapse/pull/1085.diff","patch_url":"https://github.com/wso2/wso2-synapse/pull/1085.patch","issue_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/1085","number":1085,"state":"open","locked":false,"title":"Fix wso2/product-ei/issues/2076","user":{"login":"Shakila","id":2033965,"avatar_url":"https://avatars2.githubusercontent.com/u/2033965?v=4","gravatar_id":"","url":"https://api.github.com/users/Shakila","html_url":"https://github.com/Shakila","followers_url":"https://api.github.com/users/Shakila/followers","following_url":"https://api.github.com/users/Shakila/following{/other_user}","gists_url":"https://api.github.com/users/Shakila/gists{/gist_id}","starred_url":"https://api.github.com/users/Shakila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shakila/subscriptions","organizations_url":"https://api.github.com/users/Shakila/orgs","repos_url":"https://api.github.com/users/Shakila/repos","events_url":"https://api.github.com/users/Shakila/events{/privacy}","received_events_url":"https://api.github.com/users/Shakila/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nFix: https://github.com/wso2/product-ei/issues/2076\r\n\r\n## Goals\r\n> Describe the solutions that this feature/fix will introduce to resolve the problems described above\r\n\r\n## Approach\r\n> Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.\r\n\r\n## User stories\r\n> Summary of user stories addressed by this change>\r\n\r\n## Release note\r\n> Brief description of the new feature or bug fix as it will appear in the release notes\r\n\r\n## Documentation\r\n> Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact\r\n\r\n## Training\r\n> Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable\r\n\r\n## Certification\r\n> Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.\r\n\r\n## Marketing\r\n> Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable\r\n\r\n## Automation tests\r\n - Unit tests \r\n   > Code coverage information\r\n - Integration tests\r\n   > Details about the test cases and coverage\r\n\r\n## Security checks\r\n - Followed secure coding standards in http://wso2.com/technical-reports/wso2-secure-engineering-guidelines? yes/no\r\n - Ran FindSecurityBugs plugin and verified report? yes/no\r\n - Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets? yes/no\r\n\r\n## Samples\r\n> Provide high-level details about the samples related to this feature\r\n\r\n## Related PRs\r\n> List any other related PRs\r\n\r\n## Migrations (if applicable)\r\n> Describe migration steps and platforms on which migration has been tested\r\n\r\n## Test environment\r\n> List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested\r\n \r\n## Learning\r\n> Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.","created_at":"2018-03-30T13:01:07Z","updated_at":"2018-03-30T13:11:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e94ac95db4acb709873e7bb1d740fb1423c1f06","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/1085/commits","review_comments_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/1085/comments","review_comment_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/1085/comments","statuses_url":"https://api.github.com/repos/wso2/wso2-synapse/statuses/e9e2e9c7eff4bbed9e20b0dd73c077ad185c6c9a","head":{"label":"Shakila:master","ref":"master","sha":"e9e2e9c7eff4bbed9e20b0dd73c077ad185c6c9a","user":{"login":"Shakila","id":2033965,"avatar_url":"https://avatars2.githubusercontent.com/u/2033965?v=4","gravatar_id":"","url":"https://api.github.com/users/Shakila","html_url":"https://github.com/Shakila","followers_url":"https://api.github.com/users/Shakila/followers","following_url":"https://api.github.com/users/Shakila/following{/other_user}","gists_url":"https://api.github.com/users/Shakila/gists{/gist_id}","starred_url":"https://api.github.com/users/Shakila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shakila/subscriptions","organizations_url":"https://api.github.com/users/Shakila/orgs","repos_url":"https://api.github.com/users/Shakila/repos","events_url":"https://api.github.com/users/Shakila/events{/privacy}","received_events_url":"https://api.github.com/users/Shakila/received_events","type":"User","site_admin":false},"repo":{"id":45106751,"name":"wso2-synapse","full_name":"Shakila/wso2-synapse","owner":{"login":"Shakila","id":2033965,"avatar_url":"https://avatars2.githubusercontent.com/u/2033965?v=4","gravatar_id":"","url":"https://api.github.com/users/Shakila","html_url":"https://github.com/Shakila","followers_url":"https://api.github.com/users/Shakila/followers","following_url":"https://api.github.com/users/Shakila/following{/other_user}","gists_url":"https://api.github.com/users/Shakila/gists{/gist_id}","starred_url":"https://api.github.com/users/Shakila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shakila/subscriptions","organizations_url":"https://api.github.com/users/Shakila/orgs","repos_url":"https://api.github.com/users/Shakila/repos","events_url":"https://api.github.com/users/Shakila/events{/privacy}","received_events_url":"https://api.github.com/users/Shakila/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shakila/wso2-synapse","description":null,"fork":true,"url":"https://api.github.com/repos/Shakila/wso2-synapse","forks_url":"https://api.github.com/repos/Shakila/wso2-synapse/forks","keys_url":"https://api.github.com/repos/Shakila/wso2-synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shakila/wso2-synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shakila/wso2-synapse/teams","hooks_url":"https://api.github.com/repos/Shakila/wso2-synapse/hooks","issue_events_url":"https://api.github.com/repos/Shakila/wso2-synapse/issues/events{/number}","events_url":"https://api.github.com/repos/Shakila/wso2-synapse/events","assignees_url":"https://api.github.com/repos/Shakila/wso2-synapse/assignees{/user}","branches_url":"https://api.github.com/repos/Shakila/wso2-synapse/branches{/branch}","tags_url":"https://api.github.com/repos/Shakila/wso2-synapse/tags","blobs_url":"https://api.github.com/repos/Shakila/wso2-synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shakila/wso2-synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shakila/wso2-synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shakila/wso2-synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shakila/wso2-synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/Shakila/wso2-synapse/languages","stargazers_url":"https://api.github.com/repos/Shakila/wso2-synapse/stargazers","contributors_url":"https://api.github.com/repos/Shakila/wso2-synapse/contributors","subscribers_url":"https://api.github.com/repos/Shakila/wso2-synapse/subscribers","subscription_url":"https://api.github.com/repos/Shakila/wso2-synapse/subscription","commits_url":"https://api.github.com/repos/Shakila/wso2-synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shakila/wso2-synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shakila/wso2-synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shakila/wso2-synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shakila/wso2-synapse/contents/{+path}","compare_url":"https://api.github.com/repos/Shakila/wso2-synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shakila/wso2-synapse/merges","archive_url":"https://api.github.com/repos/Shakila/wso2-synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shakila/wso2-synapse/downloads","issues_url":"https://api.github.com/repos/Shakila/wso2-synapse/issues{/number}","pulls_url":"https://api.github.com/repos/Shakila/wso2-synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/Shakila/wso2-synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/Shakila/wso2-synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shakila/wso2-synapse/labels{/name}","releases_url":"https://api.github.com/repos/Shakila/wso2-synapse/releases{/id}","deployments_url":"https://api.github.com/repos/Shakila/wso2-synapse/deployments","created_at":"2015-10-28T11:04:29Z","updated_at":"2018-03-30T13:00:18Z","pushed_at":"2018-03-30T13:00:16Z","git_url":"git://github.com/Shakila/wso2-synapse.git","ssh_url":"git@github.com:Shakila/wso2-synapse.git","clone_url":"https://github.com/Shakila/wso2-synapse.git","svn_url":"https://github.com/Shakila/wso2-synapse","homepage":null,"size":12411,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"f4b414624b63a7e5410e2093a97b2e5fe1217957","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","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":16471584,"name":"wso2-synapse","full_name":"wso2/wso2-synapse","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars3.githubusercontent.com/u/533043?v=4","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/wso2-synapse","description":null,"fork":false,"url":"https://api.github.com/repos/wso2/wso2-synapse","forks_url":"https://api.github.com/repos/wso2/wso2-synapse/forks","keys_url":"https://api.github.com/repos/wso2/wso2-synapse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/wso2-synapse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/wso2-synapse/teams","hooks_url":"https://api.github.com/repos/wso2/wso2-synapse/hooks","issue_events_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/wso2-synapse/events","assignees_url":"https://api.github.com/repos/wso2/wso2-synapse/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/wso2-synapse/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/wso2-synapse/tags","blobs_url":"https://api.github.com/repos/wso2/wso2-synapse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/wso2-synapse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/wso2-synapse/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/wso2-synapse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/wso2-synapse/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/wso2-synapse/languages","stargazers_url":"https://api.github.com/repos/wso2/wso2-synapse/stargazers","contributors_url":"https://api.github.com/repos/wso2/wso2-synapse/contributors","subscribers_url":"https://api.github.com/repos/wso2/wso2-synapse/subscribers","subscription_url":"https://api.github.com/repos/wso2/wso2-synapse/subscription","commits_url":"https://api.github.com/repos/wso2/wso2-synapse/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/wso2-synapse/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/wso2-synapse/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/wso2-synapse/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/wso2-synapse/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/wso2-synapse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/wso2-synapse/merges","archive_url":"https://api.github.com/repos/wso2/wso2-synapse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/wso2-synapse/downloads","issues_url":"https://api.github.com/repos/wso2/wso2-synapse/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/wso2-synapse/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/wso2-synapse/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/wso2-synapse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/wso2-synapse/labels{/name}","releases_url":"https://api.github.com/repos/wso2/wso2-synapse/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/wso2-synapse/deployments","created_at":"2014-02-03T06:28:42Z","updated_at":"2018-03-30T04:09:16Z","pushed_at":"2018-03-30T13:01:08Z","git_url":"git://github.com/wso2/wso2-synapse.git","ssh_url":"git@github.com:wso2/wso2-synapse.git","clone_url":"https://github.com/wso2/wso2-synapse.git","svn_url":"https://github.com/wso2/wso2-synapse","homepage":null,"size":14773,"stargazers_count":25,"watchers_count":25,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":281,"mirror_url":null,"archived":false,"open_issues_count":12,"license":null,"forks":281,"open_issues":12,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/1085"},"html":{"href":"https://github.com/wso2/wso2-synapse/pull/1085"},"issue":{"href":"https://api.github.com/repos/wso2/wso2-synapse/issues/1085"},"comments":{"href":"https://api.github.com/repos/wso2/wso2-synapse/issues/1085/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/1085/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/wso2-synapse/pulls/1085/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/wso2-synapse/statuses/e9e2e9c7eff4bbed9e20b0dd73c077ad185c6c9a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Shakila"}}