[TIMOB-3360] iOS: "302 Found" redirect drop authorization header
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-11-05T15:47:44.000+0000 |
Affected Version/s | Release 1.6.0 |
Fix Version/s | Sprint 2011-35, Release 1.8.0 |
Components | iOS |
Labels | regression |
Reporter | David Bankier |
Assignee | Stephen Tramer |
Created | 2011-04-15T03:43:13.000+0000 |
Updated | 2011-11-05T15:47:44.000+0000 |
Description
The Titanium.Network.HTTPClient correctly follows a "302 Found" redirect. On the iPhone however it does not carry the http authorization header in the next request (ending in a 401 response from the server). I have not had this a problem with android, ie, the authorization header is in the redirected request.
Problem found using SDK 1.6.0 & 1.6.1 and iOS 4.2 (device and simulator).
I have tested the code in the HD ticket, which is private, and confirmed the bug. Also tested the url against http://apigee.com/">http://apigee.com/ and it is in fact a 302 redirect. In titanium, the header request is apparently dropped as describe.
For Engineering:
For a working sample code, please email me, I've been asked to keep it private.
seeing the failure in Aug 19 2011 14:25 r56b54a2c all supported ios devices.
assigning to me until we set up a server with the 302 redirect - link in sample code is down.
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. 302 redirect site used: http://api.appcelerator.net/p/v1/302 SDK used: 1.8.0.v20110914092150
Standardizing summary and labels.