{ "id": "147494", "key": "TIMOB-18869", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" }, { "id": "16723", "description": "Windows Platform Support, ListView updates, Vector overlays in maps", "name": "Release 4.1.0", "archived": false, "released": true, "releaseDate": "2015-07-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-05-07T20:09:20.000+0000", "created": "2015-05-04T19:00:09.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-4.0.0", "regression" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-06-01T22:00:54.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When using 4.0.0.RC2 and making an ACS objects query, I get an error where there previously was not one:\r\n{code}\r\n[ERROR] : 400: Invalid JSON in where parameter: 745: unexpected token at '%7B%22title%22%3A%22TIMOBAlloy--0Simulator8.3medium1307681024.png%22%7D'\r\n{code}\r\n\r\n*Steps to reproduce issue*\r\n1. Create a project and include a query for an ACS Object\r\n2. Run the project\r\n\r\n*Actual Results*:\r\nThe above error is thrown\r\n\r\n*Expected Results*:\r\nNo error is thrown\r\n\r\n*Notes*:\r\nThis is the query I am using:\r\n{code}\r\nCloud.Photos.query({\r\n limit: 1,\r\n where: { 'title': file.name }\r\n}, function (e) {\r\n if (e.success) {\r\n alert(\"Image found\");\r\n } else {\r\n alert(\"Unable to find image\");\r\n }\r\n});\r\n{code}\r\n\r\nThe community is also encountering this: https://community.appcelerator.com/topic/329/4-0-0-rc2-query-invalid-json-in-where-parameter/2\r\n\r\nIf I switch to use SDK 4.0.0.RC then I do not get the error.", "attachment": [], "flagged": false, "summary": "iOS: \"Invalid JSON in where parameter\"", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "MacOS 10.10.3\r\nStudio 4.0.0.201505011227\r\nTi SDK 4.0.0.RC2\r\nAppc NPM 0.3.55\r\nAppc CLI 0.2.279\r\nTi CLI 4.0.0-beta8\r\nAlloy 1.6.0-beta4\r\nNode v0.10.37", "closedSprints": [ { "id": 398, "state": "closed", "name": "2015 Sprint 09 SDK", "startDate": "2015-04-25T00:00:00.000Z", "endDate": "2015-05-09T00:00:00.000Z", "completeDate": "2015-05-11T14:11:17.028Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "351571", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~penrique] [~vduggal] thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-04T19:12:23.000+0000", "updated": "2015-05-04T19:12:23.000+0000" }, { "id": "351951", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6824\r\n4_0_X - https://github.com/appcelerator/titanium_mobile/pull/6825", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-05-07T18:42:43.000+0000", "updated": "2015-05-07T18:42:43.000+0000" }, { "id": "354032", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.10.3\r\nStudio 4.0.0.201505202026\r\nTi SDK 4.0.1.v20150529150210\r\nAppc NPM 4.0.0\r\nAppc CLI 4.0.1\r\nTi CLI 4.0.1\r\nAlloy 1.6.0\r\nNode v0.10.37\r\nJava 1.7.0_45\r\n\r\nI no longer encounter this error.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-06-01T22:00:54.000+0000", "updated": "2015-06-01T22:00:54.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }