{ "id": "139943", "key": "TIMOB-19596", "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": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2019-11-19T22:36:52.000+0000", "created": "2014-11-18T03:02:36.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "docx", "webview" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-11-19T22:36:52.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": "What worked up to SDK3.3.x is I could load a hosted docx file in a webview.\r\n{code: JavaScript}\r\nvar webview = Titanium.UI.createWebView({url:'link/to/file.docx'});\r\n{code}\r\n\r\nFrom SDK3.4.x it starts loading the document up to the first table, then times out with this console error:\r\n{code}\r\n[DEBUG] : New scheme: { URL: http://www.myurl.com/.../b4b8bfcee.docx }\r\n[DEBUG] : 2014-11-18 10:53:48.814 myApp[61079:13647576] *** Assertion failure in +[WMTableCellStyle resolveStyleColorWithPercentage:foregroundColor:backgroundColor:], /SourceCache/OfficeImport_Sim/OfficeImport-222/qlviewer/WordMapper/WMTableCellStyle.mm:272\r\n[DEBUG] : 2014-11-18 10:53:48.820 myApp[61079:13647576] EXCEPTION NSInternalInconsistencyException: Foreground color is not set.\r\n{code}\r\n\r\nI am generating docx files with phpWord and there is no Foreground Color attribute that can be set.", "attachment": [], "flagged": false, "summary": "Cannot load docx into webview from SDK3.4.x", "creator": { "name": "underfrog", "key": "underfrog", "displayName": "Phil Delalande", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "underfrog", "key": "underfrog", "displayName": "Phil Delalande", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OSX 10.9.5, Titanium Studio 3.4.0.201409261227 ", "comment": { "comments": [ { "id": "360930", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\n\r\nI have tested this issue in updated environment. This works fine for iOS but not working in android .\r\n\r\n\r\n*Test Environments:*\r\n\r\nOperating System= Mac OS X, Version 10.10.1\r\nCLI Version = 4.0.1\r\nTitanium SDK Version = 4.1.0.GA\r\nAndroid: Google Galaxy Nexus - 4.1.1 - API 16 - 720x1280\r\nAppc Studio: Appcelerator Studio, build: 4.1.1.201507141126\r\niOS SDK: 8.1,iOS Simulator: iPhone 4s\r\n\r\n\r\n\r\n*Test code:* \r\n\r\napp.js\r\n\r\n{code}\r\n\r\n\r\n var win1 = Ti.UI.createWindow();\r\n\r\n\r\n var document = Ti.UI.createWebView({\r\n\r\n\r\n url: 'test_document.docx',\r\n\r\n\r\n });\r\n\r\n\r\n win1.add(document);\r\n\r\n\r\n win1.open();\r\n\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-24T09:49:41.000+0000", "updated": "2015-08-24T09:49:41.000+0000" }, { "id": "452799", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue as \"Won't do.\" This is by design. Android does not support docx files for web view.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-19T22:36:52.000+0000", "updated": "2019-11-19T22:36:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }