{ "id": "125653", "key": "TIMOB-16347", "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": null, "resolutiondate": null, "created": "2014-01-30T21:24:17.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.2.1", "reprod" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "34686", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "111570", "key": "TIMOB-13174", "fields": { "summary": "Android: Tableview: Shows Runtime Error on longpressing on any row", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:04:14.000+0000", "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" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Details:* Clicking on TableViewSection with custom properties throws a runtime error.\r\n\r\n*This is not a regression since this occurs with 3.2.0.GA*\r\n\r\n*Steps to reproduce:*\r\n1. Install the following app.js to an iOS device:\r\n{code}\r\nvar _window = Ti.UI.createWindow();\r\nvar tableData = [];\r\nvar s = 0;\r\nvar nRow = 0;\r\n\r\nfor (var i = 0; i < 100; i++) {\r\n\tvar createNewSection = (i + 1) % 10 == 9 || i == 0 ? true : false;\r\n\tcreateNewSection ? nRow = 1 : nRow++;\r\n\ttableData.push({\r\n\t\ttitle : 'Row #' + nRow + ' Index #' + i + ' Section #' + s,\r\n\t\tcustomProp : 'Hello World! #' + i,\r\n\t\theader : createNewSection ? 'Section #' + s++ : null\r\n\t});\r\n}\r\nvar table = Ti.UI.createTableView({\r\n\tdata : tableData\r\n});\r\n_window.add(table);\r\n\r\ntable.addEventListener('longpress', function(e) {\r\n\tTi.API.info('Section: ' + e.section);\r\n\tTi.API.info('Row: ' + e.row);\r\n\tTi.API.info('Row Data: ' + e.rowData);\r\n\tTi.API.info('Index: ' + e.index);\r\n\tTi.API.info('customProp: ' + e.rowData.customProp);\r\n\r\n});\r\n_window.open(); \r\n{code}\r\n\r\n2. After app is launched, long press on a section header\r\n\r\n*Actual:* A runtime error is thrown (see attachments).\r\n\r\n*Expected:* The following should be displayed in xcode console\r\n{code}\r\n[INFO] Section: [object TiUITableViewSection]\r\n[INFO] Row: [object TiUITableViewRow]\r\n[INFO] Row Data: [object TiUITableViewRow]\r\n[INFO] Index: 4\r\n[INFO] customProp: Hello World! #4\r\n{code}", "attachment": [ { "id": "45500", "filename": "runtime_error.txt", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-30T21:24:17.000+0000", "size": 368, "mimeType": "text/plain" }, { "id": "45501", "filename": "Screenshot 2014.01.30 13.10.36.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-30T21:24:17.000+0000", "size": 109194, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: SectionHeader - Clicking on TableViewSection with custom properties throws a runtime error", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 3.2.1.201401281409\r\nSDK build: 3.2.0.GA, 3.2.1.v20140130101648\r\nCLI: 3.2.1-beta3\r\nAlloy: 1.3.1-beta4\r\nXcode: 5.0.2\r\nDevices: iphone 5 (6.1.3), iphone 5 (7.0.2)", "comment": { "comments": [ { "id": "320774", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue still exists with SDK Version 3.2.1 and 3.4.0\r\n\r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.2.1.GA \r\nTitanium SDK version 3.4.0.GA \r\nAppcelerator Studio, build: 3.3.0.201407111535 \r\niOS SDK: 7.0.3", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T10:32:25.000+0000", "updated": "2014-08-28T10:32:25.000+0000" }, { "id": "422415", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-20T22:13:02.000+0000", "updated": "2017-06-20T22:13:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }