{ "id": "174096", "key": "TIMOB-27450", "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": "20832", "name": "Release 8.3.0", "archived": false, "released": true, "releaseDate": "2019-11-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-11-06T22:19:37.000+0000", "created": "2019-09-05T06:06:18.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-11-06T22:19:37.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": [], "description": "h3. Steps to Reproduce\r\ncreate Alloy project running a WebView with a $.webview.setBasicAuthentication(param1, param2, param3) in it.\r\n\r\nh3. Actual Result\r\nTitanium SDK 7.x and prior: everything's ok\r\nSince SDK 8.x: App Crash\r\n\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 35;\r\n[ERROR] : line = 88;\r\n[ERROR] : message = 'invalid method '(null)'';\r\n[ERROR] : nativeStack = '3 TitaniumKit0x0000000112bd7ec2 __KrollCallAsFunction_block_invoke + 30\r\n4 TitaniumKit0x0000000112bd7cce KrollCallAsFunction + 450\r\n5 JavaScriptCore 0x000000010dd76053 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4callEPNS_9ExecStateE + 531\r\n6 JavaScriptCore 0x000000010e21bb64 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 404\r\n7 JavaScriptCore 0x000000010dd41011 llint_entry + 61950\r\n8 JavaScriptCore 0x000000010dd4173b llint_entry + 63784\r\n9 JavaScriptCore 0x000000010dd4101f llint_entry + 61964\r\n10 JavaScriptCore 0x000000010dd31c59 vmEntryToJavaScript + 200\r\n11 JavaScriptCore 0x000000010e117f03 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 467\r\n12 JavaScriptCore 0x000000010e35ded4 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 196\r\n13 JavaScriptCore 0x000000010dd7d018 JSObjectCallAsFunction + 488\r\n14 TitaniumKit0x0000000112bb4a1e TiBindingEventProcess + 670\r\n15 TitaniumKit0x0000000112bd5f71 -[KrollContext invoke:] + 109\r\n16 TitaniumKit0x0000000112bd5fe4 -[KrollContext enqueue:] + 93\r\n17 TitaniumKit0x0000000112bdda9e TiBindingRunLoopEnqueue + 82\r\n18 TitaniumKit0x0000000112bdc1c4 -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 164\r\n19 TitaniumKit0x0000000112bbcbce -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 224\r\n20 TitaniumKit0x0000000112bdbfce -[TiProxy fireEvent:withObject:propagate:] + 76\r\n21 TitaniumKit0x0000000112bad097 -[TiUIView touchesEnded:withEvent:] + 110\r\n22 UIKitCore 0x000000011fcda4e6 -[UIWindow _sendTouchesForEvent:] + 2547';\r\n[ERROR] : sourceURL = 'file:///Users/dnasiri/Library/Developer/CoreSimulator/Devices/5952FC7C-2DBE-448F-8CCC-335B97F14C61/data/Containers/Bundle/Application/4F5F7478-C89F-407D-AA44-C2D97C81D44C/webviewtest.app/alloy/controllers/myWebview.js';\r\n[ERROR] : stack = ' at [native code]\r\n at Controller(/alloy/controllers/myWebview.js:88:35)\r\n at createController(/alloy.js:428:53)\r\n at doClick(/alloy/controllers/index.js:54:43)';\r\n[ERROR] : toJSON = '';\r\n[ERROR] : }\r\n{code}\r\n\r\nh3. Expected Result\r\nno crash\r\n", "attachment": [ { "id": "66914", "filename": ".log", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-05T06:06:22.000+0000", "size": 6377072, "mimeType": "text/plain" }, { "id": "66916", "filename": "app.zip", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-05T06:06:38.000+0000", "size": 5000274, "mimeType": "application/zip" }, { "id": "66915", "filename": "diagnostic4291898333399001006.log", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-05T06:06:34.000+0000", "size": 301778, "mimeType": "text/plain" } ], "flagged": false, "summary": "iOS: App Crash when using $.webview.setBasicAuthentication since SDK 8.x", "creator": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio 5.1.3", "comment": { "comments": [ { "id": "451188", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hi [~dbenhenni], In which platform do you experience this crash? Android or iOS?", "updateAuthor": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-09-07T11:02:03.000+0000", "updated": "2019-09-07T11:02:03.000+0000" }, { "id": "451196", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi @jnaher, on iOS.", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-09T06:17:57.000+0000", "updated": "2019-09-09T06:18:50.000+0000" }, { "id": "451201", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~dbenhenni],\r\n\r\nCan you please verify that is the app is crashing on 8.1.1.GA?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-09T08:44:18.000+0000", "updated": "2019-09-09T08:44:18.000+0000" }, { "id": "451207", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The app runs properly with SDK 7.5.1 and prior. From SDK 8.0.0.GA till current Version 8.1.1.GA it crashes", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-09T10:22:19.000+0000", "updated": "2019-09-09T10:22:19.000+0000" }, { "id": "451599", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~dbenhenni],\r\nWe tested the project attached by you. Clicking on \"Hello World\", we are getting following error on simulator:\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 35;\r\n[ERROR] : line = 88;\r\n[ERROR] : message = \"invalid method '(null)'\";\r\n[ERROR] : nativeStack = \"3 TitaniumKit0x000000010688f4f7 __KrollCallAsFunction_block_invoke + 30\\n4 TitaniumKit0x000000010688f311 KrollCallAsFunction + 425\\n5 JavaScriptCore 0x0000000101b5c053 _ZN3JSC16JSCallbackObjectINS_20JSDestructibleObjectEE4callEPNS_9ExecStateE + 531\\n6 JavaScriptCore 0x0000000102001b64 _ZN3JSC5LLInt9setUpCallEPNS_9ExecStateENS_22CodeSpecializationKindENS_7JSValueEPNS_17LLIntCallLinkInfoE + 404\\n7 JavaScriptCore 0x0000000101b27011 llint_entry + 61950\\n8 JavaScriptCore 0x0000000101b2773b llint_entry + 63784\\n9 JavaScriptCore 0x0000000101b2701f llint_entry + 61964\\n10 JavaScriptCore 0x0000000101b17c59 vmEntryToJavaScript + 200\\n11 JavaScriptCore 0x0000000101efdf03 _ZN3JSC11Interpreter11executeCallEPNS_9ExecStateEPNS_8JSObjectENS_8CallTypeERKNS_8CallDataENS_7JSValueERKNS_7ArgListE + 467\\n12 JavaScriptCore 0x0000000102143ed4 _ZN3JSC12profiledCallEPNS_9ExecStateENS_15ProfilingReasonENS_7JSValueENS_8CallTypeERKNS_8CallDataES3_RKNS_7ArgListE + 196\\n13 JavaScriptCore 0x0000000101b63018 JSObjectCallAsFunction + 488\\n14 TitaniumKit0x000000010686cebb TiBindingEventProcess + 667\\n15 TitaniumKit0x000000010688d6d4 -[KrollContext invoke:] + 109\\n16 TitaniumKit0x000000010688d747 -[KrollContext enqueue:] + 93\\n17 TitaniumKit0x0000000106894c86 TiBindingRunLoopEnqueue + 77\\n18 TitaniumKit0x00000001068934dc -[TiProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 164\\n19 TitaniumKit0x0000000106874f7c -[TiViewProxy fireEvent:withObject:propagate:reportSuccess:errorCode:message:] + 224\\n20 TitaniumKit0x00000001068932e9 -[TiProxy fireEvent:withObject:propagate:] + 76\\n21 TitaniumKit0x0000000106865cbf -[TiUIView touchesEnded:withEvent:] + 110\\n22 UIKitCore 0x0000000113abf4e6 -[UIWindow _sendTouchesForEvent:] + 2547\";\r\n[ERROR] : sourceURL = \"file:///Users/macbookpro/Library/Developer/CoreSimulator/Devices/74237B75-753C-411F-8B4D-DCD398086D1A/data/Containers/Bundle/Application/B7B3B111-170A-41BC-A18B-21CAD87849BE/alloyTest.app/alloy/controllers/myWebview.js\";\r\n[ERROR] : stack = \" at [native code]\\n at Controller(/alloy/controllers/myWebview.js:88:35)\\n at createController(/alloy.js:428:53)\\n at doClick(/alloy/controllers/index.js:54:43)\";\r\n[ERROR] : toJSON = \"\";\r\n[ERROR] : }\r\n\r\n{code}\r\nAre you experiencing the same?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-09-24T10:27:35.000+0000", "updated": "2019-09-24T10:27:35.000+0000" }, { "id": "451621", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes. I am experiencing the same issue.", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-25T11:25:24.000+0000", "updated": "2019-09-25T11:25:24.000+0000" }, { "id": "451654", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A decent solution is required urgently in terms of iOS 13 Update.", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-09-27T07:15:45.000+0000", "updated": "2019-09-27T07:15:45.000+0000" }, { "id": "451888", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The following workaround helped to fix the error:\r\n* import module: ti.wkwebview from https://github.com/appcelerator-modules/ti.wkwebview/releases\r\n* replace $.webview.setBasicAuthentication(, ) with \r\n\r\n{code:java}\r\n$.webview.basicAuthentication = {\r\n\tusername: ,\r\n\tpassword: ,\r\n\tpersistence: Titanium.UI.iOS.CREDENTIAL_PERSISTENCE_PERMANENT\r\n};\r\n{code}\r\n\r\nhttps://docs.appcelerator.com/platform/latest/#!/guide/Communication_Between_WebViews_and_Titanium-section-29004919_CommunicationBetweenWebViewsandTitanium-Ti.AppEvents", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-08T08:07:33.000+0000", "updated": "2019-10-08T08:07:33.000+0000" }, { "id": "452433", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is a huge parity issue regressed in SDK 8.0.0. Summarized: iOS uses an Object-based access and Android expects a method with two parameters. Since the iOS WebView was reworked in SDK 8, it should be fixed on iOS. A fix is coming today.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-11-03T13:35:35.000+0000", "updated": "2019-11-03T13:35:35.000+0000" }, { "id": "452434", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request: https://github.com/appcelerator/titanium_mobile/pull/11311\r\n\r\nTest case:\r\n{code:js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nvar webView = Ti.UI.createWebView({\r\n url: 'https://jigsaw.w3.org/HTTP/Basic/'\r\n});\r\n\r\n// Uncomment to use the old way. It should log a warning\r\n// webView.basicAuthentication = { username: 'guest', password: 'guest', persistence: Ti.UI.iOS.CREDENTIAL_PERSISTENCE_SYNCHRONIZABLE };\r\n\r\nwebView.setBasicAuthentication('guest', 'guest', Ti.UI.iOS.CREDENTIAL_PERSISTENCE_SYNCHRONIZABLE);\r\n\r\nwin.add(webView);\r\nwin.open();\r\n{code}\r\n\r\nPlease escalate and schedule asap.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-11-03T14:00:11.000+0000", "updated": "2019-11-03T14:00:11.000+0000" }, { "id": "452504", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed.\r\nWaiting on Jenkins build.", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-06T19:11:48.000+0000", "updated": "2019-11-06T19:11:48.000+0000" }, { "id": "452507", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-11-06T20:51:33.000+0000", "updated": "2019-11-06T20:51:33.000+0000" }, { "id": "452510", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nMac OS: 10.14.5\r\nSDK: 8.3.0.v20191106125835\r\nAppc CLI: 7.1.1\r\nJDK: 1.8.0_162\r\nNode: 10.5.0\r\nStudio: 5.1.4.201909061933\r\nXCode: 11.1\r\nDevice: iPhone X(v13.0), iPhone 7Plus(v12.3.1), iOS simulator 13.1", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-06T22:19:37.000+0000", "updated": "2019-11-06T22:19:37.000+0000" } ], "maxResults": 13, "total": 13, "startAt": 0 } } }