{ "id": "151314", "key": "TIMOB-19555", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-09-21T07:53:59.000+0000", "created": "2015-09-19T18:25:49.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [ { "id": "49173", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "151676", "key": "TIMOB-19660", "fields": { "summary": "Android: 5.0.2 GA HTTPClient handleResponse error", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2015-10-27T00:27:49.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": "HTTPClient fails with the error below,\r\n{code}\r\n[ERROR] : TiHTTPClient: (TiHttpClient-40) [9,1211] HTTP Error (java.lang.NullPointerException): Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference\r\n[ERROR] : TiHTTPClient: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference\r\n[ERROR] : TiHTTPClient: \tat ti.modules.titanium.network.TiHTTPClient.handleResponse(TiHTTPClient.java:196)\r\n[ERROR] : TiHTTPClient: \tat ti.modules.titanium.network.TiHTTPClient.access$1200(TiHTTPClient.java:84)\r\n[ERROR] : TiHTTPClient: \tat ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1195)\r\n[ERROR] : TiHTTPClient: \tat java.lang.Thread.run(Thread.java:818)\r\n{code}\r\n\r\n when no contentType is specified in response header. Till 4.x this was working, breaking only on 5.0.0.GA.\r\n\r\n*+Note:+* As mentioned in docs here http://developer.android.com/reference/java/net/URLConnection.html#getContentType() it may return a string or null when type is unknown which is not handled here https://github.com/appcelerator/titanium_mobile/blob/24c69f037e9b4f91713c33c7afb7ffd31bc77933/android/modules/network/src/java/ti/modules/titanium/network/TiHTTPClient.java#L193", "attachment": [], "flagged": false, "summary": "Android: HTTPClient fails when no contentType is specified in response", "creator": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Appcelerator Studio 4.3.0\r\nCLI 5.0.1\r\nTItanium SDK 5.0.0.GA\r\nAndroid 5.0.1", "closedSprints": [ { "id": 485, "state": "closed", "name": "2015 Sprint 19 SDK", "startDate": "2015-09-12T00:30:29.539Z", "endDate": "2015-09-26T00:30:00.000Z", "completeDate": "2015-09-28T02:29:14.458Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "364398", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Opened a pull request here - https://github.com/appcelerator/titanium_mobile/pull/7210", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2015-09-20T17:13:50.000+0000", "updated": "2015-09-20T17:13:50.000+0000" }, { "id": "364419", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thank you [~mano_mykingdom]. To reproduce the issue in our QA team, we need an URL which matches your environment (not having a contentType). Can you provide that URL?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-21T03:59:14.000+0000", "updated": "2015-09-21T03:59:14.000+0000" }, { "id": "364437", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "[~hansknoechel]: I'm unable to share the URL here, but have shared it already with the support case associated with this ticket.", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2015-09-21T07:02:59.000+0000", "updated": "2015-09-21T07:02:59.000+0000" }, { "id": "364449", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR merged: https://github.com/appcelerator/titanium_mobile/pull/7210\r\nThank you [~mano_mykingdom]", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-09-21T07:53:07.000+0000", "updated": "2015-09-21T07:53:23.000+0000" }, { "id": "364964", "author": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "body": "shouldn't this be merged into 5.0.1?", "updateAuthor": { "name": "fahad86", "key": "fahad86", "displayName": "Muhammad Ahmed Fahad", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2015-09-25T04:20:03.000+0000", "updated": "2015-09-25T04:20:03.000+0000" }, { "id": "365613", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-10-02T03:52:10.000+0000", "updated": "2015-10-02T03:52:10.000+0000" }, { "id": "367898", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\nHTTPClient returns success with this fix.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.4.0.201510231805\r\nTi SDK : 5.1.0.v20151022152020\r\nTi CLI : 5.0.5\r\nAlloy : 1.7.18\r\nMAC Yosemite : 10.10.5\r\nAppc NPM : 4.2.1-6\r\nAppc CLI : 5.1.0-38\r\nNode: v0.10.37\r\nNexus 5 - Android 6.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-27T00:27:43.000+0000", "updated": "2015-10-27T00:27:43.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }