{ "id": "63992", "key": "TIMOB-3360", "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": "12075", "description": "", "name": "Sprint 2011-35", "archived": true, "released": true, "releaseDate": "2011-09-05" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-11-05T15:47:44.000+0000", "created": "2011-04-15T03:43:13.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "regression" ], "versions": [ { "id": "11233", "name": "Release 1.6.0", "archived": true, "released": true, "releaseDate": "2011-02-23" } ], "issuelinks": [ { "id": "12490", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "79469", "key": "TIMOB-5059", "fields": { "summary": "\"302 Found\" redirect drop authorization header", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-11-05T15:47:44.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": "{html}
The Titanium.Network.HTTPClient correctly follows a \"302 Found\"\r\nredirect. On the iPhone however it does not carry the http\r\nauthorization header in the next request (ending in a 401 response\r\nfrom the server). I have not had this a problem with android, ie,\r\nthe authorization header is in the redirected request.
\r\nProblem found using SDK 1.6.0 & 1.6.1 and iOS 4.2 (device\r\nand simulator).
I have tested the code in the HD ticket, which is private, and\nconfirmed the bug. Also tested the url against http://apigee.com/ and it is in fact a 302\nredirect. In titanium, the header request is apparently dropped as\ndescribe.
\nFor Engineering:
\nFor a working sample code, please email me, I've been asked to keep\nit private.