{ "id": "159478", "key": "TIMOB-23191", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-11T22:54:30.000+0000", "created": "2016-04-11T21:00:51.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "ios", "picker", "pickerrow", "qe-5.4.0" ], "versions": [ { "id": "17993", "description": "Release 5.2.2", "name": "Release 5.2.2", "archived": false, "released": true, "releaseDate": "2016-04-05" } ], "issuelinks": [ { "id": "51344", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "159550", "key": "AC-3502", "fields": { "summary": "Ui.Picker broken in new alloy in Ti 5.2.1", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51310", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "126436", "key": "ALOY-1355", "fields": { "summary": "Alloy doesn't cast \"true\"/\"false\" attributes as booleans", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "51312", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "159510", "key": "TIMOB-23195", "fields": { "summary": "iOS: Add validation to PickerRow.title", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-06-21T17:44:41.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Steps to reproduce\r\n\r\n1. Create a Picker with 2 columns\r\n2. PickerRow title set to \"0\" in XML (or \"1\", \"2\", etc)\r\n3. App crashes immediately\r\n\r\nSetting the PickerRow title to \"0\" in the controller js works fine. Android either method works fine.\r\n\r\n*index.xml*\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\r\n\r\n{code}\r\n*index.js*\r\n{{$.index.open();}}\r\n", "attachment": [], "flagged": false, "summary": "iOS: Non-string PickerRow titles (integer,bool, ..) causing crash", "creator": { "name": "kellycorn", "key": "kellycorn", "displayName": "Kelly Corn", "active": true, "timeZone": "America/Denver" }, "subtasks": [], "reporter": { "name": "kellycorn", "key": "kellycorn", "displayName": "Kelly Corn", "active": true, "timeZone": "America/Denver" }, "environment": "Titanium SDK 5.2.2\r\nappc 5.2.2\r\niOS Simulator 8.4 iPad 2", "closedSprints": [ { "id": 618, "state": "closed", "name": "2016 Sprint 08 SDK", "startDate": "2016-04-09T00:30:18.262Z", "endDate": "2016-04-23T00:30:00.000Z", "completeDate": "2016-04-25T02:38:28.511Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "382371", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~fokkezb] I remember we had a similar issue not too long ago. Do you know more? Anyway, the fix should be easy by wrapping the String correctly.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-11T22:37:57.000+0000", "updated": "2016-04-11T22:37:57.000+0000" }, { "id": "382372", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7935\r\n\r\nDemo:\r\n{code:javascript}\r\n \r\nvar win = Ti.UI.createWindow({backgroundColor: \"white\"});\r\nvar picker = Ti.UI.createPicker();\r\n\r\nvar data = [];\r\ndata[0]=Ti.UI.createPickerRow({title:12});\r\ndata[1]=Ti.UI.createPickerRow({title:true});\r\ndata[2]=Ti.UI.createPickerRow({title:-1});\r\ndata[3]=Ti.UI.createPickerRow({title:'Grapes'});\r\n\r\npicker.add(data);\r\npicker.selectionIndicator = true;\r\n\r\nwin.add(picker);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-04-11T22:44:03.000+0000", "updated": "2016-04-11T22:44:03.000+0000" }, { "id": "382442", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "[~hansknoechel] yes, TIMOB-23130 - both caused by ALOY-1355.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2016-04-12T06:53:14.000+0000", "updated": "2016-04-12T06:53:14.000+0000" }, { "id": "388754", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, Creating PickerRows with Non-String titles no longer causes an app to crash, tested both with classic & alloy mobile projects.\r\n\r\nTested On:\r\niPhone 6S (9.3.2) Device\r\nMac OSX El Capitan 10.11.5 \r\nTi SDK: 5.4.0.v20160617074028\r\nAppc Studio: 4.7.0.201606150733\r\nAppc NPM: 4.2.7-2\r\nApp CLI: 5.4.0-18\r\nXcode 7.3\r\nNode v4.2.6\r\n\r\n*Closing ticket.*", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2016-06-21T17:44:26.000+0000", "updated": "2016-06-21T17:44:26.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }