-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: nil is not a string when trying to write smime. #132
Comments
@kares FYI |
@headius FYI |
Ok thanks. I'll try to have a look today. We are hoping to do a 9.1.9.0 release next week or the week after and having an updated jruby-openssl would be good. |
Confirmed on master (9.1.9.0). |
Ok, so here's the basic problem: The data in this case is not passed in, so it's nil. When it attempts to write it, we get the nil error. A workaround for you would be to pass
@kares I guess the code should check if data was passed in, and if not extract it from the pkcs7 instance? |
@headius sounds about right. great that there's a work-around - was hoping to get more done into next. |
Excellent, glad there's a work around. Will try to monkey patch the Passbook gem tomorrow. Thanks and good luck with the fix. |
I pushed #133 with a fix, but no test yet (not sure where it should go). |
Hi @headius not sure if this is relevant to you, or if it should be raised separately, but there are some differences in the output between JRuby and MRI (tested with 2.1.9):
This caused another issue with the Passbook gem, which expects the strings in a certain format - note the I'm not suggesting that the Passbook gem has a particularly robust approach to reading this data, but I wonder if there is scope for getting the output closer to MRI? I've worked around this in my monkey-patch to fix the pk7 data issue, so it's not particularly affecting me, but I thought i'd put it out there :) |
Well we definitely try to match text from MRI and/or OpenSSL. If you have a good list of these, it would be useful to open a separate issue and we can try to clean up formatting. You could also try your hand at a PR :-) Use JRuby, gem install ruby-maven, and rake build to get an updated jopenssl.jar and gem. |
Environment
Re: https://twitter.com/headius/status/859532672611356672
macOS Sierra 10.12.3 on iMac 27'' 5K
Darwin Eddie.mungler.home 16.4.0 Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64 x86_64
jruby 9.1.8.0 (2.3.1) 2017-03-06 90fc7ab Java HotSpot(TM) 64-Bit Server VM 25.40-b23 on 1.8.0_40-ea-b20 +jit [darwin-x86_64]
JRUBY_OPTS=-J-Xmn512m -J-Xms4096m -J-Xmx4096m -J-server
Gems included by the bundle:
Sorry, had to throw this together quickly as its late, but wanted to get it logged asap.
The text was updated successfully, but these errors were encountered: