{ "id": "152447", "key": "TIMOB-19819", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-29T03:26:36.000+0000", "created": "2015-10-28T22:38:25.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-02-05T22:35: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": "Currently we need to disable iOS9 App Transport Security (ATS) in the builtin KitchenSink (titanium_mobile/demos/KitchenSink) whenever we want to test any ticket related to webview, httpclient, etc. \r\n\r\nAs we disable ATS in our SDK as well, we should change this setting in the Titanium.plist of the Xcode project.\r\n\r\n*Example:*\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.add(Ti.UI.createImageView({image: \"http://dummyimage.com/600x400/000/fff\"}));\r\nwin.open();\r\n{code}\r\n\r\n*Expected behavior:*\r\nThe image loads.\r\n\r\n*Actual behavior:*\r\nAn ATS error is thrown:\r\n{code}\r\nApp Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.\r\n{code}\r\n\r\n*Solution:*\r\n{code}\r\n NSAppTransportSecurity\r\n \r\n NSAllowsArbitraryLoads\r\n \r\n \r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Disable ATS in builtin KitchenSink by default", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 517, "state": "closed", "name": "2015 Sprint 22 SDK", "startDate": "2015-10-24T00:30:42.059Z", "endDate": "2015-11-07T01:30:00.000Z", "completeDate": "2015-11-09T02:37:29.441Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "368196", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/7369", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-28T22:57:40.000+0000", "updated": "2015-10-28T22:57:40.000+0000" }, { "id": "376169", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.3 (15D21)\r\nStudio 4.5.0.201602050824\r\nTi SDK 5.2.0.v20160205071936\r\nAppc NPM 4.2.3-1\r\nTi CLI 5.0.6\r\nAlloy 1.7.33\r\nXcode 7.2 (7C68)\r\n\r\nNSAllowArbitraryLoads is set to true in the plist, now. Tested using the provided sample code and the KitchenSink app. No error was encountered.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-05T22:35:56.000+0000", "updated": "2016-02-05T22:35:56.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }