{ "id": "173202", "key": "TIMOB-26903", "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": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-04-11T12:10:56.000+0000", "created": "2019-03-16T09:37:24.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "engSchedule", "regression" ], "versions": [ { "id": "19882", "name": "Release 8.0.0", "archived": false, "released": true, "releaseDate": "2019-03-14" } ], "issuelinks": [ { "id": "57273", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173221", "key": "TIMOB-26915", "fields": { "summary": "iOS: Implement cookie in TiUIWebView using WKHTTPCookieStore", "status": { "description": "Submitted for code review", "name": "In Review", "id": "10003", "statusCategory": { "id": 4, "key": "indeterminate", "colorName": "yellow", "name": "In Progress" } }, "priority": { "name": "None", "id": "6" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-11T12:10:56.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Hello,\r\nWebview with cookies is working just fine with 7.5.1.GA but it's not working with 8.0.0.GA.\r\n\r\n*Testing Environment:*\r\nAppcelerator Command-Line Interface, version 7.0.10\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.14\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 8.0.0.GA, 7.5.1.GA\r\n\r\n*Test Code One:*\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout : 'vertical'\r\n});\r\n\r\nvar testUrl = \"https://jwogan5.github.io/\";\r\nvar testDomain = \"jwogan5.github.io\";\r\n\r\nTitanium.Network.addHTTPCookie(Titanium.Network.createCookie({\r\n\tdomain : testDomain,\r\n\tname : 'testCookie',\r\n\tpath : '/',\r\n\tvalue : 'works'\r\n}));\r\nvar testWebView = Ti.UI.createWebView({\r\n\turl : testUrl,\r\n\twidth : Ti.UI.FILL,\r\n\ttop : 0,\r\n\tcacheMode : false,\r\n\tenableZoomControls : false,\r\n\tbottom : 0\r\n});\r\nwin.add(testWebView);\r\nwin.open(); \r\n{code}\r\n\r\n*Test Code Two(ti.wkwebview):*\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout : 'vertical'\r\n});\r\n\r\nvar WK = require('ti.wkwebview');\r\nvar testUrl = \"https://jwogan5.github.io/\";\r\nvar testDomain = \"jwogan5.github.io\";\r\n\r\nTitanium.Network.addHTTPCookie(Titanium.Network.createCookie({\r\n\tdomain : testDomain,\r\n\tname : 'testCookie',\r\n\tpath : '/',\r\n\tvalue : 'works'\r\n}));\r\nvar testWebView = WK.createWebView({\r\n\turl : testUrl,\r\n\twidth : Ti.UI.FILL,\r\n\ttop : 0,\r\n\tcacheMode : false,\r\n\tenableZoomControls : false,\r\n\tbottom : 0\r\n});\r\nwin.add(testWebView);\r\nwin.open();\r\n{code}\r\n\r\n*Steps to reproduce the issue:*\r\n1. Just add the app.js file on your project\r\n2. Run using the 7.5.1.GA and the webview is added to the controller it will print out the cookie (testCookie=works).\r\n3. If you run the exact same code with 8.0.0.GA when the webview loads it will alert an empty value. This shows the 8.0.0 does not read the cookie value.\r\n\r\nNote: The only difference between 7.5.1 and 8.0.0 is that 8.0.0 now uses WKWebview instead of UIWebview. ", "attachment": [ { "id": "66320", "filename": "Screenshot-7.5.1.GA.png", "author": { "name": "fhaque", "key": "fhaque", "displayName": "Fazlul Haque", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2019-03-16T09:37:15.000+0000", "size": 208369, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS: Webview Cookies is not working with 8.0.0.GA", "creator": { "name": "fhaque", "key": "fhaque", "displayName": "Fazlul Haque", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fhaque", "key": "fhaque", "displayName": "Fazlul Haque", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS, WebView, Titanium.Network.createCookie", "closedSprints": [ { "id": 1123, "state": "closed", "name": "2019 Sprint 7", "startDate": "2019-03-18T17:27:25.993Z", "endDate": "2019-03-30T17:27:00.000Z", "completeDate": "2019-03-29T18:02:37.441Z", "originBoardId": 114 }, { "id": 1124, "state": "closed", "name": "2019 Sprint 8", "startDate": "2019-03-31T18:03:00.000Z", "endDate": "2019-04-12T18:03:00.000Z", "completeDate": "2019-04-12T19:04:50.175Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "447001", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master) - https://github.com/appcelerator/titanium_mobile/pull/10785 \r\nPR (8_0_X) - https://github.com/appcelerator/titanium_mobile/pull/10786", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-03-19T23:52:55.000+0000", "updated": "2019-03-19T23:58:19.000+0000" }, { "id": "447532", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2019-04-08T19:55:51.000+0000", "updated": "2019-04-08T19:55:51.000+0000" }, { "id": "447616", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, fix verified in SDK Version {{8.1.0.v20190410132858}} and SDK Version {{8.0.1.v20190408125832}}\r\n\r\nTest and other information can be found at: \r\nPR (master) - https://github.com/appcelerator/titanium_mobile/pull/10785 \r\nPR (8_0_X) - https://github.com/appcelerator/titanium_mobile/pull/10786", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-11T12:10:50.000+0000", "updated": "2019-04-11T12:10:50.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }