Replies: 2 comments 2 replies
-
Thanks for looking at the failures! The test for empty bytes is there because PDF objects may contain empty strings that need to be encrypted/decrypted. However, it would probably be better to check that elsewhere as it is unnecessary to go through the whole encryption/decryption process for an empty string. I will change that in HexaPDF (though this is still a compatibility problem with JRuby's OpenSSL implementation). |
Beta Was this translation helpful? Give feedback.
-
@headius With the new
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In response to a conversation on r/ruby I threw the HexaPDF test suite at JRuby.
Two strscan issues came out of it: ruby/strscan#150 and ruby/strscan#153
Most of the signing tests fail due to missing
sign_raw
support in jruby-openssl (which may or may not be compatible with Java cryptography APIs we use): jruby/jruby-openssl#332Excluding those, two failures remain.
The first is a test of
ObjectSpace.each_object
which must be enabled in JRuby for full functionality (due to the extremely high cost of tracking all heap objects when the JVM provides no such facility):Enabling ObjectSpace (with JRuby's
-X+O
flag) eliminates this failure.The second appears to be a test that checks if
OpenSSL::Cipher#update
can accept empty bytes:This will need a fix in JRuby, but I wonder why it's being tested. 🤔
Overall functionality seems pretty solid in JRuby other than the lack of signing support via jruby-openssl.
Beta Was this translation helpful? Give feedback.
All reactions