{ "id": "99716", "key": "AC-2534", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2012-11-26T21:22:56.000+0000", "created": "2012-08-24T05:23:55.000+0000", "labels": [ "android", "httpclient" ], "versions": [], "issuelinks": [], "assignee": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:36.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "We are unable to provide the source code as it is client code and we cannot share it. But will try to share the issue that we are facing with the abort call in Android.\r\n\r\nWe login into our application by providing an username and password.\r\nWe download a file using HTTPClient\r\nAfter sometime we call httpClient.abort()\r\nWe again try to download the file again.\r\nWe get 401 response from the server.\r\n\r\nThis happens in Android only but works fine in iOS. Can someone from the Appcelerator team give some light on this.", "attachment": [], "flagged": false, "summary": "Android: Abort call of HTTPClient resets session", "creator": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "soumyakantikar", "key": "soumyakantikar", "displayName": "Soumya Kanti Kar", "active": true, "timeZone": "America/Havana" }, "environment": "Titanium SDK Version 2.1.1.v20120712160111\r\nPlatform OS: Android\r\nPlatform OS Version: 2.3.3 (GB), 4.0.4 (ICS)\r\nDevice details: Emulator, Samsung Galaxy, Samsung Galaxy S2\r\nHost Operating System: Windows 7\r\nTitanium Studio Build: 2.0.1.201204132053", "comment": { "comments": [ { "id": "217693", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Looks like you need to set the headers for authentication like below.\r\nxhr.setRequestHeader('property_name', 'property_value');\r\n\r\nIf you can provide a sample reproducible test case, I can help. Otherwise pls look at KitchenSink examples.\r\n\r\nRegards,\r\nAnirudh", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-05T14:21:51.000+0000", "updated": "2012-09-05T14:21:51.000+0000" }, { "id": "228514", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Will re-open once the requested information has been provided.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-26T21:22:56.000+0000", "updated": "2012-11-26T21:22:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }