{ "id": "98411", "key": "TIMOB-10255", "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": "15095", "description": "2013 Sprint 03 BB", "name": "2013 Sprint 03 BB", "archived": true, "released": true, "releaseDate": "2013-02-11" }, { "id": "14813", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-02-10T07:17:25.000+0000", "created": "2012-07-31T07:06:20.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [ { "id": "20018", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99459", "key": "TIMOB-10499", "fields": { "summary": "BlackBerry: Support setting properties from tiapp.xml", "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": "Medium", "id": "3" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T18:05:03.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": "10230", "name": "BlackBerry", "description": "BlackBerry Platform" } ], "description": "If some Int property is set like Titanium.App.Properties.setInt('Int',10) and than further trying to get it like this\r\nTitanium.App.Properties.getString('Int') (with getString()) It crashes - code which is below is not working.\r\nWhen trying to get as Titanium.App.Properties.getInt('Int') - it is fine\r\n\r\nThe same is for Titanium.App.Properties.getString('Bool') and Titanium.App.Properties.getString('Double')- if you have set 'Bool' as setBool() and 'Double' as setDouble('Double',10.6);\r\n\r\nAlso for setXXX method Titanium.App.Properties.setString('String',null) is crashing \r\nIn the logs found this message - 'Invalid argument: expected String'\r\n\r\nThis was tested on Blackberry emulator. \r\nKitchenSink -> Platform Tab->Properties API.\r\nFile - Resources\\ui\\common\\platform\\properties.js (Lines 84-86, 106)", "attachment": [], "flagged": false, "summary": "Blackberry: Titanium.App.Properties - Cannot convert types.", "creator": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 9, "state": "closed", "name": "2013 Sprint 03 BB", "startDate": "2013-02-04T19:45:09.855Z", "endDate": "2013-02-11T19:44:09.855Z", "completeDate": "2013-04-19T16:42:34.551Z" } ], "comment": { "comments": [ { "id": "214545", "author": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also should fix Ti.App, etc to inherit from TiProxy instead of TiObject and uncomment the stuff in KitchenSink.", "updateAuthor": { "name": "dlifshitz", "key": "dlifshitz", "displayName": "David Lifshitz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-15T08:23:30.000+0000", "updated": "2012-08-15T08:23:30.000+0000" }, { "id": "215690", "author": { "name": "jlemieux", "key": "jlemieux", "displayName": "Jean-Philippe Lemieux", "active": true, "timeZone": "America/Montreal" }, "body": "Getters should try to convert the value if possible", "updateAuthor": { "name": "jlemieux", "key": "jlemieux", "displayName": "Jean-Philippe Lemieux", "active": true, "timeZone": "America/Montreal" }, "created": "2012-08-22T14:56:27.000+0000", "updated": "2012-08-22T14:56:27.000+0000" }, { "id": "215698", "author": { "name": "jlemieux", "key": "jlemieux", "displayName": "Jean-Philippe Lemieux", "active": true, "timeZone": "America/Montreal" }, "body": "{quote}\r\nAlso for setXXX method Titanium.App.Properties.setString('String',null) is crashing \r\nIn the logs found this message - 'Invalid argument: expected String'\r\n{quote}\r\n\r\nThis test case doesn't seem valid as null is not a String so the raised exception seems to be right.", "updateAuthor": { "name": "jlemieux", "key": "jlemieux", "displayName": "Jean-Philippe Lemieux", "active": true, "timeZone": "America/Montreal" }, "created": "2012-08-22T15:24:27.000+0000", "updated": "2012-08-22T15:24:27.000+0000" }, { "id": "215774", "author": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested Titanium.App.Properties.setString('String',null) on Android and correspondingly Titanium.App.Properties.getString('String').\r\nBoth of them worked without raising exception.\r\nGetter returned null.", "updateAuthor": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T03:49:18.000+0000", "updated": "2012-08-23T03:49:18.000+0000" }, { "id": "215776", "author": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also tested on Android:\r\n Titanium.App.Properties.setInt('int',15);\r\nand tried to get with getDouble()\r\nTitanium.App.Properties.getDouble('int');\r\n\r\nWorked normally and returned 15.", "updateAuthor": { "name": "hzakaryan", "key": "hzakaryan", "displayName": "Hayk Zakaryan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-23T04:27:16.000+0000", "updated": "2012-08-23T04:27:16.000+0000" }, { "id": "237359", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Created pull request [#23|https://github.com/appcelerator/titanium_mobile_blackberry/pull/23] to resolve issue.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-06T08:15:11.000+0000", "updated": "2013-02-06T08:15:11.000+0000" }, { "id": "409859", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as resolved.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T18:05:03.000+0000", "updated": "2017-03-08T18:05:03.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }