{ "id": "111442", "key": "TIMOB-13127", "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": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15396", "description": "2013 Sprint 07 Core", "name": "2013 Sprint 07 Core", "archived": true, "released": true, "releaseDate": "2013-04-08" }, { "id": "15105", "description": "2013 Sprint 07", "name": "2013 Sprint 07", "archived": true, "released": true, "releaseDate": "2013-04-08" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-03-29T04:04:26.000+0000", "created": "2013-03-20T01:16:28.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_app_properties", "parity", "qe-sdk3.1.0", "qe-testadded" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "26862", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "101149", "key": "TIMOB-11399", "fields": { "summary": "iOS: Ti.App.Properties.setObject cannot save object with null values in it", "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": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-30T09:07:06.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": "*Details:* If you use Ti.App.Properties.setList() to save an array that contains null, undefined, or an empty value, then setList() will not save the array and return \"Attempt to insert non-property value\" message in xcode's console.\r\n\r\n*This is not a regression. Bug still occurs on 3.0.2.GA.*\r\n\r\nAlso, Ti.App.Properties.setList() works as expected on Android; can save an array that contains null, undefined, or an empty value.\r\n\r\n*Steps to reproduce:*\r\n1. Install the following Titanium app to an iOS device:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'white'\r\n});\r\n\r\n// same issue if there is null or undefined in the array\r\nvar vals = [,42];\r\nTi.App.Properties.setList('number', vals);\r\n\r\nvar label = Ti.UI.createLabel({\r\n\ttext: (Ti.App.Properties.getList('number')[1] + ' monkies'),\r\n\tfont: { fontSize:48 }\r\n});\r\n\r\nwin.add(label);\r\nwin.open();\r\n{code}\r\n\r\n2. Launch app\r\n\r\n*Actual:* iOS will not save vals array and return \"Attempt to insert non-property value\" message (see log.txt)\r\n\r\n*Expected:* App should launch with \"42 monkies\" in the label like in Android (see android.png)\r\n\r\n*Note:* This issue seems similar to TIMOB-11399", "attachment": [ { "id": "36481", "filename": "android.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T01:16:29.000+0000", "size": 24929, "mimeType": "image/png" }, { "id": "36480", "filename": "log.txt", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T01:16:29.000+0000", "size": 639, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: Properties.setList - Ti.App.Properties.setList cannot save arrays that contain null, undefined, or empty values", "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": "SDK build: 3.0.2.GA, 3.1.0.v20130319163434\r\nTitanium Studio, build: 3.1.0.201303182358\r\nDevice: iphone 4 (4.3.5) iphone 4s (5.1.1)\r\nXcode: 4.5.2", "comment": { "comments": [ { "id": "244156", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/4036", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-26T20:01:52.000+0000", "updated": "2013-03-26T20:01:52.000+0000" }, { "id": "246136", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Ti.App.Properties.setList cannot save arrays that contain null.\r\nApp launches with \"42 monkies\" in the label.\r\n\r\nVerified on:\r\nDevice : iPad mini, iOS version: 6+\r\nSDK: 3.1.0.v20130405170202\r\nCLI version : 3.1.0-beta\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.0.201304011603\r\nXCode : 4.5.1\r\n", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-06T09:16:37.000+0000", "updated": "2013-04-06T09:16:37.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }