{ "id": "84172", "key": "TIMOB-6828", "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": "12091", "description": "", "name": "Sprint 2011-51", "archived": true, "released": true, "releaseDate": "2011-12-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-01T18:49:55.000+0000", "created": "2011-12-21T14:19:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_network", "qe-manualtest", "qe-testadded", "regression" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "14338", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "61522", "key": "TIMOB-890", "fields": { "summary": "setting of X-Requested-With header in HTTPClient needs to be dynamic", "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 } } } }, { "id": "14339", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "77850", "key": "TIMOB-4691", "fields": { "summary": "Add support for local caching for XHR content (using disk cache)", "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": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-15T22:59:25.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": "During the ASI library upgrade, one of our patches (The one for 890), slipped through the cracks and was not reinstated. The end result is that setRequestHeader(,null) throws an exception instead fo removing the header as documented. To recreate:\r\n\r\n{code}\r\nvar xhr = Titanium.Network.createHTTPClient();\r\nxhr.onerror = function(e){Ti.API.info(\"ERROR \" + e.error);};\r\nxhr.onload = function(){Ti.API.info(\"Loaded\");};\r\n\r\nxhr.open('GET','http://www.appcelerator.com');\r\nxhr.setRequestHeader('Authorization',null);\r\nxhr.send();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Setting request header in HTTPClient to null throws exception", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 133, "state": "closed", "name": "2014 Sprint 13 SDK", "startDate": "2014-06-23T21:55:20.791Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T17:32:18.561Z", "originBoardId": 100 } ], "comment": { "comments": [ { "id": "176923", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The fix for 4691 caused this regression.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T14:27:13.000+0000", "updated": "2011-12-21T14:27:13.000+0000" }, { "id": "179089", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio 1.0.8.201201101928\r\nTi Mob SDK 1.9.0.v20120111233134\r\nOSX Lion\r\niPhone 4S, iPad 2\r\n\r\nExpected behavior is shown of setting request header to null not causing an exception", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-12T12:01:52.000+0000", "updated": "2012-01-12T12:01:52.000+0000" }, { "id": "281102", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil test case added.\nPR link:\nhttps://github.com/appcelerator/titanium_mobile/pull/5011", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-25T08:20:49.000+0000", "updated": "2013-11-25T08:20:49.000+0000" }, { "id": "310640", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Issue is reproducible, reopening the issue.\r\nIt works fine on 3.2.3.GA SDK.\r\n\r\nRuntime Error occurs as \"\r\nsetObjectForKey: object cannot be nil (Key: Authorization) at app.js (line 1) \"\r\n\r\nEnvironment used:\r\nTested on:\r\nDevice : iPhone 5s , iOS version : 7.1.1\r\nSDK: 3.3.0.v20140623161712\r\nCLI version : 3.3.0-rc2\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-rc2\r\nACS: 1.0.14\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201406231625\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1\r\n\r\ncode used\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : '#fff'\r\n});\r\nvar xhr = Titanium.Network.createHTTPClient();\r\n\t\txhr.onerror = function(e) {\r\n\t\t\talert(\"ERROR \" + e.error);\r\n\t\t};\r\n\t\txhr.onload = function() {\r\n\t\t\talert(\"Loaded\");\r\n\t\t};\r\n\r\n\t\txhr.open('GET', 'http://www.appcelerator.com');\r\n\t\txhr.setRequestHeader('Authorization', null);\r\n\t\txhr.send();\r\n\t\t\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-24T10:13:35.000+0000", "updated": "2014-06-24T10:17:16.000+0000" }, { "id": "311651", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nAPSHTTPClient - https://github.com/appcelerator/APSHTTPClient/pull/15\r\ntitanium mobile\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5874\r\n3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5875", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-30T17:58:18.000+0000", "updated": "2014-06-30T17:58:18.000+0000" }, { "id": "312280", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\r\nAppcelerator Studio, build: 3.3.0.201406271159\r\nTitanium SDK, build: 3.3.0.v20140703093313\r\nTitanium CLI, build: 3.3.0-rc4\r\nAlloy: 1.4.0-rc3\r\niOS Simulator: iPad (7.1)\r\niOS Device: iPhone 5 (7.0.6)\r\n\r\nException is not thrown using the test code provided.\r\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-03T18:45:12.000+0000", "updated": "2014-07-03T18:45:12.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }