{ "id": "172601", "key": "TIMOB-26549", "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": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-12-10T21:30:36.000+0000", "created": "2018-11-13T12:03:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "20275", "name": "Release 7.4.1", "archived": false, "released": true, "releaseDate": "2018-10-18" } ], "issuelinks": [ { "id": "56987", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "134598", "key": "TIMOB-17584", "fields": { "summary": "iOS: HTTPClient: AutoRedirect = false returns 200 status code, not 301/302", "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": "56988", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "135956", "key": "TIMOB-17585", "fields": { "summary": "Android: HTTPClient: Invalid Status Codes returned in 3.3.0.GA SDK", "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": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-12-11T12:26:48.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "GET request should be returning a status of \"301\" or \"302\"; instead returns a status code of \"200\"\r\n\r\n*Test case*\r\n{code:java}\r\n\r\nvar xhr = Titanium.Network.createHTTPClient();\r\nxhr.autoRedirect = false;\r\nxhr.allResponseHeaders = true;\r\n \r\n// what to do if it loads\r\nxhr.onload = function(e) {\r\n \r\n\tTi.API.log('Status = ' + this.getStatus());\r\n \r\n\tif (this.getStatus() == 301) {\r\n\t\tTi.API.log('Redirect to ' + this.getResponseHeader('location'));\r\n\t} else {\r\n\t\tTi.API.log('This should have returned a 301 not a 200');\r\n\t}\r\n};\r\n \r\nxhr.open('GET', 'http://google.co.nz');\r\nxhr.send();\r\n{code}\r\n\r\n*Actual result:*\r\nFollowing is returned:\r\n{code:java}\r\n[INFO] Status = 200\r\n[INFO] This should have returned a 301 not a 200\r\n{code}\r\n\r\n*Expected result:*\r\nFollowing should be returned:\r\n{code:java}\r\n[INFO] : Status = 301\r\n[INFO] : Redirect to http://www.google.co.nz/\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Windows: HTTPClient: Invalid Status Codes returned", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK version 7.4.1.GA\r\nSDK Version: 7.5.0.v20181108182512\r\nOperating System\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.17134\r\nArchitecture = 64bit\r\n\r\nCPUs = 4\r\nMemory = 16.0GB\r\nNode.js\r\nNode.js Version = 8.9.1\r\nnpm Version = 5.5.1\r\n\r\nAppcelerator CLI\r\nInstaller = 4.2.13\r\nCore Package = 7.0.7\r\n\r\nTitanium CLI\r\nCLI Version = 5.1.1\r\nnode-appc Version = 0.2.44", "closedSprints": [ { "id": 1103, "state": "closed", "name": "2018 Sprint 25", "startDate": "2018-12-02T16:29:21.531Z", "endDate": "2018-12-16T16:29:00.000Z", "completeDate": "2018-12-15T02:33:24.870Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "443616", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Attempt to fix issue with liveview: https://github.com/appcelerator/titanium_mobile_windows/pull/1318", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-11-15T00:39:33.000+0000", "updated": "2018-11-15T00:39:33.000+0000" }, { "id": "444438", "author": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "body": "*FR Passed*", "updateAuthor": { "name": "jlongton", "key": "jlongton", "displayName": "Josh Longton", "active": true, "timeZone": "Europe/London" }, "created": "2018-12-10T21:30:18.000+0000", "updated": "2018-12-10T21:30:18.000+0000" }, { "id": "444473", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK version 8.0.0.v20181210172243.\r\n\r\nTest and other information can be found at:\r\nhttps://github.com/appcelerator/titanium_mobile_windows/pull/1318", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-12-11T12:26:39.000+0000", "updated": "2018-12-11T12:26:39.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }