{ "id": "170908", "key": "MOD-2389", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2018-01-22T20:57:09.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "13507", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": false, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": null, "updated": "2018-03-06T18:52:32.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "15019", "name": "Https" } ], "description": "h5. Description:\r\nUsing the 2.1.1 Library for iOS and in some times (Not all the time) when doing a request to the Backend the SSL-Pinning fails saying that the https.createX509CertificatePinningSecurityManager is not a function (Pic Attached) even when using the same function \r\n\r\nh5. Code: \r\n{code}if (OS_IOS || OS_ANDROID) { \r\nvar https = require('appcelerator.https'); \r\n\r\nvar securityManager = https.createX509CertificatePinningSecurityManager( \r\n[{ \r\nurl: Alloy.Globals.baseUrl, \r\nserverCertificate: Alloy.Globals.serverCertificate \r\n}]); \r\n} {code}\r\n\r\nh5. Additional information\r\nRequest works well when on SDK 6.3.0 but in SDK 7.0.1 there is an error. We have tried to recreate this on our end but unable to get the same error. So the customer has attached a video of the error occurring.", "attachment": [ { "id": "64723", "filename": "ErrorLog.png", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-22T20:55:54.000+0000", "size": 498714, "mimeType": "image/png" }, { "id": "64724", "filename": "Pinning2.mov", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-22T20:55:49.000+0000", "size": 7948441, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "iOS: HTTPS Module: https.createX509CertificatePinningSecurityManager is not a function", "creator": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "433482", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "It looks like the https instance is required when the backend-call is done? I could think of an issue where the scope gets lost when not require-ing the module in the top of the controller but inside a method. I don't think we will be able to reproduce this with the above code, so we would definitely need a full reproducible case or otherwise advice to check how the module is required. \r\n\r\nAlso, I cannot see how the SDK version could influence this behavior but we will check related code-changes between those versions.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-01-22T22:12:49.000+0000", "updated": "2018-01-22T22:13:43.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }