{ "id": "130791", "key": "TIMOB-17021", "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": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16271", "description": "2014 Sprint 10 SDK", "name": "2014 Sprint 10 SDK", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-22T20:36:52.000+0000", "created": "2014-05-22T18:16:59.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_analytics", "qe-3.3.0", "qe-testadded" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-05-30T17:00:52.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": "h5.Description\r\nSending a feature event with two strings crashes the iOS application.\r\nThis used to work using 3.2.3.GA\r\n\r\nh5.Steps To Reproduce\r\n1. Use the following code snippet\r\n{code}var window = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n layout: 'vertical'\r\n});\r\nvar button = Titanium.UI.createButton({\r\n title: 'Send Feature Event',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\nbutton.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Sending Feature Event\");\r\n Ti.Analytics.featureEvent('featureEvent', 'featureEvent.testButton');\r\n \r\n});\r\n \r\nwindow.add(button);\r\nwindow.open();\r\n{code}\r\n2. Click on the button.\r\n\r\nh5.Expected Result\r\nApp should send the feature event\r\n\r\nh5.Actual Result\r\nApp crashes", "attachment": [], "flagged": false, "summary": "Analytics: Feature event crashes app if you send a String and a String on iOS", "creator": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.9.3\r\nAppcelerator Studio, build: 3.3.0.201405211748\r\nTitanium SDK, build: 3.3.0.v20140521174951\r\nTitanium CLI, build: 3.3.0-alpha5\r\nAlloy: 1.4.0-alpha3\r\nXcode: 5.1.1\r\niOS Device: iPhone 5S (7.0.6)", "comment": { "comments": [ { "id": "306125", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Extended Code Sample \r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n layout: 'vertical'\r\n});\r\nvar jsonString = {\"key1\":\"value1\",\"Key2\":\"value2\"};\r\n\r\nvar b1 = Titanium.UI.createButton({\r\n title: 'Send Feature Event string:',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\nb1.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Sending Feature Event\");\r\n Ti.Analytics.featureEvent('featureEvent', 'featureEvent.testButton');\r\n \r\n});\r\n \r\nvar window = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n layout: 'vertical'\r\n});\r\nvar b2 = Titanium.UI.createButton({\r\n title: 'Send Feature Event Jsonstring:',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\nb2.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Sending Feature Event Jsonstring:\");\r\n Ti.Analytics.featureEvent('featureEvent', JSON.stringify(jsonString));\r\n \r\n});\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor: 'white',\r\n layout: 'vertical'\r\n});\r\nvar b5 = Titanium.UI.createButton({\r\n title: 'Send Feature Event JSON:',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\nb5.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Sending Feature Event\");\r\n Ti.Analytics.featureEvent('featureEvent', jsonString);\r\n \r\n});\r\nvar b3 = Titanium.UI.createButton({\r\n title: 'Send Feature Event OBJECT:',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\nb3.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Sending Feature Event\");\r\n Ti.Analytics.featureEvent('featureEvent', b1);\r\n \r\n});\r\n\r\nvar b4 = Titanium.UI.createButton({\r\n title: 'Check Last Event',\r\n top: 10,\r\n width: Ti.UI.SIZE,\r\n height: 50\r\n});\r\nb4.addEventListener('click',function(e)\r\n{\r\n Ti.API.info(\"Last Event ? \" + Ti.Analytics.lastEvent);\r\n alert(Ti.Analytics.lastEvent);\r\n \r\n});\r\nwindow.add(b1);\r\nwindow.add(b2);\r\nwindow.add(b3);\r\nwindow.add(b5);\r\nwindow.add(b4);\r\nwindow.open();\r\n{code}", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-22T19:58:12.000+0000", "updated": "2014-05-22T19:58:12.000+0000" }, { "id": "306127", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/5728", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-22T19:59:58.000+0000", "updated": "2014-05-22T19:59:58.000+0000" }, { "id": "306128", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_3_X : https://github.com/appcelerator/titanium_mobile/pull/5729\r\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-22T20:10:57.000+0000", "updated": "2014-05-22T20:10:57.000+0000" }, { "id": "307020", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: 3.3.0.201405271647\r\nTitanium SDK, build: 3.3.0.v20140528144113\r\nTitanium CLI, build: 3.3.0-beta\r\nAlloy: 1.4.0-beta\r\niOS Device: iPhone 5S (7.1.1)\r\n\r\nApp no longer crashes and analytical data is sent.\r\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-30T17:00:23.000+0000", "updated": "2014-05-30T17:00:23.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }