{ "id": "134584", "key": "AC-1388", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-22T15:02:48.000+0000", "created": "2014-08-12T17:12:12.000+0000", "labels": [ "acs,", "cloud", "language", "query", "regex" ], "versions": [], "issuelinks": [], "assignee": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:48.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14545", "name": "Documentation" } ], "description": "My mobile app (android and iphone) has CustomObject regex query that has been working perfectly for several months. We've recently found that it has a bug when used with Hebrew characters. It seems like something has been changed in the cloud service and this is why it stopped supporting Hebrew. Just to clarify, the production version worked fine until something changed several days ago, that didn't involved any code changes. \r\nMy query is:\r\n{code:title=Bar.java|borderStyle=solid}\r\nCloud.Objects.query({\r\n classname: 'custom1',\r\n page: page_num,\r\n per_page: RESULTS_PER_PAGE,\r\n where: {\r\n name: {'$regex': '^'+ n}\r\n });\r\n{code}\r\nWhere 'n' - is a variable of a Hebrew string.\r\nThe ACS request is:\r\n{code:title=Bar.java|borderStyle=solid}\r\nACS Request: { url: \"objects/custom1/query.json\", verb: \"GET\", data: {\"page\":1,\"per_page\":10,\"where\":{\"name\":{\"$regex\":\"^ט\"}}} })\r\n{code}\r\n(In the regex is an example of a Hebrew character)\r\nThe error I receive is:\r\n{code:title=Bar.java|borderStyle=solid}\r\n400: Error: This regex query is not supported, regex expression should start with ^letter or ^digit\r\n{code}\r\nThis query still works fine with English, but not with Hebrew.", "attachment": [], "flagged": false, "summary": "CustomObject regex query stopped working with Hebrew", "creator": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "318764", "author": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The fix for this bug is ready for production and will be released today. \r\n- Seth", "updateAuthor": { "name": "stoda", "key": "stoda", "displayName": "Seth Toda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T22:29:40.000+0000", "updated": "2014-08-14T22:29:40.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }