{ "id": "60688", "key": "TIMOB-56", "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": "11210", "name": "Release 0.6.0", "archived": true, "released": true, "releaseDate": "2009-08-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:51:50.000+0000", "created": "2011-04-15T02:23:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "fa_0_5_0" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:51:50.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": "{html}

A race condition exists where the readyState function\ninvocations were being queued up by the WebViewCoreThread and only\nexecuting after readyState had been set to 4. So in normal usage\npatterns the code executed when the document was loaded was getting\nrun 3 or 4 times depending on whether the callback was set before\nor after open.

{html}", "attachment": [], "flagged": false, "summary": "Android: Race condition in HTTPClient when invoking readystate callback", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122722", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [12a8718043d27d211b9d2ce399c5659388bb0a6b])\n[#56\nstate:resolved] Extened logging to show thread name, added support\nfor synchronus callbacks in TitaniumWebView. Added sync callbacks\nto HTTPClient to call handler synchronously. \nhttp://github.com/appcelerator/titanium_mobile/commit/12a8718043d27...

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:23:09.000+0000", "updated": "2011-04-15T02:23:09.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }