{ "id": "63257", "key": "TIMOB-2625", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-09T16:54:53.000+0000", "created": "2011-04-15T03:25:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "utils" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-09T16:54:53.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": "{html}

See title. Already discussed with Don and Marshall.
\nTested on Android only, Ti SDK 1.5.X (17th Dec 2010) and 1.6 (19th\nDec 2010).

\n

To test the issue:

\n
\nvar fileContents = thisFile.read().toString();\nvar md5File = Ti.Utils.md5HexDigest(fileContents);\nTi.API.info('file md5 = '+md5File);\n
\n

Note that the md5 of a string is correct, as the following\nshows:

\n
\nvar md5 = Ti.Utils.md5HexDigest(\"thisisatest\");\nTi.API.info('md5 = '+md5);\n
\n

returns different results to the following (on linux\nsystem):

\n
\nprintf thisisatest | md5sum\n
\n

Both return f830f69d23b8224b512a0dc2f5aec974

{html}", "attachment": [], "flagged": false, "summary": "uft-8 to utf-16 string conversions cause incorrect Ti.Utils md5HexDigest and base64*code results", "creator": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "421640", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed, any problems please open a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-09T16:54:53.000+0000", "updated": "2017-06-09T16:54:53.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }