{ "id": "83437", "key": "TIMOB-6489", "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": "12089", "description": "", "name": "Sprint 2011-49", "archived": true, "released": true, "releaseDate": "2011-12-12" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-08T23:49:58.000+0000", "created": "2011-12-06T13:41:23.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "module_webview", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-01-10T15:07:18.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": "Crash from modules when trying to extend web view. Web view takes a TiViewProxy but assumes further in that the type is WebViewProxy. Wrap basic auth logic in instanceof check for WebViewProxy. Pastie of working work around attached: http://pastie.org/2977192", "attachment": [ { "id": "24991", "filename": "ti.sample-android-2.zip", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T14:52:41.000+0000", "size": 40508, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Only set basic auth on web view if the proxy is of type WebViewProxy", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "175518", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Steps to reproduce:\r\n\r\n1. Create a titanium project\r\n2. Open tiapp.xml and add entry: \r\n{code}\r\n \r\n ti.sample\r\n \r\n{code}\r\n3. Download attached zipped module, and place it in your project (same level as the Resources directory)\r\n4. Use the following app.js:\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\nvar label = Ti.UI.createLabel();\r\nwindow.add(label);\r\nwindow.open();\r\n\r\nvar webview = require('ti.sample');\r\nTi.API.info(\"module is => \" + webview);\r\n\r\nlabel.text = webview.example();\r\n\r\nTi.API.info(\"module exampleProp is => \" + webview.exampleProp);\r\nwebview.exampleProp = \"This is a test value\";\r\n\r\nif (Ti.Platform.name == \"android\") {\r\n\tvar proxy = webview.createExample({\r\n\t\tmessage: \"Creating an example Proxy\",\r\n\t\tbackgroundColor: \"red\",\r\n\t\twidth: 100,\r\n\t\theight: 100,\r\n\t\ttop: 100,\r\n\t\tleft: 150\r\n\t});\r\n\r\n\tproxy.printMessage(\"Hello world!\");\r\n\tproxy.message = \"Hi world!. It's me again.\";\r\n\tproxy.printMessage(\"Hello world!\");\r\n\twindow.add(proxy);\r\n}\r\n{code}\r\n5. Run the app (NOTE: if you run the app multiple times you may need to clean out build directory each time)\r\n\r\nThe app will crash and stay on the splash screen in the fail case.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-08T20:00:19.000+0000", "updated": "2011-12-08T20:00:19.000+0000" }, { "id": "178775", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio 1.0.8.201201091758\r\nTi Mob SDK 1.8.0.1\r\nOSX Lion\r\nDroid 3 both v8 and rhino\r\n\r\nExpected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-10T15:07:18.000+0000", "updated": "2012-01-10T15:07:18.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }