{ "id": "63559", "key": "TIMOB-2927", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-08-29T14:23:25.000+0000", "created": "2011-04-15T03:33:08.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "authorization", "httpclient", "setrequestheader" ], "versions": [], "issuelinks": [ { "id": "20420", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:38:28.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}
After setting the http basic header like this
\nhttp_client.setRequestHeader('Authorization', 'Basic ' +\nTitanium.Utils.base64encode(email + ':' + password));
\nAuthentication works fine. so let's say i have a button that\ncreates a new http_client object and makes an authenticated\nrequest. if i do it the first time everything is great. now if i\nchange the email/password http_client keeps using the old\nauthorization header. even on completely different http_client\nobjects! even after i've set the header to null or set it to\ncredentials for a different user. it always uses the first\nauthorization header set. to log in as a different user i'm having\nto completely close the application and open it again.
Assuming this is an Android bug (there's no shared persistent\nstore on iOS that would cause this issue). Assigning to Don for\ntriage.