{ "id": "174469", "key": "TIMOB-27624", "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": null, "resolutiondate": null, "created": "2019-11-23T00:05:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "engSchedule", "ios", "ios-13" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-12-30T16:32:52.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "- {{Ti.Blob.read()}} seems to cause inconsistent results when generating hashes on device\r\n\r\n*TEST CASE*\r\n{code:js}\r\nconst binaryFile = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'Logo.png'),\r\n blob = binaryFile.read();\r\nif (Ti.Utils.sha1(blob) === '668e98c66d8a11ef38ab442d9d6d4a21d8593645') {\r\n console.log('success!');\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Ti.Blob.read() is inconsistent on device", "creator": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "453160", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried multiple times on 2 different iOS devices with iOS 13.x for an image. I am getting same hash value. \r\n[~ahutton] Can you try at your end please?", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-12-12T00:17:21.000+0000", "updated": "2019-12-30T16:32:52.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }