{ "id": "110964", "key": "TIMOB-13045", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2013-03-21T18:28:37.000+0000", "created": "2013-03-11T17:24:08.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [], "issuelinks": [ { "id": "26690", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "87800", "key": "TIMOB-7965", "fields": { "summary": "iOS: canGoBack/canGoForward does not work for local files", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T18:08:05.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": "h1. Problem\r\n\r\nLoading local files into webview do not work anymore. The latest TI SDk that work with this feature is 3.0.0.GA.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, \"testpage\");\r\nfile.write(\"this is the html page!!!\")\r\n\r\nvar webview = Ti.UI.createWebView({\r\n\turl: file.nativePath\r\n});\r\n\r\nTi.API.info(file.nativePath)\r\n\r\nwin.add(webview);\r\n\r\nwin.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: WebView does not load local html files without \".html\" file extension", "creator": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "tlsg", "key": "tlsg", "displayName": "Tommy Leung", "active": true, "timeZone": "America/New_York" }, "environment": "Ti SDK 3.0.2/3.1.0 CI\r\niOS 5+", "comment": { "comments": [ { "id": "241928", "author": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "body": "The problem does not seem to be visible if the filename has the .html extension; it works fine without extension using 3.0.0.GA", "updateAuthor": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-03-13T08:43:22.000+0000", "updated": "2013-03-13T08:43:22.000+0000" }, { "id": "242049", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with:\r\nTitanium Studio, build: 3.0.3.201302201202\r\nTitanium SDK, build: 3.1.0.v20130312161655\r\nDevice:\r\niPhone5 iOS 6.0\r\nUsed *the .html extension* in the code, works fine.\r\n\r\nvar win = Ti.UI.createWindow();\r\n{code} \r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, \"testpage.html\");\r\nfile.write(\"this is the html page!!!\")\r\n \r\nvar webview = Ti.UI.createWebView({\r\n url: file.nativePath\r\n});\r\n \r\nTi.API.info(file.nativePath)\r\n \r\nwin.add(webview);\r\n \r\nwin.open();\r\n{code}", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-13T19:05:41.000+0000", "updated": "2013-03-13T19:07:11.000+0000" }, { "id": "242922", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Downgrading as there is a workaround.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-19T16:29:08.000+0000", "updated": "2013-03-19T16:29:08.000+0000" }, { "id": "243331", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Mime-type is crucial for WebView loading. For remote URLs, mime-type is sent from server.\r\nFor html/data properties, mime-type is specified in additional properties.\r\nFor local URLs, file extension should match a valid mime type.\r\n\r\nThis ticket could be resolved as:\r\n1. Won't Fix, requiring valid file extension.\r\n2. Feature Request, so support mimeType property in addition to url.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T01:08:44.000+0000", "updated": "2013-03-21T05:06:29.000+0000" }, { "id": "243470", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is as a result of https://github.com/appcelerator/titanium_mobile/pull/3701. We've determined that it is important for the user to specify a file ending in .html, or use the mimeType property from the setHtml method which supports content injection.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T18:28:37.000+0000", "updated": "2013-03-21T18:31:52.000+0000" }, { "id": "414836", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue will not fix and with reference to the above comments. ", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T18:08:05.000+0000", "updated": "2017-03-22T18:08:05.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }