{ "id": "168454", "key": "TIMOB-24840", "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": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-06-26T15:15:20.000+0000", "created": "2017-06-16T15:06:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [ { "id": "55227", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "158372", "key": "TIMOB-22422", "fields": { "summary": "Ti.UI.TableView Test Suite: Titanium.UI.TableView Acceptance TIMOB-6134", "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": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-21T13:39:08.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "h5.Description\r\n\r\n*This is a regression from 6.0.4.GA to 6.1.0.GA*\r\n\r\nWhen calling setData on a tableview that already has data, the app will crash\r\n\r\n{code:js}\r\nvar win = Ti.UI.createWindow({layout:'vertical'});\r\nvar button = Ti.UI.createButton({title:'Add'});\r\nvar tableData = [{ title: 'Apples' }, { title: 'Bananas' }, { title: 'Carrots' }, { title: 'Potatoes' }];\r\nvar secondData = [{ title: 'Apples' }, { title: 'Bananas' }, { title: 'Carrots' }, { title: 'Potatoes' }];\r\nvar table = Ti.UI.createTableView({\r\n data: tableData\r\n});\r\nbutton.addEventListener('click', function () {\r\n table.setData(secondData);\r\n});\r\nwin.add(button);\r\nwin.add(table);\r\nwin.open();\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n# Add the above code to an existing app.js\r\n# Build for windows\r\n# Click the button\r\n\r\nh5.Actual\r\n\r\nApp crashes\r\n\r\nh5.Expected\r\n\r\nApp should not crash", "attachment": [], "flagged": false, "summary": "Windows: Calling setData on a tableview that already has data errors out", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 6.1.0.GA, 6.1.1.v20170615113917, 6.2.0.v20170615115004\r\nAppc CLI: 6.2.2\r\nAppc NPM: 4.2.9\r\nWindows 10 ws-local\r\nLumia 550 10.0", "closedSprints": [ { "id": 917, "state": "closed", "name": "2017 Sprint 13 SDK", "startDate": "2017-06-18T16:14:35.902Z", "endDate": "2017-07-02T16:14:00.000Z", "completeDate": "2017-07-06T23:53:22.101Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "422452", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile_windows/pull/1019", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-21T12:46:11.000+0000", "updated": "2017-06-21T12:46:11.000+0000" }, { "id": "422735", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "FR Passed!\r\n\r\nCalling setData no longer errors out when the tableview already has data.\r\n\r\nTest Environment\r\nStudio: 4.9.0.201705302345\r\nAppc CLI: 6.2.2\r\nAppc NPM: 4.2.9\r\nNokia Lumia 550\r\nWindows 10 Mobile emulator 10.0.14393\r\nWindows 10 Pro 10.0.15063", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-06-26T16:10:51.000+0000", "updated": "2017-06-26T16:10:51.000+0000" }, { "id": "423868", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "6.1.2 backport: https://github.com/appcelerator/titanium_mobile_windows/pull/1038", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-11T01:26:22.000+0000", "updated": "2017-07-11T01:26:22.000+0000" }, { "id": "424133", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "6.1.2 backport FR passed and merged", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-14T09:59:41.000+0000", "updated": "2017-07-14T09:59:41.000+0000" }, { "id": "424517", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix in 6.1.2.v20170720023139. Closing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-07-21T13:39:03.000+0000", "updated": "2017-07-21T13:39:03.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }