{ "id": "77642", "key": "TIMOB-4628", "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": "11359", "description": "Mobile 1.8.0 M06", "name": "Sprint 2011-27", "archived": true, "released": true, "releaseDate": "2011-07-11" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-07-29T11:47:31.000+0000", "created": "2011-07-08T14:40:52.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-08-25T12:55:26.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": "To reproduce the failcase (and test the fix):\r\n\r\n* Run {{git log}} in your source folder and jot down the top build hash.\r\n\r\n* Build and release the SDK if you haven't already.\r\n\r\n* Build and run the app (app.js) below.\r\n\r\nIn the failcase, you'll see only a 6-character build hash which is missing the first character of the real hash. In the fixed case, you'll see the full 7-character build hash.\r\n\r\nHere's the app.js:\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\nwin.add(Ti.UI.createTextArea({\r\n\tvalue: \"Build Hash: \" + Ti.buildHash +\r\n\t\t\t\"\\nBuild Date: \" + Ti.buildDate +\r\n\t\t\t\"\\nTitanium Version: \" + Ti.version,\r\n\ttop: \"25%\",\r\n\tleft: \"10dp\",\r\n\tright: \"10dp\",\r\n\theight: \"200dp\"\r\n}));\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Titanium.buildHash is off by one character", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "159151", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Removed \"Release 1.8.0\" fixVersion. Issue has not been merged. Set Task Type to \"Release\"", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-10T17:30:05.000+0000", "updated": "2011-07-10T17:30:05.000+0000" }, { "id": "159194", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "also merged into 1_7_X", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T11:10:12.000+0000", "updated": "2011-07-11T11:10:12.000+0000" }, { "id": "161008", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "with newer builds of Git the substring is off by 1 again. we need to switch to git rev-parse", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-28T11:58:55.000+0000", "updated": "2011-07-28T11:58:55.000+0000" }, { "id": "161176", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "merged and confirmation conversation.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-29T11:47:31.000+0000", "updated": "2011-07-29T11:47:31.000+0000" }, { "id": "164046", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.v20110819142548\niPhone 4.3.4\niPad2 4.3.2\nMotorola Xoom 3.2\nNexus One 2.2.2", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-25T12:55:26.000+0000", "updated": "2011-08-25T12:55:26.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }