RC2 bug with jruby-openssl

Got me on what’s happening here.

On line 86 of
https://github.com/jruby/jruby-ossl/blob/master/src/java/org/jruby/ext/openssl/PKCS7.java,
it defines data as an instance variable.

In RC2 data somehow became private.

So for example in the httpclient gem you have code like this:

p7 = PKCS7.read_smime(File.open(file) { |f| f.read })
selfcert = X509::Certificate.new(cert_str)
store = X509::Store.new
store.add_cert(selfcert)
if (p7.verify(nil, store, p7.data, 0))

The last line in the above code throws NoMethodError: private method
`data’ called for #OpenSSL::PKCS7::PKCS7:0x15ea9246.

It’s not a change in the jruby-openssl or httpclient gems, I confirmed
that. It’s RC2. RC1 works fine.

Chris

Hi,

On Sat, Feb 19, 2011 at 08:20, snacktime [email protected] wrote:

On line 86 of
https://github.com/jruby/jruby-ossl/blob/master/src/java/org/jruby/ext/openssl/PKCS7.java,
it defines data as an instance variable.

In RC2 data somehow became private.

Yes, it’s a bug and fixed after RC2.
http://jira.codehaus.org/browse/JRUBY-5471

Please wait for the next version of JRuby or build by yourself from
git repo if you can.
http://ci.jruby.org/ is temporarily stopping…

Regards,
// NaHi

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs