[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[ruby-core:78814] [Ruby trunk Bug#13063] net/http abends with local file URI
From:
shevegen@...
Date:
2016-12-23 17:30:35 UTC
List:
ruby-core #78814
Issue #13063 has been updated by Robert A. Heiler.
Reports like the above are not very good because the reporter has not really explained his point.
----------------------------------------
Bug #13063: net/http abends with local file URI
https://bugs.ruby-lang.org/issues/13063#change-62219
* Author: Hedge Hog
* Status: Feedback
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Give the ruby code in issue.rb is:
~~~
begin
require 'uri'
require 'net/http'
p ::File.exist?('/tmp/tomcat-8/v8.0.39/bin/apache-tomcat-8.0.39.tar.gz.md5')
uri = URI( 'file:/tmp/tomcat-8/v8.0.39/bin/apache-tomcat-8.0.39.tar.gz.md5' )
req= Net::HTTP.new(uri.host, uri.port)
req.get( uri )
rescue => e
p e.inspect
p e.backtrace
end
~~~
Then the results is
~~~
true
"#<TypeError: can't dup NilClass>"
["/opt/chef/embedded/lib/ruby/2.3.0/net/http/generic_request.rb:18:in `dup'", "/opt/chef/embedded/lib/ruby/2.3.0/net/http/generic_request.rb:18:in `initialize'", "/opt/chef/embedded/lib/ruby/2.3.0/net/http/request.rb:15:in `initialize'", "/opt/chef/embedded/lib/ruby/2.3.0/net/http.rb:1156:in `new'", "/opt/chef/embedded/lib/ruby/2.3.0/net/http.rb:1156:in `get'", "/tmp/issue.rb:7:in `<main>'"]
~~~
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>