FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix asn1data - objectid by HoneyryderChuck · Pull Request #336 · jruby/jruby-openssl · GitHub

Fix asn1data - objectid - #336

Open
HoneyryderChuck wants to merge 3 commits into
jruby:masterfrom
HoneyryderChuck:fix-asn1data-2
Open

Fix asn1data - objectid#336
HoneyryderChuck wants to merge 3 commits into
jruby:masterfrom
HoneyryderChuck:fix-asn1data-2

Conversation

Copy link
Copy Markdown
Contributor

add ruby-openssl objectid tests + fixing the discrepancies.

it's supposed to raise on der encoding (not initialization), and it's supposed to be an ASN1Error (not TypeError) exception
same behaviour as upstream now, it compares the translated oid strings
the existing batch wasn't synched; commented the test around registering of nids

kares commented Oct 21, 2025

Copy link
Copy Markdown
Member

there seems to be a regression with the existing tests, reported by the CI:

 Failure: test_subject_alt_name_sign_to_pem(TestX509Extension)
/home/runner/work/jruby-openssl/jruby-openssl/src/test/ruby/x509/test_x509ext.rb:199:in `test_subject_alt_name_sign_to_pem'
     196:     csr = OpenSSL::X509::Request.new pem = csr.to_pem
     197:     assert_equal 2, csr.attributes.length
     198:     ext_set = csr.attributes.first.value ; seq = ext_set.first.value
  => 199:     assert_equal 'subjectAltName', seq.first.value.first.value
     200:     dns = seq.first.value.last.value
     201:     assert dns =~ /test.example.com.*?test2.example.com.*?example.com.*?www.example.com/
     202:   end
org/jruby/RubyKernel.java:1189:in `catch'
org/jruby/RubyKernel.java:1184:in `catch'
org/jruby/RubyArray.java:1820:in `each'
org/jruby/RubyArray.java:1820:in `each'
org/jruby/RubyKernel.java:1189:in `catch'
org/jruby/RubyKernel.java:1184:in `catch'
<"subjectAltName">(US-ASCII) expected but was
<"2.5.29.17">(UTF-8)

kares commented Jul 30, 2026

Copy link
Copy Markdown
Member

this seems stale at this point, some of the added tests don't pass on MRI

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL