{ "id": "84831", "key": "TIMOB-7151", "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": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13170", "name": "Sprint 2012-06", "archived": true, "released": true, "releaseDate": "2012-03-25" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-04-12T11:10:32.000+0000", "created": "2012-01-12T17:08:45.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "mw-list" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [ { "id": "15645", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "87640", "key": "TIMOB-7946", "fields": { "summary": "MobileWeb: Ti.XML implementation", "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 } } } }, { "id": "15643", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "87519", "key": "TIMOB-7918", "fields": { "summary": "MobileWeb: XML parity issue", "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": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-24T20:52:11.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Extends Evented.\r\n\r\nProperties:\r\n* file - TODO (setter should only work AFTER open() is called)\r\n* ondatastream - TODO\r\n* onerror - Done!\r\n* onload - Done!\r\n* onreadystatechange - Done!\r\n* onsendstream - TODO: NEEDS TESTING\r\n* timeout - Done!\r\n\r\nConstants:\r\n* connected - Done!\r\n* connectionType - Done!\r\n* location - Done!\r\n* readyState - Done!\r\n* responseData - TODO: returns a Ti.Blob\r\n* responseText - Done!\r\n* responseXML - Done!\r\n* status - Done!\r\n\r\nUpdate API docs including not \"validatesSecureCertificate\" is unsupported.\r\n", "attachment": [ { "id": "26440", "filename": "app.js", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-21T16:26:30.000+0000", "size": 1555, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "MobileWeb: Complete Ti.Network.HTTPClient implementation", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "187874", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull Request: https://github.com/appcelerator/titanium_mobile/pull/1786", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-21T16:25:56.000+0000", "updated": "2012-03-21T16:25:56.000+0000" }, { "id": "190712", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "While the sample app.js code works, typical usage of the HTTP client does not. The following works on iOS and Android, but not on Mobile Web. \r\n\r\n{code}\r\nvar xhr = Titanium.Network.createHTTPClient();\t\r\nxhr.open('GET', 'http://www.google.com');\r\nxhr.onload = function(e) {\r\n label1.text = xhr.responseData.toString();\r\n};\r\nxhr.ondatastream = function(e) {\r\n Ti.API.info(\"data \" + e.progress);\r\n};\r\nxhr.onsendstream = function(e) {\r\n Ti.API.info(\"send \" + e.progress);\r\n};\r\nxhr.send();\r\n{code}\r\n\r\nThe difference being your test app.js GETs a file (app.js) rather than pulling from an HTTP resource.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2012-04-12T08:40:28.000+0000", "updated": "2012-04-12T08:40:28.000+0000" }, { "id": "190740", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This is because google.com is a cross domain resource. This has been documented on the limitations page. The only way for the example above to work is if you define a Ti.Network.httpURLFormatter function to rewrite the URL to a proxy server that you would need to setup.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2012-04-12T10:44:13.000+0000", "updated": "2012-04-12T10:44:13.000+0000" }, { "id": "415754", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed with reference to previous comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T20:52:11.000+0000", "updated": "2017-03-24T20:52:11.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }