{ "id": "79469", "key": "TIMOB-5059", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-14T13:49:59.000+0000", "created": "2011-08-19T13:57:29.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "defect", "httpclient", "ios", "reported-1.6.1" ], "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" }, "outwardIssue": { "id": "63992", "key": "TIMOB-3360", "fields": { "summary": "iOS: \"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": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-09-14T13:49:59.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": "10202", "name": "Android", "description": "Android 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": "\"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": "Android 2.1\r\nversion=1.8.0\r\ntimestamp=08/18/11 12:57\r\ngithash=2e21d51...", "comment": { "comments": [ { "id": "163498", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Get sample code from 3360, iOS returns a 200 response and android returns 0.0", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-19T13:59:21.000+0000", "updated": "2011-08-19T13:59:21.000+0000" }, { "id": "164205", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "turns out his is a test case issue, assigning to myself until we set up an 302 redirect", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-26T15:28:30.000+0000", "updated": "2011-08-26T15:28:30.000+0000" }, { "id": "166061", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Passed as expected on HTC Hero 2.1update1, Nexus One 2.2.2, and Xoom tablet 3.2. 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:49:59.000+0000", "updated": "2011-09-14T13:49:59.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }