{ "id": "114073", "key": "TIMOB-13920", "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": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-06-26T22:21:12.000+0000", "created": "2013-05-09T12:02:22.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-04-04T23:20:26.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": "*Reproduction steps:*\r\n\r\n- create an HTTPClient, send a request\r\n- see text in alerts\r\n\r\nor\r\n\r\n- run attached project\r\n\r\n*Expected behavior:*\r\n\r\nalerts should open one by one with follow text:\r\n\r\nonreadystatechange status: 401\r\nonreadystatechange status: 401\r\nonreadystatechange status: 401\r\nonerror status: 401\r\n\r\n*Actual behavior:*\r\n\r\nalerts open one by one with\r\n\r\nonreadystatechange status: 0\r\nonreadystatechange status: 0\r\nonreadystatechange status: 0\r\nonerror status: 0\r\n\r\nSame behavior when actual status is 200.\r\n\r\n*Tested on:*\r\n\r\nChrome 18.0.1025469 (Android 4.0.3)\r\nWebKit/534.30 (Android 4.0.3)\r\nWebKit/r123997 (Tizen 2.0)\r\n\r\nCode Example:\r\n\r\n{code}var url = 'http://tools.dynamicdrive.com/password/example/';\r\nvar request = Titanium.Network.createHTTPClient();\r\nrequest.open('GET',url);\r\n \r\nrequest.send();\r\n \r\nrequest.onreadystatechange = function(){\r\n alert('onreadystatechange status: ' + this.status);\r\n}\r\n \r\nrequest.onerror = function() {\r\n alert('onerror status: ' + this.status);\r\n}{code}\r\n", "attachment": [], "flagged": false, "summary": "MobileWeb: HTTPClient: status is always 0", "creator": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "subtasks": [], "reporter": { "name": "ypidstryhach_gl", "key": "ypidstryhach_gl", "displayName": "Yaroslav Pidstryhach", "active": true, "timeZone": "Europe/Helsinki" }, "environment": "Titanium SDK 3.2.0.v20130508002453", "comment": { "comments": [ { "id": "252866", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested and confirmed with 3.1 GA and 3.2 CI on Android 2.3.6 Web browser and Firefox.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-20T18:54:33.000+0000", "updated": "2013-05-20T18:54:33.000+0000" }, { "id": "422879", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Resolving as \"Won't Fix\" as MobileWeb has been deprecated.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-26T22:21:12.000+0000", "updated": "2017-06-26T22:21:12.000+0000" }, { "id": "436368", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as will not fix.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-04T23:20:26.000+0000", "updated": "2018-04-04T23:20:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }