JRuby-OpenSSL crashes when JCE fails a initialise bcprov
--------------------------------------------------------
Key: JRUBY-4510
URL: http://jira.codehaus.org/browse/JRUBY-4510
Project: JRuby
Issue Type: Bug
Components: OpenSSL
Affects Versions: JRuby-OpenSSL 0.6
Environment: Gentoo Linux
Reporter: Diego Elio Pettenò
I'm trying to get JRuby-OpenSSL to comply with our main policies, especially
that of not bundle JARs, but this both found us a problem with our
bcprov/bcmail packaging, and one with JRuby-OpenSSL "robustness":
fl...@yamato jruby-openssl-0.6 % CLASSPATH=$(java-config -p bcprov,bcmail)
jruby -Ilib test/openssl/test_pkcs7.rb
Loaded suite test/openssl/test_pkcs7
Started
.DashoA13*..:-1:in `getInstance': java.lang.SecurityException: JCE cannot
authenticate the provider BC
from DashoA13*..:-1:in `getInstance'
from Cipher.java:451:in `call'
from OpenSSLReal.java:64:in `getWithBCProvider'
This *quite* nasty ;) I guess it should fail to initialise bcprov and fail over
to the dummy rather than crash the whole JRuby at this point.
HTH!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email