{ "id": "174796", "key": "TIMOB-27795", "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": "21039", "name": "Release 9.0.3", "archived": false, "released": true, "releaseDate": "2020-06-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-06-09T13:43:58.000+0000", "created": "2020-03-09T16:36:04.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "local", "parameters", "regression", "url", "webview" ], "versions": [ { "id": "20412", "name": "Release 8.1.0", "archived": false, "released": true, "releaseDate": "2019-08-13" } ], "issuelinks": [ { "id": "58731", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "175541", "key": "TIMOB-28135", "fields": { "summary": "Ti.UI.WebView Test Suite: Titanium.UI.WebView TIMOB-27795 Android only", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "10100", "description": "This Issue Type is used to create Zephyr Test within Jira.", "name": "Test", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-09-15T07:26:03.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": "Since SDK version 8.1.0 I have been unable to specify a URL for a webview that uses a local HTML file with variables in the URL. I pass things like the UDID and other variables to a local HTML file in an Android app. This worked fine up till SDK 8.0.2. It says the file is not found when I add any variable to the local file. Using a remote file has no issue. \r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\n\r\nvar webview = Ti.UI.createWebView({\r\n top: '7dp',\r\n height: '100%',\r\n width: '100%',\r\n url: 'http://google.com',\r\n});\r\n\r\nwin.add(webview);\r\n\r\nvar testVar = -40.1;\r\n\r\nwebview.url = '/index.html?data=' + testVar;\r\n\r\nwin.open();\r\n{code}\r\n\r\nThe above example fails to run with the following error, I have tired with every SDK after 8.0.2. \r\n\r\n{code:java}\r\nRROR] : TiAssetHelper: Error while opening asset \"Resources/index.html?data=-40.1\":\r\n[ERROR] : TiAssetHelper: java.io.FileNotFoundException: Resources/index.html?data=-40.1\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.nativeOpenAsset(Native Method)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:744)\r\n[ERROR] : TiAssetHelper: \tat android.content.res.AssetManager.open(AssetManager.java:721)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.util.KrollAssetHelper.openAsset(KrollAssetHelper.java:140)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:71)\r\n[ERROR] : TiAssetHelper: \tat ti.modules.titanium.ui.widget.webview.TiUIWebView.setUrl(TiUIWebView.java:616)\r\n[ERROR] : TiAssetHelper: \tat ti.modules.titanium.ui.widget.webview.TiUIWebView.processProperties(TiUIWebView.java:464)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1293)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:511)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:501)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:467)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:518)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:501)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:467)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:607)\r\n[ERROR] : TiAssetHelper: \tat ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:328)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:57)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:573)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:721)\r\n[ERROR] : TiAssetHelper: \tat org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:47)\r\n[ERROR] : TiAssetHelper: \tat android.app.Activity.performCreate(Activity.java:7136)\r\n[ERROR] : TiAssetHelper: \tat android.app.Activity.performCreate(Activity.java:7127)\r\n[ERROR] : TiAssetHelper: \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)\r\n[ERROR] : TiAssetHelper: \tat android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)\r\n[ERROR] : TiAssetHelper: \tat android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)\r\n[ERROR] : TiAssetHelper: \tat android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)\r\n[ERROR] : TiAssetHelper: \tat android.os.Handler.dispatchMessage(Handler.java:106)\r\n[ERROR] : TiAssetHelper: \tat android.os.Looper.loop(Looper.java:193)\r\n[ERROR] : TiAssetHelper: \tat android.app.ActivityThread.main(ActivityThread.java:6669)\r\n[ERROR] : TiAssetHelper: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiAssetHelper: \tat com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)\r\n[ERROR] : TiAssetHelper: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)\r\n[ERROR] : TiExceptionHandler: (main) [668,790] null\r\n[ERROR] : TiExceptionHandler:\r\n[ERROR] : TiExceptionHandler: java.io.Reader.(Reader.java:78)\r\n[ERROR] : TiExceptionHandler: java.io.InputStreamReader.(InputStreamReader.java:97)\r\n[ERROR] : TiExceptionHandler: ti.modules.titanium.ui.widget.webview.TiUIWebView.setUrl(TiUIWebView.java:617)\r\n[ERROR] : TiExceptionHandler: ti.modules.titanium.ui.widget.webview.TiUIWebView.processProperties(TiUIWebView.java:464)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1293)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:511)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:501)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:467)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:518)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:501)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:467)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:607)\r\n[ERROR] : TiExceptionHandler: ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:328)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:57)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:573)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:721)\r\n[ERROR] : TiExceptionHandler: org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:47)\r\n[ERROR] : TiExceptionHandler: android.app.Activity.performCreate(Activity.java:7136)\r\n[ERROR] : TiExceptionHandler: android.app.Activity.performCreate(Activity.java:7127)\r\n[ERROR] : TiExceptionHandler: android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)\r\n[ERROR] : TiExceptionHandler: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)\r\n[ERROR] : TiExceptionHandler: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)\r\n[ERROR] : TiExceptionHandler: android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)\r\n[ERROR] : TiExceptionHandler: android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)\r\n[ERROR] : TiExceptionHandler: android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)\r\n[ERROR] : TiExceptionHandler: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)\r\n[ERROR] : TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:106)\r\n[ERROR] : TiExceptionHandler: android.os.Looper.loop(Looper.java:193)\r\n[ERROR] : TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:6669)\r\n[ERROR] : TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiExceptionHandler: com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)\r\n[ERROR] : TiExceptionHandler: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: WebView crashes when given local HTML URL with parameters as of 8.1.0", "creator": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dlewis23", "key": "dlewis23", "displayName": "Donovan Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1195, "state": "closed", "name": "2020 Sprint 10", "startDate": "2020-05-08T16:37:58.282Z", "endDate": "2020-05-22T16:37:00.000Z", "completeDate": "2020-05-21T15:26:11.089Z", "originBoardId": 114 }, { "id": 1196, "state": "closed", "name": "2020 Sprint 11", "startDate": "2020-05-26T15:56:00.000Z", "endDate": "2020-06-05T15:56:00.000Z", "completeDate": "2020-06-08T21:05:50.356Z", "originBoardId": 114 }, { "id": 1198, "state": "closed", "name": "2020 Sprint 12", "startDate": "2020-06-08T21:06:41.849Z", "endDate": "2020-06-19T21:06:00.000Z", "completeDate": "2020-06-19T15:54:38.493Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "454626", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've confirmed this issue started happening as of Titanium 8.1.0 and higher.\r\nThis issue does not happen in 8.0.2.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-09T23:40:12.000+0000", "updated": "2020-03-09T23:40:12.000+0000" }, { "id": "454848", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/11564", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-25T00:40:58.000+0000", "updated": "2020-03-25T00:40:58.000+0000" }, { "id": "455672", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*FR passed* for master, waiting on backport for 9_0_X. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-08T13:44:29.000+0000", "updated": "2020-06-08T13:44:29.000+0000" }, { "id": "455673", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~smohammed] 9_0_X backport at https://github.com/appcelerator/titanium_mobile/pull/11762", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2020-06-08T13:48:05.000+0000", "updated": "2020-06-08T13:48:05.000+0000" }, { "id": "455679", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR Passed for 9_0_X as well, waiting on Jenkins builds. ", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-08T14:24:23.000+0000", "updated": "2020-06-08T14:24:23.000+0000" }, { "id": "455684", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "merged to master for 9.1.0 target, 9_0_X for 9.0.3 target", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2020-06-08T14:49:15.000+0000", "updated": "2020-06-08T14:49:15.000+0000" }, { "id": "455716", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, Fix verified SDK version 9.1.0.v20200608174711 and SDK version 9.0.3.v20200608153416\r\n\r\nTest and other information can be found at:\r\nMaster: https://github.com/appcelerator/titanium_mobile/pull/11564\r\n9_0_X: https://github.com/appcelerator/titanium_mobile/pull/11762", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-06-09T13:43:37.000+0000", "updated": "2020-06-09T13:43:37.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }