{ "id": "63288", "key": "TIMOB-2656", "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": "11238", "name": "Release 1.6.0 M05", "archived": true, "released": true, "releaseDate": "2011-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:43.000+0000", "created": "2011-04-15T03:26:04.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "defect", "ios", "iphone", "release-1.6.0", "reported-1.5.1" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:59:43.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}

\n

Reported by Julien | October 26th, 2010 @ 08:52 AM | in\n1.2.0

\n

Hi,

\n

I'm using createHTTPClient to POST to a page. I receive a 302.\nTitanium seems to follow through the 302 with another POST, not a\nGET.

\n

Any idea why it's that way ? Is it a bug ?

\n

Thanks.

\n

I'm filing this ticket for Julien as it was in Desktop, and it\nis a Mobile issue which still exists on the 1.5.1 Mobile SDK.

\n

Julien did test and verify it on the 1.5.1 SDK for me. I'm\nassigning this to Marshall, but feel free to move to anyone\nelse.

{html}", "attachment": [ { "id": "18184", "filename": "t2656.tgz", "author": { "name": "julien", "key": "julien", "displayName": "Julien", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:05.000+0000", "size": 862121, "mimeType": "application/x-gzip" } ], "flagged": false, "summary": "Problem with redirects on POST", "creator": { "name": "aduboff", "key": "aduboff", "displayName": "Alan DuBoff", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aduboff", "key": "aduboff", "displayName": "Alan DuBoff", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129102", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Hi Alan,

\n

I was unable to reproduce the problem your describing on Mobile\nSDK. When I submit a POST request to a test page that returns a 302\nredirect the new request is sent as a GET request according to the\nenvironment variables the test page displays.

\n

Can you please provide further details and ideally a test\napp?

\n

Thanks

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:26:05.000+0000", "updated": "2011-04-15T03:26:05.000+0000" }, { "id": "129103", "author": { "name": "julien", "key": "julien", "displayName": "Julien", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hi,

\n

This issue occurs for me on iPhone, I haven't tested it on\nAndroid. I've included :

\n
{html}", "updateAuthor": { "name": "julien", "key": "julien", "displayName": "Julien", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:05.000+0000", "updated": "2011-04-15T03:26:05.000+0000" }, { "id": "129104", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Updating tags and assign it to Ralf.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:06.000+0000", "updated": "2011-04-15T03:26:06.000+0000" }, { "id": "129105", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This seems iPhone only, per description.

\n

Assigning to Steve to see if we can plan for R1.6.0.

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:06.000+0000", "updated": "2011-04-15T03:26:06.000+0000" }, { "id": "129106", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Going to assign to M05 as part of the XHR work.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:07.000+0000", "updated": "2011-04-15T03:26:07.000+0000" }, { "id": "129107", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [6a69e427c8455c363ef362c40d396c00c0f6d889])\n[#2656 state:fixed-in-qa] Actually fix the\n301/302/303 redirect in ASI that the code documentation says was\nfixed. \nhttps://github.com/appcelerator/titanium_mobile/commit/6a69e427c845...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:07.000+0000", "updated": "2011-04-15T03:26:07.000+0000" }, { "id": "129108", "author": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Notes/Comments

\n

Successful iOS Simulator, iOS Device, and Android Emulator test\non 01/25/2011

\n
\niOS Simulator: \"POST /appcelerator/test.php HTTP/1.1\" 302 99 \"\n               \"GET /appcelerator/test.php HTTP/1.1\" 200 99 \"\n\niPhone:        \"POST /appcelerator/test.php HTTP/1.1\" 302 99 \"\n               \"GET /appcelerator/test.php HTTP/1.1\" 200 99 \"\n\nEmulator:      \"POST /appcelerator/test.php HTTP/1.1\" 302 97 \"\n               \"GET /appcelerator/test.php HTTP/1.1\" 200 97 \"\n
\n

Mobile SDK version: 1.6.0 (01/25/11 13:33 1f1dd51...)

\n

Device/Version: iPhone 4 / 4.2.1

\n

Simulator Version: 4.2 (235)

\n

Emulator SDK: APIs 2.1

{html}", "updateAuthor": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:07.000+0000", "updated": "2011-04-15T03:26:07.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }