{ "id": "152588", "key": "TIMOB-20114", "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": null, "resolutiondate": null, "created": "2015-11-02T15:59:44.000+0000", "priority": null, "labels": [ "android", "https" ], "versions": [ { "id": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:54:48.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": [], "description": "When trying to set up certificate pinning:\r\n\r\n{code:java}\r\n{{var https = require(\"appcelerator.https\");\r\nvar securityManager = https.createX509CertificatePinningSecurityManager([\r\n\t{\r\n\t\turl:\"https://test.com/\",\r\n\t\tserverCertificate:\"cert.der\"\r\n\t}\r\n]);}}\r\n{code}\r\n\r\nI get the following runtime error on an Android 5.0.1 emulator and a One Plus on Android 5.1.1. The error makes the app crash.\r\n\r\n{noformat}\r\n[ERROR] : art: JNI ERROR (app bug): attempt to pass an instance of java.lang.Object[] as argument 1 to appcelerator.https.PinningSecurityManager appcelerator.https.HttpsModule.createX509CertificatePinningSecurityManager(java.util.HashMap[])\r\n[INFO] : art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: bad arguments passed to appcelerator.https.PinningSecurityManager appcelerator.https.HttpsModule.createX509CertificatePinningSecurityManager(java.util.HashMap[]) (see above for details)\r\n{noformat}", "attachment": [], "flagged": false, "summary": "https module runtime JNI error", "creator": { "name": "thomascolliers", "key": "thomascolliers", "displayName": "Thomas Colliers", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomascolliers", "key": "thomascolliers", "displayName": "Thomas Colliers", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Build environment:\r\nArch Linux x64\r\nAppcelerator Studio 5.0.2\r\nTried all major Titanium SDK versions from 3.5.2 to 5.1.0\r\n\r\nRuntime environment:\r\nAndroid 5.0.1 and Android 5.1.1", "comment": { "comments": [ { "id": "417477", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Not reproducible on my end, please re-verify with latest SDK and module.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-04-17T10:04:15.000+0000", "updated": "2017-04-17T10:04:15.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }