{ "id": "62421", "key": "TIMOB-1789", "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": [ { "id": "11230", "name": "Release 1.5.0 M05", "archived": true, "released": true, "releaseDate": "2010-12-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:10.000+0000", "created": "2011-04-15T03:02:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "authentication", "ios", "iphone", "regression", "sha1" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:10.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
The iPhone implementation of the sha-1 algorithm does not work\ncorrectly. It only returns the first 32 characters of the hash\ninstead of the full 40. Perusing the code, I found that the error\nlies in the convertToHex function in UtilsModule.m. This function\nis only designed to return the first 32 characters, and currently\nignores anything else. As a temporary work-around, I added a\nconvertToHex40 function which does the exact same thing, only it is\nconfigured for 40 characters. While I realize this is not an ideal\nfix, it solves my problem temporarily.
\nOn a side note, the Android implementation of this function\nworks great.
\nThanks for your help in advance.
\nSincerely,
\nJesse Domack
this is a regression that needs to be fixed before final 1.5.\nplease look at this patch.
(from [9819ce06dba4a30bcff7331b925e0f2dd912ebab])\n[#1789 state:fixed-in-qa] Hex encoding can handle\nvariable-width strings. \nhttps://github.com/appcelerator/titanium_mobile/commit/9819ce06dba4...
Thomas, please let us know when you have validated this.
(from [7ba98399b953d1e25b03ee704c5d579492af83e6])\n[#1789] Placing fix for sha1 in 1.5.0 release.\n\nhttps://github.com/appcelerator/titanium_mobile/commit/7ba98399b953...
4.2.1 ipod touch 4gt, ipad 3.2.
confirmed in 1.5.1 and 1.5.0 9a6c6ca