{ "id": "174542", "key": "MOD-2560", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "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": "2020-01-23T23:18:07.000+0000", "created": "2019-12-12T14:43:33.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "griffin-app", "ti.identity" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-01-23T23:18:11.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": [], "description": "There is an issue that I have tracked down to KeychainItem.save() for Android in https://github.com/appcelerator-modules/titanium-identity \r\n\r\nIt seems that it is saving OK but when I call read(), I am getting success: false if the length of the string is perhaps too long? I don't see anything about this from anyone else and it is working fine on iOS. \r\n\r\nAfter some experimentation, it seems that is you save a string of 64 characters or greater you can no longer read from that keychain item and get this:\r\n\r\n\r\n{code:java}\r\n[DEBUG] obj: {\r\n[DEBUG] \"type\": \"read\",\r\n[DEBUG] \"source\": {\r\n[DEBUG] \"accessControlMode\": 0,\r\n[DEBUG] \"accessibilityMode\": 0,\r\n[DEBUG] \"identifier\": \"password\",\r\n[DEBUG] \"cipher\": \"AES/CBC/PKCS7Padding\",\r\n[DEBUG] \"apiName\": \"ti.touchid.KeychainItem\",\r\n[DEBUG] \"bubbleParent\": true,\r\n[DEBUG] \"_events\": {\r\n[DEBUG] \"read\": {}\r\n[DEBUG] }\r\n[DEBUG] },\r\n[DEBUG] \"error\": null,\r\n[DEBUG] \"identifier\": \"password\",\r\n[DEBUG] \"bubbles\": false,\r\n[DEBUG] \"success\": false,\r\n[DEBUG] \"code\": -1,\r\n[DEBUG] \"cancelBubble\": false\r\n[DEBUG] }\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Saving strings 64 characters or greater to Android keychain breaks", "creator": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "bhouse", "key": "bhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 1175, "state": "closed", "name": "2019 Sprint 26", "startDate": "2019-12-16T06:12:12.044Z", "endDate": "2019-12-21T06:12:00.000Z", "completeDate": "2019-12-22T03:07:15.802Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "453255", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator-modules/titanium-identity/pull/44", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-12-19T23:35:53.000+0000", "updated": "2019-12-19T23:35:53.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }