[TIMOB-20114] https module runtime JNI error
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 5.1.1 |
Fix Version/s | n/a |
Components | n/a |
Labels | android, https |
Reporter | Thomas Colliers |
Assignee | Unknown |
Created | 2015-11-02T15:59:44.000+0000 |
Updated | 2018-02-28T19:54:48.000+0000 |
Description
When trying to set up certificate pinning:
{{var https = require("appcelerator.https");
var securityManager = https.createX509CertificatePinningSecurityManager([
{
url:"https://test.com/",
serverCertificate:"cert.der"
}
]);}}
I 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.
{noformat}
[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[])
[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)
{noformat}
Not reproducible on my end, please re-verify with latest SDK and module.