{ "id": "129619", "key": "TIMOB-16880", "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": "2014-05-28T22:17:11.000+0000", "created": "2014-04-24T11:30:35.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.3.0" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "37030", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "76857", "key": "TIMOB-4488", "fields": { "summary": "Android: Expose WebView onReceivedSslError", "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": "Medium", "id": "3" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-20T20:37:37.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": "\"sslerror\" event for webView is not working.\r\nSteps to reproduce:\r\n1. Copy paste the code given below in app.js and run the app.\r\n\r\nActual Result:\r\n{code}\r\n[ERROR] : Error loading: https://certs.cac.washington.edu/CAtest/, Error: Error Domain=NSURLErrorDomain Code=-1202 \"The certificate for this server is invalid. You might be connecting to a server that is pretending to be “certs.cac.washington.edu” which could put your confidential information at risk.\" UserInfo=0x15568a70 {NSErrorFailingURLStringKey=https://certs.cac.washington.edu/CAtest/, NSLocalizedRecoverySuggestion=Would you like to connect to the server anyway?, NSErrorFailingURLKey=https://certs.cac.washington.edu/CAtest/, NSLocalizedDescription=The certificate for this server is invalid. You might be connecting to a server that is pretending to be “certs.cac.washington.edu” which could put your confidential information at risk., NSUnderlyingError=0x15665010 \"The certificate for this server is invalid. You might be connecting to a server that is pretending to be “certs.cac.washington.edu” which could put your confidential information at risk.\", NSURLErrorFailingURLPeerTrustErrorKey=}\r\n{code}\r\n\r\nExpected Result:\r\nMust get \"sslerror\" in console logs as well as the webview must be loaded with webpage same as in \"https://certs.cac.washington.edu/CAtest/\"\r\n\r\nFor Details please look into TIMOB-4488.\r\n\r\n{code}\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar webView = Ti.UI.createWebView({\r\n backgroundColor:'white',\r\n url:'https://certs.cac.washington.edu/CAtest/'\r\n });\r\n \r\nwebView.addEventListener('sslerror', function(evt) {\r\n Ti.API.info(\"sslerror\");\r\n \r\n //Comment below line to fail\r\n webView.ignoreSslError = true;\r\n});\r\nwindow.add(webView);\r\n \r\nwindow.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: \"sslerror\" event for webView is not working", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appc-Studio:3.3.0.201404211130\r\nsdk:3.3.0.v20140423155715\r\nacs:1.0.14\r\nalloy:1.4.0-dev\r\nnpm:1.3.2\r\ntitanium:3.3.0-dev\r\ntitanium-code-processor:1.1.1-beta1\r\nxCODE:5.1.1\r\nDevice:Iphone5(7.1),Nexus7(v4.4.2)", "closedSprints": [ { "id": 105, "state": "closed", "name": "2014 Sprint 11 SDK", "startDate": "2014-05-27T21:43:32.338Z", "endDate": "2014-06-07T00:00:00.000Z", "completeDate": "2014-06-09T21:36:37.587Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "305883", "author": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "body": "The bug is *reproducible.*\r\n\r\nIssue is still available with the sample code provided.\r\n\r\n*Test Environment:*\r\n|| *Component* || *Version* ||\r\n| Appcelerator Studio | 3.3.0.201405161313 |\r\n| Titanium SDK | 3.3.0.v20140520141136 |\r\n| Alloy | 1.4.0-alpha2 |\r\n| CLI | 3.3.0-alpha4 |\r\n| ACS | 1.0.14 | \r\n| NPM | 1.4.10 |\r\n| Titanium-Code-Processor | 1.1.1 |\r\n| Node-ACS | 1.0.14 |\r\n| OS | OS X 10.9.2 |\r\n| Device | iPhone 5S (iOS 7.1.1) |", "updateAuthor": { "name": "kvelummaylum", "key": "kvelummaylum", "displayName": "Kajenthiran Velummaylum", "active": true, "timeZone": "Asia/Shanghai" }, "created": "2014-05-21T07:47:02.000+0000", "updated": "2014-05-21T07:47:02.000+0000" }, { "id": "306753", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "TIMOB-4488 exposed \"sslerror\" only on the android platform side. \r\nRead doc : https://github.com/appcelerator/titanium_mobile/pull/5224/files#diff-2\r\n\r\nThis is not a bug. Marking as Invalid.\r\n", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-05-28T22:16:58.000+0000", "updated": "2014-05-28T22:16:58.000+0000" }, { "id": "413940", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:37:37.000+0000", "updated": "2017-03-20T20:37:37.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }