{ "id": "63990", "key": "TIMOB-3358", "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": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11246", "name": "Sprint 2011-11", "archived": true, "released": true, "releaseDate": "2011-03-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:01:32.000+0000", "created": "2011-04-15T03:43:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "http", "reported-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2011-04-17T02:01:32.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}

When sending a HTTP POST request where one of the send arguments\nhas a null value and exception will occur. Correct behavior should\nbe to ignore the key / value pair when the value is null.

\n

Example use case:
\nxhr.send({ somearg: 'ok', thisCrashesApp: null });

{html}", "attachment": [ { "id": "18305", "filename": "app.js", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:43:10.000+0000", "size": 1575, "mimeType": "application/x-javascript" } ], "flagged": false, "summary": "Android: HTTP POST send argument with null value causes exception", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [ { "id": "130603", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

(from [6d1f2c9a8b0949bd8f19c8ff34653a43d8ebf6fd])\n[#3358 state:fixed-in-qa] Handle null HTTP POST\nrequest arguments correctly

\n

When a HTTP POST request argument on send() has a null value,\nignore the key/valye pair when sending.
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/6d1f2c9a8b09...

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:43:10.000+0000", "updated": "2011-04-15T03:43:10.000+0000" }, { "id": "130604", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "{html}

Please verify the issue with the attached app.js. Basically, if\nthe app runs without crashing, the fix is good.

{html}", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-04-15T03:43:10.000+0000", "updated": "2011-04-15T03:43:10.000+0000" }, { "id": "130605", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested with Titanium SDK version: 1.7.0 (03/17/11 10:02\n630a276)
\nEmulator 2.1 [INFO] [3,9640] responseText=

\n

It works2!

\n
\nNexus S 2.3.2 (kroll$1: app://app.js) [0,916] responseText=\n

It works2!

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:43:11.000+0000", "updated": "2011-04-15T03:43:11.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }