{ "id": "172880", "key": "TIMOB-26738", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-01-18T22:26:32.000+0000", "created": "2019-01-16T16:37:01.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "regression" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-01-22T14:24:12.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\n\r\n*This works fine on android, and on 7.5.0*\r\n\r\nWhen using {{Ti.Analytics.featureEvent()}} with names like \"app.view\", \"app:view\" (and I assume other types of punctuation I'm seeing the below error.\r\n\r\n{code}\r\n[ERROR] Script Error {\r\n[ERROR] column = 28;\r\n[ERROR] line = 109;\r\n[ERROR] message = \"[<__NSDictionary0 0x60000008c0f0> setValue:forUndefinedKey:]: this class is not key value coding-compliantfor the key eventName.\";\r\n[ERROR] nativeStack = \"3 Foundation 0x000000010708dde4 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292\\n4 TitaniumKit0x000000010a55a59b -[APSAnalytics sendCustomEvent:withEventType:data:] + 204\\n5 TitaniumKit0x000000010a55a27e -[APSAnalytics sendAppFeatureEvent:payload:] + 109\\n6 pko-app 0x000000010522065c -[AnalyticsModule featureEvent:] + 908\\n7 CoreFoundation 0x000000010b85e03c __invoking___ + 140\\n8 CoreFoundation 0x000000010b85b4d5 -[NSInvocation invoke] + 325\\n9 TitaniumKit0x000000010a54ddbd -[KrollMethod call:] + 1385\\n10 TitaniumKit0x000000010a54ceff __KrollCallAsFunction_block_invoke + 30\\n11 TitaniumKit0x000000010a54cd10 KrollCallAsFunction + 496\\n12 JavaScriptCore 0x00000001055ef5b3 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4callEPNS_9ExecStateE + 515\\n13 JavaScriptCore 0x0000000105b7d571 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateEPNS_11InstructionENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 385\\n14 JavaScriptCore 0x00000001055bc32f llint_entry + 26803\\n15 ??? 0x000056bf51072545 0x0 + 95379698165061\\n16 JavaScriptCore 0x00000001055bc33d llint_entry + 26817\\n17 JavaScriptCore 0x00000001055bc6d0 llint_entry + 27732\\n18 JavaScriptCore 0x00000001055bc33d llint_entry + 26817\\n19 JavaScriptCore 0x00000001055b58fe vmEntryToJavaScript + 244\";\r\n[ERROR] sourceURL = \"file:///Users/eharris/Library/Developer/CoreSimulator/Devices/55E4CDF1-2A89-4EF1-9806-97772F4D56CD/data/Containers/Bundle/Application/B4A31F91-91D7-4A2C-818F-0B237A789E55/pko-app.app/alloy/controllers/attendee/page.js\";\r\n[ERROR] stack = \" at [native code]\\n at Controller(/alloy/controllers/attendee/page.js:109:28)\\n at createController(/alloy.js:339:53)\\n at handleOpenWindow(/alloy/controllers/main.js:62:41)\\n at trigger(/alloy/backbone.js:163:32)\\n at clickRow(/alloy/controllers/attendee/row.js:105:33)\";\r\n[ERROR] toJSON = \"\";\r\n[ERROR] }\r\n{code}\r\n\r\nh5.Steps to reproduce\r\n\r\n1. Add {{Ti.Analytics.featureEvent('app.view')}} to an existing app.js\r\n\r\nh5.Actual\r\n\r\nAbove error gets thrown\r\n\r\nh5.Expected\r\n\r\nThe event name is valid so no error should be thrown", "attachment": [], "flagged": false, "summary": "iOS: Using punctuation in a featureEvent name throws an error", "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": "SDK: 8.0.0.v20190115162133\r\niOS 12.1 sim", "comment": { "comments": [ { "id": "445422", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/10617", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-17T00:29:48.000+0000", "updated": "2019-01-17T00:29:48.000+0000" }, { "id": "445434", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*FR Passsed,*\r\nAdding punctiation to a featureEvent no longer throws an error\r\n\r\n{noformat}\r\niPhone 6 (12.0)\r\nSimulator 12.1\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.9\r\nTi CLI: 5.1.1\r\nNode: 8.12.0\r\nXcode: 10.1\r\nNPM: 6.50\r\n{noformat}\r\n", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2019-01-17T14:41:50.000+0000", "updated": "2019-01-17T14:42:05.000+0000" }, { "id": "445471", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jquick] would you please do the CR for this one? Thanks.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-18T18:36:33.000+0000", "updated": "2019-01-18T18:36:33.000+0000" }, { "id": "445526", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*Closing ticket.*\r\n\r\nThe fix is present in SDK:\r\n\r\n{noformat}\r\n8.0.0.v20190122040339\r\n{noformat}", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2019-01-22T14:24:03.000+0000", "updated": "2019-01-22T14:24:03.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }