{ "id": "172974", "key": "AC-6131", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-05-04T05:42:57.000+0000", "created": "2019-02-08T00:16:46.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-04T05:42:57.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Tested with the latest Ti SDK 7.5.0\r\n\r\nTrying to integrate with Quickbooks login via the web view. The login page shows up correctly in the native android browser, iOS web view and in the desktop browser but in the android Ti web view it's a blank page.\r\n\r\nI can see from the web view's \"load\" event that the webview.html is loaded/set with the html source.\r\n\r\nUpon further checking the logs I find the following warnings/errors:\r\n\r\n[INFO] I/TiWebChromeClient.console: (main) [1704,119314] Unrecognized Content-Security-Policy directive 'worker-src'.\r\n[INFO] I/TiWebChromeClient.console: (0:https://pf.intuit.com/fp/tags?js=1&org_id=v60nf4oj&session_id=949264C37CC241B6BDDF0FB0D52820CE)\r\n[INFO] I/TiWebChromeClient.console: (main) [1230,120544] {color:red}Unrecognized Content-Security-Policy directive 'worker-src'.{color}\r\n[INFO] I/TiWebChromeClient.console: (0:about:blank)\r\n[INFO] I/TiWebChromeClient.console: (main) [26,120570] Unrecognized Content-Security-Policy directive 'worker-src'.\r\n[INFO] I/TiWebChromeClient.console: (0:about:blank)\r\n[INFO] I/TiWebChromeClient.console: (main) [8,120578] Unrecognized Content-Security-Policy directive 'worker-src'.\r\n[INFO] I/TiWebChromeClient.console: (0:about:blank)\r\n[WARN] chromium: [WARNING:mediasession.cc(376)] Duplicate id found. Reassigning from 101 to 127\r\n[ERROR] eglCodecCommon: **** ERROR unknown type 0x29b45cb5 (glSizeof,80)\r\n[WARN] chromium: [WARNING:p2ptransportchannel.cc(487)] Jingle:Port[0xcb77f600:data:1:0:local:Net[any:0.0.0.x/0:Unknown]]: SetOption(5, 0) failed: 0\r\n[WARN] chromium: [WARNING:p2ptransportchannel.cc(487)] Jingle:Port[0xcb77f400:data:1:0:local:Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: SetOption(5, 0) failed: 0\r\n[WARN] chromium: [WARNING:p2ptransportchannel.cc(487)] Jingle:Port[0xcb77f200:data:2:0:local:Net[any:0.0.0.x/0:Unknown]]: SetOption(5, 0) failed: 0\r\n[WARN] chromium: [WARNING:p2ptransportchannel.cc(487)] Jingle:Port[0xcb77f000:data:2:0:local:Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: SetOption(5, 0) failed: 0\r\n[WARN] chromium: [WARNING:stunport.cc(393)] Jingle:Port[0xcb6afc80:data:1:0::Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: StunPort: stun host lookup received error 0\r\n[WARN] chromium: [WARNING:stunport.cc(393)] Jingle:Port[0xcb6afa00:data:2:0::Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: StunPort: stun host lookup received error 0\r\n[WARN] chromium: [WARNING:turnport.cc(666)] Jingle:Port[0xcd47a880:data:1:0:relay:Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: TURN host lookup received error 0\r\n[WARN] chromium: [WARNING:turnport.cc(666)] Jingle:Port[0xcd47a500:data:1:0::Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: TURN host lookup received error 0\r\n[WARN] chromium: [WARNING:turnport.cc(666)] Jingle:Port[0xcd47ba00:data:2:0:relay:Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: TURN host lookup received error 0\r\n[WARN] chromium: [WARNING:turnport.cc(666)] Jingle:Port[0xcd47bd80:data:2:0::Net[any:0:0:0:x:x:x:x:x/0:Unknown]]: TURN host lookup received error 0\r\n[ERROR] chromium: [ERROR:stunport.cc(80)] Binding error response: class=4 number=1 reason='Unauthorized'\r\n[ERROR] chromium: [ERROR:stunport.cc(80)] Binding error response: class=4 number=1 reason='Unauthorized'", "attachment": [ { "id": "66170", "filename": "Screen Shot 2019-02-19 at 9.59.15 pm.jpg", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-19T11:01:04.000+0000", "size": 160538, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android web view issue: Unrecognized Content-Security-Policy directive 'worker-src'.", "creator": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac", "comment": { "comments": [ { "id": "445936", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please share a sample code for us to test the issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-08T16:02:33.000+0000", "updated": "2019-02-08T16:02:33.000+0000" }, { "id": "445960", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif,\r\n\r\nThanks for looking into this issue. I can share our sample project but due to it's a company project would it possible we share it privately?\r\n\r\nI can send you the file to your email (sdarda@axway.com) if you like. ", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-09T01:14:50.000+0000", "updated": "2019-02-09T01:14:50.000+0000" }, { "id": "446002", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi @Sharif AbuDarda,\r\n\r\nNot sure if you saw my last comment. Please let me know your preferred way of sharing my sample project.\r\n\r\nThanks,\r\nKai", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-12T00:46:14.000+0000", "updated": "2019-02-12T00:46:14.000+0000" }, { "id": "446004", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello [~kenjorai],\r\nCan you please share your project in Dropbox and share the link here to download.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-12T08:56:11.000+0000", "updated": "2019-02-12T16:56:02.000+0000" }, { "id": "446027", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just invited Rakhi [rmitro@appcelerator.com] to access the sample code from my dropbox.\r\n\r\nNot able to share a private link as it's a free account. Please only share the code internally.\r\n\r\nLet me know if you did not get the invite. I've also sent Sharif an email yesterday with the sample project.\r\n\r\nThanks!", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-12T21:44:23.000+0000", "updated": "2019-02-12T21:51:16.000+0000" }, { "id": "446138", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~kenjorai],\r\nYes. Tested the sample project provided by you. Failed to build the project and got the following error on console.\r\n{code}\r\n[ERROR] : TiExceptionHandler: (main) [11,10096] /app.js:41\r\n[ERROR] : TiExceptionHandler: var len = web.html.length;\r\n[ERROR] : TiExceptionHandler: ^\r\n[ERROR] : TiExceptionHandler: TypeError: Cannot read property 'length' of null\r\n[ERROR] : TiExceptionHandler: at WebView.success (/app.js:41:22)\r\n[ERROR] : TiExceptionHandler: at WebView.value (ti:/events.js:50:21)\r\n[ERROR] : TiExceptionHandler: at WebView.value (ti:/events.js:102:19)\r\n[ERROR] : TiExceptionHandler:\r\n[ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:63)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:978)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1207)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:265)\r\n[ERROR] : TiExceptionHandler: ti.modules.titanium.ui.WebViewProxy.handleMessage(WebViewProxy.java:222)\r\n[ERROR] : TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:104)\r\n[ERROR] : TiExceptionHandler: android.os.Looper.loop(Looper.java:166)\r\n[ERROR] : TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:7425)\r\n[ERROR] : TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : V8Exception: Exception occurred at /app.js:41: Uncaught TypeError: Cannot read property 'length' of null\r\n{code}\r\n\r\nIs this the correct sample test project?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-18T11:42:17.000+0000", "updated": "2019-02-18T11:42:17.000+0000" }, { "id": "446145", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Rakhi,\r\n\r\nYes, it is the correct sample project and it worked fine on my machine.\r\n\r\nI suppose you have a connection problem to the url due to your proxy or firewall I think.\r\n\r\nThe error also demonstrates that the page cannot be loaded. The difference is mine is a blank page and yours won't even load the blank page.\r\n\r\nIf you run it from iOS simulator it should show you the correct login screen.", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-18T22:54:57.000+0000", "updated": "2019-02-18T22:54:57.000+0000" }, { "id": "446150", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello [~kenjorai],\r\n\r\nTested the project also on an iOS device. And find the following error:\r\n{code}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 21;\r\n[ERROR] : line = 41;\r\n[ERROR] : message = \"undefined is not an object (evaluating 'web.html.length')\";\r\n[ERROR] : sourceURL = \"file:///var/containers/Bundle/Application/F83F017F-6945-4617-92AF-3BB913E15656/iosTest.app/app.js\";\r\n[ERROR] : stack = \" at success(/app.js:41:21)\";\r\n[ERROR] : toJSON = \"\";\r\n[ERROR] : }\r\n{code}\r\n\r\nCan you please double check your sample code?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-02-19T10:50:44.000+0000", "updated": "2019-02-19T10:50:44.000+0000" }, { "id": "446151", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Rakhi,\r\n\r\nThanks for your testing.\r\n\r\nThat does seem a bit odd to me. I just launched the sample app and it worked just fine.\r\n\r\nIt seems to me that you don't have a proper connection to the web site. If you copy and paste the url to your browser does it open correctly?\r\n\r\nIf not, what's error message?\r\n\r\n!Screen Shot 2019-02-19 at 9.59.15 pm.jpg|thumbnail!", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-19T11:01:14.000+0000", "updated": "2019-02-19T11:01:46.000+0000" }, { "id": "446160", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~rmitro]], Share with me the project. I will give it a try. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-19T18:43:48.000+0000", "updated": "2019-02-19T18:43:48.000+0000" }, { "id": "446853", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif,\r\n\r\nHow is it going with this issue?\r\n\r\nIf you are having trouble getting the sample project please let me know.", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-14T21:54:26.000+0000", "updated": "2019-03-14T21:54:26.000+0000" }, { "id": "446936", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~kenjorai], Can you give access to this email \"sdarda@axway.com\" or \"shabudarda@gmail.com\"? thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-03-17T18:12:42.000+0000", "updated": "2019-03-17T18:34:33.000+0000" }, { "id": "446958", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif,\r\n\r\nJust shared the sample project to both of your emails. Please let me know if you have received it or not.", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-19T02:28:33.000+0000", "updated": "2019-03-19T02:28:33.000+0000" }, { "id": "448162", "author": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It appears to be due to some security reason enforced by the quickbooks to not allow the web view to access the login page.\r\n\r\nPlease feel free to close the ticket.\r\n\r\nThanks,\r\nKai", "updateAuthor": { "name": "kenjorai", "key": "kenjorai", "displayName": "Kai Lu", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-03T03:03:09.000+0000", "updated": "2019-05-03T03:03:09.000+0000" } ], "maxResults": 19, "total": 19, "startAt": 0 } } }