{ "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.

\n

On a side note, the Android implementation of this function\nworks great.

\n

Thanks for your help in advance.

\n

Sincerely,
\nJesse Domack

{html}", "attachment": [ { "id": "18063", "filename": "utilsmodule.m", "author": { "name": "jessedomack", "key": "jessedomack", "displayName": "Jesse Domack", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:27.000+0000", "size": 3602, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iPhone implementation of SHA-1 algorithm does not work correctly", "creator": { "name": "jessedomack", "key": "jessedomack", "displayName": "Jesse Domack", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jessedomack", "key": "jessedomack", "displayName": "Jesse Domack", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126687", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

this is a regression that needs to be fixed before final 1.5.\nplease look at this patch.

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:28.000+0000", "updated": "2011-04-15T03:02:28.000+0000" }, { "id": "126688", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [9819ce06dba4a30bcff7331b925e0f2dd912ebab])\n[#1789 state:fixed-in-qa] Hex encoding can handle\nvariable-width strings. \nhttps://github.com/appcelerator/titanium_mobile/commit/9819ce06dba4...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:28.000+0000", "updated": "2011-04-15T03:02:28.000+0000" }, { "id": "126689", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Thomas, please let us know when you have validated this.

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:28.000+0000", "updated": "2011-04-15T03:02:28.000+0000" }, { "id": "126690", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [7ba98399b953d1e25b03ee704c5d579492af83e6])\n[#1789] Placing fix for sha1 in 1.5.0 release.\n\nhttps://github.com/appcelerator/titanium_mobile/commit/7ba98399b953...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:28.000+0000", "updated": "2011-04-15T03:02:28.000+0000" }, { "id": "126691", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

4.2.1 ipod touch 4gt, ipad 3.2.

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:29.000+0000", "updated": "2011-04-15T03:02:29.000+0000" }, { "id": "126692", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

confirmed in 1.5.1 and 1.5.0 9a6c6ca

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:02:29.000+0000", "updated": "2011-04-15T03:02:29.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }