{ "id": "104892", "key": "TIMOB-11751", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14624", "description": "2012 Sprint 24 JS", "name": "2012 Sprint 24", "archived": true, "released": true, "releaseDate": "2012-12-03" }, { "id": "14625", "description": "2012 Sprint 24 API", "name": "2012 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2012-12-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-14T00:33:17.000+0000", "created": "2012-11-13T18:56:11.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "3.0.0beta2", "module_network", "qe-testadded", "regression", "triage" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-03T07:30:19.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": "The HTTPClient on Android is not dispatching the callback \"onreadystatechange\".\r\n\r\nThere appears to be a typo in TiHTTPClient.java with the callback\r\nbeing named \"onreadystatechanged\" (notice the 'd' at the end).\r\n\r\nAlong with fixing this typo we should create a new Anvil test\r\ncase to catch future regressions in the HTTP callbacks. At least\r\nverify each one fires at the correct time.", "attachment": [], "flagged": false, "summary": "Android: HTTPClient.onreadystatechange not dispatched", "creator": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "227182", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3420\r\nSteps for FR:\r\n1. Run the test case below on both rhino and v8:\r\n{code}\r\nvar xhr = Titanium.Network.createHTTPClient();\r\nxhr.onreadystatechange = function()\r\n{\r\n Ti.API.info(\"************************** xhr.onreadystatechange\");\r\n}\r\n// open the client\r\nxhr.open('GET','http://www.appcelerator.com/assets/The_iPad_App_Wave.pdf');\r\n\t\r\n// send the data\r\nxhr.send();\r\n{code}\r\n2. Check the console. Should see the log:\r\n{code}\r\nI/TiAPI (27676): ************************** xhr.onreadystatechange\r\n{code}\r\n3. Run Anvil -> network_httpclient -> callbackTestForGETMethod/callbackTestForPOSTMethod. The tests should pass on v8. They fail on rhino for now. Already filed TIMOB-11758 for this issue.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-13T20:59:14.000+0000", "updated": "2012-11-14T00:02:51.000+0000" }, { "id": "227234", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/3423", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-14T00:35:36.000+0000", "updated": "2012-11-14T00:35:36.000+0000" }, { "id": "230155", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested on: \r\nTitanium Studio, build: 3.0.0.201211301903\r\nTitanium SDK, builds: 3.0.0.v20121204181658; 3.1.0.v20121203181001\r\nDevices: Motorola RAZR i XT890 (4.0.4)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-05T23:57:26.000+0000", "updated": "2012-12-05T23:57:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }