{"action":"created","issue":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/353","repository_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-CordovaPlugin","labels_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/353/labels{/name}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/353/comments","events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/353/events","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/353","id":260949190,"number":353,"title":"GET requests not returning anything in 5.3.0","user":{"login":"mcekol","id":3988314,"avatar_url":"https://avatars1.githubusercontent.com/u/3988314?v=4","gravatar_id":"","url":"https://api.github.com/users/mcekol","html_url":"https://github.com/mcekol","followers_url":"https://api.github.com/users/mcekol/followers","following_url":"https://api.github.com/users/mcekol/following{/other_user}","gists_url":"https://api.github.com/users/mcekol/gists{/gist_id}","starred_url":"https://api.github.com/users/mcekol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcekol/subscriptions","organizations_url":"https://api.github.com/users/mcekol/orgs","repos_url":"https://api.github.com/users/mcekol/repos","events_url":"https://api.github.com/users/mcekol/events{/privacy}","received_events_url":"https://api.github.com/users/mcekol/received_events","type":"User","site_admin":false},"labels":[{"id":125082826,"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-CordovaPlugin/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-09-27T12:05:21Z","updated_at":"2017-11-27T08:21:55Z","closed_at":null,"author_association":"NONE","body":"I have an issue when querying a custom apex rest resource on salesforce after the upgrade to 5.3.0:\r\nI'm using \r\n`force.apexrest('/services/apexrest/TestRestApi*', function(a) {  console.log(a); });`\r\nfrom the console and logging the output.\r\n\r\nThis works:\r\n```\r\n@RestResource(urlMapping='/TestRestApiSObject')\r\nglobal with sharing class TestRestApiSObject {\r\n\r\n    @HttpGet\r\n    global static Account get() {\r\n        Account a = [SELECT Id, Name, Phone, Website FROM Account LIMIT 1];\r\n        \r\n        return a;\r\n    }\r\n}\r\n```\r\n\r\nIt returns an account record.\r\n\r\nThis fails:\r\n```\r\n@RestResource(urlMapping='/TestRestApiBoolean')\r\nglobal with sharing class TestRestApiBoolean {\r\n\r\n    @HttpGet\r\n    global static Boolean get() {\r\n        return true;\r\n    }\r\n}\r\n```\r\nIt returns null instead of true.\r\n\r\nthis also fails:\r\n```\r\n@RestResource(urlMapping='/TestRestApiDate')\r\nglobal with sharing class TestRestApiDate {\r\n\r\n    @HttpGet\r\n    global static Date get() {\r\n        return Date.today();\r\n    }\r\n}\r\n```\r\nIt returns null instead of the date.\r\n\r\nthis also fails:\r\n```\r\n@RestResource(urlMapping='/TestRestApiString')\r\nglobal with sharing class TestRestApiString {\r\n\r\n    @HttpGet\r\n    global static String get() {\r\n        return 'Hello World!';\r\n    }\r\n}\r\n```\r\nIt returns null instead of 'Hello World'.\r\n\r\nI haven't tested other data types. Is this expected behavior? Everything was working before the upgrade (I was using 4.1.1).\r\n\r\nforceios version \r\n5.3.0\r\ncordova -v \r\n7.0.1\r\n\r\nPlease let me know if you need additional information."},"comment":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/comments/347109090","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/353#issuecomment-347109090","issue_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/353","id":347109090,"user":{"login":"areichert","id":1327030,"avatar_url":"https://avatars1.githubusercontent.com/u/1327030?v=4","gravatar_id":"","url":"https://api.github.com/users/areichert","html_url":"https://github.com/areichert","followers_url":"https://api.github.com/users/areichert/followers","following_url":"https://api.github.com/users/areichert/following{/other_user}","gists_url":"https://api.github.com/users/areichert/gists{/gist_id}","starred_url":"https://api.github.com/users/areichert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/areichert/subscriptions","organizations_url":"https://api.github.com/users/areichert/orgs","repos_url":"https://api.github.com/users/areichert/repos","events_url":"https://api.github.com/users/areichert/events{/privacy}","received_events_url":"https://api.github.com/users/areichert/received_events","type":"User","site_admin":false},"created_at":"2017-11-27T08:21:55Z","updated_at":"2017-11-27T08:21:55Z","author_association":"NONE","body":"@wmathurin - Long time since October 3 - any updates?"}}
{"actor":{"display_login":"areichert"}}