{ "id": "94709", "key": "TIMOB-9912", "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": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-06-20T07:06:21.000+0000", "created": "2012-07-10T03:32:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_label", "qe-testadded", "regression" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "18764", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "90426", "key": "TIMOB-8774", "fields": { "summary": "Android: issues displaying labels and changing properties if using textid", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-07T05:27:19.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": "Updating the textid of a label with a resource key that does not exist in the locale file, throws an exception and crashed the app.\r\n\r\nRegression. The issue does not exist in 2.0.2\r\n\r\nSteps to Reproduce:\r\n1. Create an application with code below\r\n2. Launch App\r\n\r\nActual Result: The application opens and then crashes. An exception si shown in the console. Please find attched the logs for the same.\r\n\r\nExpected: Blank label should be shown.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n backgroundColor:'white',\r\n });\r\n \r\n var view = Ti.UI.createView({\r\n top:0,\r\n height:80,\r\n right:0,\r\n left:0\r\n }); \r\n \r\nvar label = Ti.UI.createLabel({\r\n font:{fontSize:30,fontFamily:'Helvetica Neue'},\r\n color:'red',\r\n left:0,\r\n width:'100%',\r\n //text:'Label1',\r\n textid:'new',\r\n right:'10%',\r\n textid:'check'\r\n});\r\nview.add(label);\r\n\r\nTi.API.info('Updating1');\r\n label.textid='new';\r\n Ti.API.info('Updating2');\r\n label.textid='new';\r\n Ti.API.info('Updating3');\r\n label.textid='new';\r\n Ti.API.info('Updating4');\r\n label.textid='new';\r\n\r\n view.addEventListener('click',function(e){\r\n //label.text = 'Label1 is fine';\r\n label.textid='new';\r\n })\r\n \r\nwin.add(view)\r\n \r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Label: Application crashes on updating textid of label with a key that missing", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio: 2.1.0.201206251749\r\nTitanium SDK: 2.1.0 GA\r\nAndroid Device: Android Emulator 2.2, Android Tab (v3.2)\r\nRuntime: V8", "comment": { "comments": [ { "id": "203180", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue is caused by the same bug which was fixed in TIMOB-8774.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-13T13:21:39.000+0000", "updated": "2012-07-13T13:21:39.000+0000" }, { "id": "203181", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issued resolved and has already been back ported into 2.1.1.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-13T13:22:32.000+0000", "updated": "2012-07-13T13:22:32.000+0000" }, { "id": "208000", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified On: \r\nSDK: 2.2.0.v20120713210112\r\nStudio: 2.1.1.201207161421\r\nDevice: Samsung Tab(V 3.2)", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-17T03:42:08.000+0000", "updated": "2012-07-17T03:42:08.000+0000" }, { "id": "208010", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified On: \r\nSDK: 2.1.1.v20120716180600\r\nStudio: 2.1.1.201207161421\r\nDevice: Samsung Galaxy tab(V 3.2)\r\n\r\nApplication does not crash on updating textid of label.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-17T04:41:12.000+0000", "updated": "2012-07-17T04:41:12.000+0000" }, { "id": "258689", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening just to update labels.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-20T07:03:17.000+0000", "updated": "2013-06-20T07:03:17.000+0000" }, { "id": "258690", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label and verified with:\r\nTested on:\r\nDevice: Nexus 7 tab Android Version 4.1\r\nSDK:3.1.2.v20130619101604\r\nAppcelerator Studio: 3.1.1.201306131423\r\nOS: OSX 10.8\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-20T07:06:21.000+0000", "updated": "2013-06-20T07:06:21.000+0000" }, { "id": "278582", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4787\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-07T05:27:19.000+0000", "updated": "2013-11-07T05:27:19.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }