{ "id": "128088", "key": "TIMOB-16689", "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": "16270", "description": "2014 Sprint 10", "name": "2014 Sprint 10", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "16271", "description": "2014 Sprint 10 SDK", "name": "2014 Sprint 10 SDK", "archived": true, "released": true, "releaseDate": "2014-05-22" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-05-21T22:36:07.000+0000", "created": "2014-03-25T00:47:37.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_network", "qe-3.3.0", "qe-manualtest", "qe-testadded", "regression" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-15T22:58:57.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Details:* On SDK 3.3.0 with iOS, statusText is returning undefined if you are making an invalid request.\r\n\r\n*This is a regression from SDK 3.2.3 and bug does not occur on Android.*\r\n\r\n*Steps to reproduce:*\r\n1. Create a default Titanium Classic app\r\n2. Add this piece of code:\r\n{code}\r\nlabel1.addEventListener('click', function(e){\r\n\t// accepts only POST requests\r\n\tvar url = 'http://httpbin.org/post';\r\n\t\r\n\tvar client = Ti.Network.createHTTPClient({\r\n\t\t\r\n\t\tonload : function(e) {\r\n\t\t\tvar msg = 'onload: ' + this.responseText;\r\n\t\t\tTi.API.info(msg);\r\n\t\t\talert(msg);\r\n\t\t},\r\n\t\t\r\n\t\tonerror : function(e) {\r\n\t\t\t// var msg = 'onerror: ' + 'error code -> ' + e.code + ', error -> ' + e.error;\r\n\t\t\tvar msg = 'onerror: ' + this.statusText;\r\n\t\t\tTi.API.error(msg);\r\n\t\t\talert(msg);\r\n\t\t},\r\n\t\t\r\n\t\tcache: false\r\n\t});\r\n\t\r\n\tclient.open('DELETE', url);\r\n\tclient.send('DELETE THE MONKEY');\r\n});\r\n{code}\r\n3. Install and launch app to device\r\n4. Press on \"I am Window 1\" label\r\n\r\n*Actual:* \"undefined\" is returned in the onerror callback (see 3.3.0_actual.png).\r\n*Expected:* \"METHOD NOT ALLOWED\" message should appear like in SDK 3.2.3 (see 3.2.3_expected.png)", "attachment": [ { "id": "46831", "filename": "3.2.3_expected.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T00:47:37.000+0000", "size": 63256, "mimeType": "image/png" }, { "id": "46832", "filename": "3.3.0_actual.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-03-25T00:47:37.000+0000", "size": 56978, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: HTTPClient - On SDK 3.3.0, statusText is returning undefined if you are making an invalid request", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 3.2.3.201403190645\r\nSDK build: 3.3.0.v20140324160921\r\nCLI: 3.2.1\r\nXcode: 5.1\r\nDevices: iphone 5 (7.0.6), iphone 5s (7.1)", "closedSprints": [ { "id": 104, "state": "closed", "name": "2014 Sprint 10 SDK", "startDate": "2014-05-12T16:00:00.000Z", "endDate": "2014-05-24T00:00:00.000Z", "completeDate": "2014-05-27T18:11:47.424Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "305998", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5722\r\n3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5723", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-05-21T22:32:01.000+0000", "updated": "2014-05-21T22:32:01.000+0000" }, { "id": "307992", "author": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "body": "StatusText in onerror callback returns the expected value.\r\nVerified on:\r\n|| Component || Version ||\r\n| Appcelerator Studio | 3.3.0.201405271647 |\r\n| Titanium SDK | 3.3.0.v20140606154912 |\r\n| Node | 0.10.28 |\r\n| acs | 1.0.14 |\r\n| alloy | 1.4.0-beta2 |\r\n| npm | 1.4.9 | \r\n| CLI | 3.3.0-beta2 |\r\n| Titanium-code-processor | 1.1.1 |\r\n| OS | OSX 10.9.2 |\r\n| Device | iPhone 5S (iOS 7.1) |", "updateAuthor": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T11:33:42.000+0000", "updated": "2014-06-09T11:33:42.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }