{ "id": "154271", "key": "TIMOB-20247", "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": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-05-10T21:31:15.000+0000", "created": "2016-01-13T01:24:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "merge-6.1.0" ], "versions": [ { "id": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-12T21:27:06.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": [], "description": "https://github.com/appcelerator/titanium_mobile/blob/master/android/modules/network/src/java/ti/modules/titanium/network/TiHTTPClient.java\r\n\r\nLine 160: setReadyState(READY_STATE_HEADERS_RECEIVED) is called before the headers are actually set. Calling getResponseHeader() will result in an attempt to invoke the isEmpty() method on null responseHeaders member.", "attachment": [], "flagged": false, "summary": "Regression in android HTTPClient", "creator": { "name": "s.stefanek", "key": "s.stefanek", "displayName": "Szymon Tomasz Stefanek", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "s.stefanek", "key": "s.stefanek", "displayName": "Szymon Tomasz Stefanek", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "n.a", "closedSprints": [ { "id": 889, "state": "closed", "name": "2017 Sprint 10 SDK", "startDate": "2017-05-08T00:27:49.740Z", "endDate": "2017-05-22T00:27:00.000Z", "completeDate": "2017-05-22T02:41:01.011Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "374530", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-14T05:43:50.000+0000", "updated": "2016-01-14T05:43:50.000+0000" }, { "id": "374534", "author": { "name": "s.stefanek", "key": "s.stefanek", "displayName": "Szymon Tomasz Stefanek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Just try to call getResponseHeaders() inside the onreadystatechange handler (when state is READY_STATE_HEADERS_RECEIVED or READY_STATE_LOADING).", "updateAuthor": { "name": "s.stefanek", "key": "s.stefanek", "displayName": "Szymon Tomasz Stefanek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-14T06:12:42.000+0000", "updated": "2016-01-14T06:12:42.000+0000" }, { "id": "374535", "author": { "name": "s.stefanek", "key": "s.stefanek", "displayName": "Szymon Tomasz Stefanek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Btw, it won't return null: it will trigger an exception at java level.", "updateAuthor": { "name": "s.stefanek", "key": "s.stefanek", "displayName": "Szymon Tomasz Stefanek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-01-14T06:13:41.000+0000", "updated": "2016-01-14T06:13:41.000+0000" }, { "id": "374552", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~s.stefanek], I am trying the below code in Android 5.1.0 with SDK 5.1.2.GA. Check if it's right.\r\n\r\n{code}\r\nvar xhr = Titanium.Network.createHTTPClient();\r\n\r\nxhr.onreadystatechange = function() {\r\n if (3 == xhr.readyState) {\r\n console.log(xhr.getResponseHeader('Last-Modified'));\r\n }\r\n\r\n};\r\n\r\nxhr.open('GET', 'http://www.appcelerator.com/assets/The_iPad_App_Wave.pdf');\r\n\r\nxhr.send();\r\n{code}\r\n{code}\r\n[ERROR] : TiApplication: (main) [21,128] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.PushBroadcastReceiver: java.lang.NullPointerException: PushType is NONE!; Titanium 5.1.2,2015/12/16 19:00,ca822b2\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.PushBroadcastReceiver: java.lang.NullPointerException: PushType is NONE!\r\n{code}\r\n\r\nThanks.\r\n\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-14T09:35:36.000+0000", "updated": "2016-01-14T11:34:39.000+0000" }, { "id": "418107", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/8997", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2017-04-26T15:02:56.000+0000", "updated": "2017-04-26T15:02:56.000+0000" }, { "id": "418212", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ybanev] The PR is for Master. Currently master is 6.2.0, so we need a PR for 6.1.0.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-27T21:14:44.000+0000", "updated": "2017-04-27T21:14:44.000+0000" }, { "id": "418228", "author": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "body": "PR 6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9001", "updateAuthor": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "created": "2017-04-28T08:02:39.000+0000", "updated": "2017-04-28T08:02:39.000+0000" }, { "id": "419640", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix on SDK version 6.2.0.v20170512073825 and SDK version 6.1.0.v20170512073723. Test and other information can be found at:\r\nMaster:https://github.com/appcelerator/titanium_mobile/pull/8997\r\n6_1_X: https://github.com/appcelerator/titanium_mobile/pull/9001", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-12T21:26:55.000+0000", "updated": "2017-05-12T21:26:55.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }