{ "id": "98941", "key": "TIMOB-10370", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-05-26T13:36:44.000+0000", "created": "2012-08-09T09:23:22.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core", "exalture" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "19791", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "97707", "key": "TIMOB-10369", "fields": { "summary": "iOS: md5HexDigest hashing behaviour is inconsistent with other systems", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-27T18:33:30.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": "h3. Problem description\r\nCreating an md5sum of a text-like file that does not conform exactly to UTF-8 produces a different hash from mac or linux systems, reducing its use as file validation.\r\n\r\nh3. Steps to reproduce\r\nMac and Ubuntu systems both give the following MD5 sum for the attached file:\r\nMD5 (init5.js) = 693e9af84d3dfcc71e640e005bdc5e2e\r\n\r\nusing the following titanium code:\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nwin.addEventListener('click', function() {\r\n\tvar file = Titanium.Filesystem.getFile(\"init5.js\");\r\n\tvar blob = file.read();\r\n\tvar md5sum = Titanium.Utils.md5HexDigest(blob);\r\n\tTi.API.info(\"md5 is \" + md5sum);\r\n\talert(md5sum);\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nproduces a different MD5 output (on both Android and iOS) = d41d8cd98f00b204e9800998ecf8427e , different from the one generated from Mac OS X or Ubuntu Linux", "attachment": [ { "id": "30396", "filename": "init5.js", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T09:24:34.000+0000", "size": 3, "mimeType": "text/javascript" }, { "id": "36514", "filename": "iOS Simulator Screen shot Mar 21, 2013 2.34.40 PM.png", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T09:35:35.000+0000", "size": 41211, "mimeType": "image/png" }, { "id": "36517", "filename": "Screenshot_2013-03-21-14-38-28.png", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T09:39:25.000+0000", "size": 28887, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: md5HexDigest hashing behaviour is inconsistent with other systems", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK version: 2.1.1 GA\r\nPlatform & version: iOS 4.0 - 5.1\r\nDevice Details: Android Nexus Galaxy and Nexus 7 - ICS 4.1\r\nDesktop OS: Mac OS X Lion and Ubuntu Linux", "comment": { "comments": [ { "id": "243367", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Android MD5 sum : d41d8cd98f00b204e9800998ecf8427e,\r\nbut it shows error on iphone emulator(see screen shot). Attached code(init5.js) is empty ", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T09:21:27.000+0000", "updated": "2013-03-21T09:37:12.000+0000" }, { "id": "254025", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Tried with 3.2.0, cannot reproduce.", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-26T13:36:44.000+0000", "updated": "2013-05-26T13:36:44.000+0000" }, { "id": "415905", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-27T18:33:30.000+0000", "updated": "2017-03-27T18:33:30.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }