[#104004] [Ruby master Feature#17883] Load bundler/setup earlier to make `bundle exec ruby -r` respect Gemfile — mame@...
Issue #17883 has been reported by mame (Yusuke Endoh).
21 messages
2021/05/24
[ruby-core:103994] [Ruby master Bug#17625] OpenSSL::Timestamp::Response#failure_info does not work as documented
From:
nagachika00@...
Date:
2021-05-23 06:02:10 UTC
List:
ruby-core #103994
Issue #17625 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONE
ruby_3_0 fc73fc79cbaee6674256589b7cfe53d20b638a05 merged revision(s) 1ad222477344597038d7ec08885a41f547c2a3b4.
----------------------------------------
Bug #17625: OpenSSL::Timestamp::Response#failure_info does not work as documented
https://bugs.ruby-lang.org/issues/17625#change-92131
* Author: midnight (Sarun R)
* Status: Closed
* Priority: Normal
* ruby -v: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
* Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONE
----------------------------------------
I was playing around with `OpenSSL::Timestamp` and found that `#failure_info` does not work as documented.
Here what's [the document](https://ruby-doc.org/stdlib-3.0.0/libdoc/openssl/rdoc/OpenSSL/Timestamp/Response.html#method-i-failure_info) says.
> failure_info → nil or symbol
However, the method returns `Interger` instead, neither nil nor symbol returned.
Here's some test case:
~~~ruby
identrust_ts_response = ::Base64.decode64('MCIwIAIBAjAXDBVJbnZhbGlkIFRpbWVTdGFtcFJlcS4DAgaA')
parsed_response = ::OpenSSL::Timestamp::Response.new(identrust_ts_response)
parsed_response.failure_info
~~~
The response is the actual one from IdenTrust timestamp server.
---Files--------------------------------
ruby-openssl-ossl_ts-symbols.patch (1.64 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>