{ "id": "163548", "key": "TIMOB-23966", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-10-07T10:57:42.000+0000", "created": "2016-09-29T11:41:54.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "parity", "qe-6.0.0" ], "versions": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "18322", "name": "Release 5.5.1", "archived": false, "released": true, "releaseDate": "2016-09-28" } ], "issuelinks": [ { "id": "53062", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "163909", "key": "TIMOB-24022", "fields": { "summary": "Hyperloop: Android: Unable to instantiate hyperloop classes", "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": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-10-13T18:10:13.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h5.Description\r\n\r\nWhen sending a feature event on Android, if a key in the data object is a number an error will be thrown. The code works find on iOS and Windows\r\n\r\n{code}\r\n[WARN] W/System.err: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String\r\n[WARN] W/System.err: at org.appcelerator.titanium.util.TiConvert.toJSON(TiConvert.java:723)\r\n[WARN] W/System.err: at ti.modules.titanium.analytics.AnalyticsModule.featureEvent(AnalyticsModule.java:98)\r\n[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)\r\n[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)\r\n[WARN] W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43)\r\n[WARN] W/System.err: at ti.modules.titanium.TitaniumModule$Timer.run(TitaniumModule.java:147)\r\n[WARN] W/System.err: at android.os.Handler.handleCallback(Handler.java:739)\r\n[WARN] W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)\r\n[WARN] W/System.err: at android.os.Looper.loop(Looper.java:145)\r\n[WARN] W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5938)\r\n[WARN] W/System.err: at java.lang.reflect.Method.invoke(Native Method)\r\n[WARN] W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)\r\n[WARN] W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)\r\n[WARN] W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)\r\n{code}\r\n\r\n{code}\r\nvar data = {'1':'d'}\r\nvar result = Ti.Analytics.featureEvent('levels', data);\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 android\r\n\r\nh5.Actual result\r\n\r\nAn error will be thrown\r\n\r\nh5.Expected result\r\n\r\nNo error should be thrown", "attachment": [], "flagged": false, "summary": "Android: Unable to send a feature event with a number as the data objects key", "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": "OS: Microsoft Windows 10 Pro 10.0.14393\r\nAppc core: 6.0.0-54\r\nAppc NPM: 4.2.8-7\r\nTi SDK: 6.0.0.v20160925202930\r\nAppc Studio: 4.8.0.201609232005\r\nGalaxy Note 3 5.0", "closedSprints": [ { "id": 722, "state": "closed", "name": "2016 Sprint 20 SDK", "startDate": "2016-09-28T16:50:17.299Z", "endDate": "2016-10-12T16:50:00.000Z", "completeDate": "2016-10-10T06:17:01.016Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "397883", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8459\r\n6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8460", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-03T14:28:24.000+0000", "updated": "2016-10-03T14:28:24.000+0000" }, { "id": "398850", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nFeature event with a number as a data object key is sent successfully.\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.8.0.201610060953\r\nTi SDK : 6.0.0.v20161013072802, 6.1.0.v20161012092744 \r\nTi CLI : 5.0.10\r\nAlloy : 1.9.2\r\nMAC El Capitan : 10.11.6\r\nAppc NPM : 4.2.8-7\r\nAppc CLI : 6.0.0-57\r\nNode: 4.6.0\r\nNexus 6 - Android 6.0.1", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-13T18:10:06.000+0000", "updated": "2016-10-13T18:10:06.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }