Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3360] iOS: "302 Found" redirect drop authorization header

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-05T15:47:44.000+0000
Affected Version/sRelease 1.6.0
Fix Version/sSprint 2011-35, Release 1.8.0
ComponentsiOS
Labelsregression
ReporterDavid Bankier
AssigneeStephen Tramer
Created2011-04-15T03:43:13.000+0000
Updated2011-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).

Comments

  1. Pedro Enrique 2011-04-15

    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.

  2. Thomas Huelbert 2011-08-24

    seeing the failure in Aug 19 2011 14:25 r56b54a2c all supported ios devices.
  3. Thomas Huelbert 2011-08-26

    assigning to me until we set up a server with the 302 redirect - link in sample code is down.
  4. Alan Vaghti 2011-09-14

    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
  5. Don Thorp 2011-11-05

    Standardizing summary and labels.

JSON Source