[#102393] [Ruby master Feature#17608] Compact and sum in one step — sawadatsuyoshi@...

Issue #17608 has been reported by sawa (Tsuyoshi Sawada).

13 messages 2021/02/04

[#102438] [Ruby master Bug#17619] if false foo=42; end creates a foo local variable set to nil — pkmuldoon@...

Issue #17619 has been reported by pkmuldoon (Phil Muldoon).

10 messages 2021/02/10

[#102631] [Ruby master Feature#17660] Expose information about which basic methods have been redefined — tenderlove@...

Issue #17660 has been reported by tenderlovemaking (Aaron Patterson).

9 messages 2021/02/27

[#102639] [Ruby master Misc#17662] The herdoc pattern used in tests does not syntax highlight correctly in many editors — eregontp@...

Issue #17662 has been reported by Eregon (Benoit Daloze).

13 messages 2021/02/27

[#102652] [Ruby master Bug#17664] Behavior of sockets changed in Ruby 3.0 to non-blocking — ciconia@...

Issue #17664 has been reported by ciconia (Sharon Rosner).

23 messages 2021/02/28

[ruby-core:102483] [Ruby master Bug#17625] OpenSSL::Timestamp::Response#failure_info does not work as documented

From: midnight_w@...
Date: 2021-02-14 08:06:04 UTC
List: ruby-core #102483
Issue #17625 has been updated by midnight (Sarun R).


I want to help try out the patch. However, I have issues compiling Ruby from the source.
It somewhat deviates from the main topic, but here I go anyway.

I followed compiling instructions from the README and got an error that I do not understand after running `make`.

> linking shared-object bigdecimal.so
/usr/bin/ld: bigdecimal.o: relocation R_X86_64_PC32 against undefined symbol `rb_eArgError' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

Does anybody have a clue of what I should look into?

P.S. if you have something to discuss regarding the main topic, please continue.

----------------------------------------
Bug #17625: OpenSSL::Timestamp::Response#failure_info does not work as documented
https://bugs.ruby-lang.org/issues/17625#change-90375

* Author: midnight (Sarun R)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
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>

In This Thread