{ "id": "101884", "key": "TIMOB-11090", "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-10-24T23:01:25.000+0000", "created": "2012-09-24T20:20:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "parity" ], "versions": [ { "id": "14096", "description": "Release 2.1.2", "name": "Release 2.1.2", "archived": true, "released": true, "releaseDate": "2012-08-31" }, { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-22T20:51:48.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": "When trying to clear cookies on logging out from webView, The clearCookies does not work on Android. it works perfectly fine on iOS.\r\n\r\nh4.Steps to Reproduce:\r\n1. Load the app.\r\n2. Enter the credentials.\r\n3. click on logout\r\n\r\nExpected behavior: Logged out (since cookies are deleted)\r\n\r\nActual Behavior: Nothing happened.\r\nh4.code:\r\n{code}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#bbb',\r\n navBarHidden:true\r\n});\r\n\r\nvar logout = Titanium.UI.createButton({\r\n\ttop:0,\r\n\theight:30,\r\n\ttitle:'log out'\t\r\n});\r\n\r\nvar webview = Ti.UI.createWebView({\r\n\ttop:30,\r\n\turl:'http://m.facebook.com',\r\n\tbu_url:'http://m.facebook.com'\r\n});\r\n\r\nlogout.addEventListener('click', function(e) {\r\n\tvar client = Titanium.Network.createHTTPClient();\r\n\tclient.clearCookies('http://m.facebook.com');\r\n\twebview.url = webview.bu_url;\r\n});\r\n\r\nwin.add(logout);\r\nwin.add(webview);\r\n\r\nwin.open();\r\n\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: httpClient clearCookies() doesn't work.", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android v2.3.3, v2.3.6, v4.0.3;\r\nTi SDK 2.1.0GA, 2.1.1GA, 2.1.2 GA.", "comment": { "comments": [ { "id": "223332", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR : https://github.com/appcelerator/titanium_mobile/pull/3199", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-12T23:16:26.000+0000", "updated": "2012-10-12T23:42:36.000+0000" }, { "id": "224374", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I can't reproduce this bug on master. ", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-19T00:28:13.000+0000", "updated": "2012-10-19T00:28:13.000+0000" }, { "id": "224553", "author": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I could reproduce the issue on the master build 3.1.0.v20121015140323. Could you please check this once again?", "updateAuthor": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-20T01:28:54.000+0000", "updated": "2012-10-20T01:28:54.000+0000" }, { "id": "224848", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this problem now. This works on iOS because they use the same storage for httpClient cookies and webview cookies. On Android, however, that is not the case. We currently do not support cookies removal from a webview. I will create a feature request for this and close this ticket as invalid.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T22:48:59.000+0000", "updated": "2012-10-24T22:48:59.000+0000" }, { "id": "224851", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-24T23:00:34.000+0000", "updated": "2012-10-24T23:00:34.000+0000" }, { "id": "414926", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-22T20:51:48.000+0000", "updated": "2017-03-22T20:51:48.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }