{ "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\n

Problem found using SDK 1.6.0 & 1.6.1 and iOS 4.2 (device\r\nand simulator).

{html}", "attachment": [], "flagged": false, "summary": "iOS: \"302 Found\" redirect drop authorization header", "creator": { "name": "davidbankier", "key": "davidbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "davidbankier", "key": "davidbankier", "displayName": "David Bankier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130611", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

\n

For Engineering:
\nFor a working sample code, please email me, I've been asked to keep\nit private.

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:43:14.000+0000", "updated": "2011-04-15T03:43:14.000+0000" }, { "id": "163876", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "seeing the failure in Aug 19 2011 14:25 r56b54a2c all supported ios devices.", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-24T11:03:00.000+0000", "updated": "2011-08-24T11:03:00.000+0000" }, { "id": "164182", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "assigning to me until we set up a server with the 302 redirect - link in sample code is down.", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T13:46:12.000+0000", "updated": "2011-08-26T13:46:12.000+0000" }, { "id": "166063", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed as expected on iPod 3rd Gen 4.0.2, iPhone 4 4.2.10, and iPad 4.3.5. All devices returned a 200 response.\n\n302 redirect site used: http://api.appcelerator.net/p/v1/302\n\nSDK used: 1.8.0.v20110914092150", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-14T13:51:53.000+0000", "updated": "2011-09-14T13:51:53.000+0000" }, { "id": "171670", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Standardizing summary and labels.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-05T15:47:12.000+0000", "updated": "2011-11-05T15:47:12.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }