{ "id": "174071", "key": "TIMOB-27430", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-10-15T17:10:46.000+0000", "created": "2019-08-28T20:52:57.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "encrypted_database", "engSchedule", "regression" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-10-15T17:10:46.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Calling .field() or .fieldByName() on an encrypteddatabase (3.0.4) ResultSet returns a boolean false if the value of the field is NULL. This issue seems to be isolated to this module on Android with the 8.1.0.GA SDK. 8.0.0.GA and iOS don't have this issue, nor does the built-in Ti.Database.ResultSet. A small sample project is linked below. Run this app on an Android device and see the discrepancies between the console log outputs for non-encDB and encDB. Running on iOS or switching back to 8.0.0.GA alleviates the discrepancy.\r\n\r\nSample project: https://drive.google.com/file/d/1HW1jxvUPZ67_HVx1Phe-PqgJKeVQygLp/view?usp=sharing", "attachment": [], "flagged": false, "summary": "EncryptedDB ResultSet field and fieldByName functions are returning incorrect values on Android", "creator": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "environment": "SDK 8.1.0.GA\r\nCLI 7.1.0\r\nEncryptedDB 3.0.4\r\nMojave 10.14.6", "closedSprints": [ { "id": 1165, "state": "closed", "name": "2019 Sprint 20", "startDate": "2019-09-23T15:38:43.949Z", "endDate": "2019-10-06T15:38:00.000Z", "completeDate": "2019-10-07T18:33:11.953Z", "originBoardId": 114 }, { "id": 1168, "state": "closed", "name": "2019 Sprint 21", "startDate": "2019-10-07T18:35:57.052Z", "endDate": "2019-10-20T18:35:00.000Z", "completeDate": "2019-10-21T15:38:00.182Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "450931", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nTested the sample project shared by you with SDK 8.1.0.GA on android device 7. Got the following output on console:\r\n\r\n{code}\r\n\r\n[INFO] Testing 1.0 (Powered by Titanium 8.1.0.84c6734b2d)\r\n[WARN] col fieldByName: null\r\n[WARN] col field: null\r\n[WARN] col fieldByName: false\r\n[WARN] col field: false\r\n{code}\r\n\r\nAre you experiencing the same? Please share the console logs of your end.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-08-29T05:18:26.000+0000", "updated": "2019-08-29T05:18:26.000+0000" }, { "id": "450937", "author": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "body": "Yes, that is exactly what my console log looks like. The last two lines should be identical to the two above them, but on Android with 8.1.0.GA they are not.", "updateAuthor": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "created": "2019-08-29T13:59:00.000+0000", "updated": "2019-08-29T13:59:00.000+0000" }, { "id": "451387", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nCan you please test the issue on 8.1.1.GA and share us the console logs.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-16T08:01:42.000+0000", "updated": "2019-09-16T08:01:42.000+0000" }, { "id": "451401", "author": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "body": "The output is identical:\r\n\r\n{noformat}\r\n[INFO] \b\b \b Testing 1.0 (Powered by Titanium 8.1.1.0148ee6e79)\r\n[WARN] \b\b \b col fieldByName: null\r\n[WARN] \b\b \b col field: null\r\n[WARN] \b\b \b col fieldByName: false\r\n[WARN] \b\b \b col field: false\r\n{noformat}\r\n", "updateAuthor": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "created": "2019-09-16T17:02:55.000+0000", "updated": "2019-09-16T17:02:55.000+0000" }, { "id": "451702", "author": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "body": "Same with 8.2.0.GA:\r\n\r\n{noformat}\r\n[INFO] \b\b \b Testing 1.0 (Powered by Titanium 8.2.0.6bfdf6e394)\r\n[WARN] \b\b \b col fieldByName: null\r\n[WARN] \b\b \b col field: null\r\n[WARN] \b\b \b col fieldByName: false\r\n[WARN] \b\b \b col field: false\r\n{noformat}\r\n\r\nWe really need this resolved quickly. It is preventing us from upgrading to these newer SDKs.\r\n", "updateAuthor": { "name": "ryan@mvretail.com", "key": "ryan@mvretail.com", "displayName": "Ryan Aston", "active": true, "timeZone": "America/Chicago" }, "created": "2019-09-30T14:19:38.000+0000", "updated": "2019-09-30T14:19:38.000+0000" }, { "id": "451930", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "appcelerator.encrypteddatabase: https://github.com/appcelerator-modules/appcelerator.encrypteddatabase/pull/41", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-09T17:05:53.000+0000", "updated": "2019-10-09T17:05:53.000+0000" }, { "id": "451974", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-10T22:57:55.000+0000", "updated": "2019-10-10T22:57:55.000+0000" }, { "id": "452071", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with version 3.1.0.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-15T17:10:40.000+0000", "updated": "2019-10-15T17:10:40.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }