* [ruby-core:120420] [Ruby master Bug#20985] Undefined constant in net/http
@ 2024-12-26 19:32 BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-29 4:41 ` [ruby-core:120442] " nobu (Nobuyoshi Nakada) via ruby-core
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: BertramScharpf (Bertram Scharpf) via ruby-core @ 2024-12-26 19:32 UTC (permalink / raw)
To: ruby-core; +Cc: BertramScharpf (Bertram Scharpf)
Issue #20985 has been reported by BertramScharpf (Bertram Scharpf).
----------------------------------------
Bug #20985: Undefined constant in net/http
https://bugs.ruby-lang.org/issues/20985
* Author: BertramScharpf (Bertram Scharpf)
* Status: Open
* ruby -v: ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [amd64-freebsd14]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
$ grep -rnH HTTPAuthenticationError /usr/local/lib/ruby
/usr/local/lib/ruby/site_ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
$ ruby -r net/http -e 'HTTPAuthenticationError'
-e:1:in `<main>': uninitialized constant HTTPAuthenticationError (NameError)
HTTPAuthenticationError
^^^^^^^^^^^^^^^^^^^^^^^
The `raise` statement will just transform a meaningful error into a `NameError`.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:120442] [Ruby master Bug#20985] Undefined constant in net/http
2024-12-26 19:32 [ruby-core:120420] [Ruby master Bug#20985] Undefined constant in net/http BertramScharpf (Bertram Scharpf) via ruby-core
@ 2024-12-29 4:41 ` nobu (Nobuyoshi Nakada) via ruby-core
2024-12-31 3:48 ` [ruby-core:120453] " BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-31 10:02 ` [ruby-core:120456] " hsbt (Hiroshi SHIBATA) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2024-12-29 4:41 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20985 has been updated by nobu (Nobuyoshi Nakada).
Description updated
This constant was introduced in commit:ae2c8b45d2c345faea6a7f2203603b4862f3a66c, but has never existed then or since.
Although we cannot guess the author's intention, the `rescue` clause looks able to be removed safely.
Could you report it to the upstream, https://github.com/ruby/net-http?
----------------------------------------
Bug #20985: Undefined constant in net/http
https://bugs.ruby-lang.org/issues/20985#change-111220
* Author: BertramScharpf (Bertram Scharpf)
* Status: Open
* ruby -v: ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [amd64-freebsd14]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
```console
$ grep -rnH HTTPAuthenticationError /usr/local/lib/ruby
/usr/local/lib/ruby/site_ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
$ ruby -r net/http -e 'HTTPAuthenticationError'
-e:1:in `<main>': uninitialized constant HTTPAuthenticationError (NameError)
HTTPAuthenticationError
^^^^^^^^^^^^^^^^^^^^^^^
```
The `raise` statement will just transform a meaningful error into a `NameError`.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:120453] [Ruby master Bug#20985] Undefined constant in net/http
2024-12-26 19:32 [ruby-core:120420] [Ruby master Bug#20985] Undefined constant in net/http BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-29 4:41 ` [ruby-core:120442] " nobu (Nobuyoshi Nakada) via ruby-core
@ 2024-12-31 3:48 ` BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-31 10:02 ` [ruby-core:120456] " hsbt (Hiroshi SHIBATA) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: BertramScharpf (Bertram Scharpf) via ruby-core @ 2024-12-31 3:48 UTC (permalink / raw)
To: ruby-core; +Cc: BertramScharpf (Bertram Scharpf)
Issue #20985 has been updated by BertramScharpf (Bertram Scharpf).
nobu (Nobuyoshi Nakada) wrote in #note-1:
> Could you report it to the upstream, https://github.com/ruby/net-http?
Sorry, no. For just removing two lines of code, this report should suffice.
The net-http project currently has 16 open pull requests and 30 open issues;
the oldest one waits for almost 4 years to be answered. I have better things
to do than being ignored by those people.
Besides that, I do not want to be involved in projects that show up such
ridiculous flaws.
----------------------------------------
Bug #20985: Undefined constant in net/http
https://bugs.ruby-lang.org/issues/20985#change-111234
* Author: BertramScharpf (Bertram Scharpf)
* Status: Open
* ruby -v: ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [amd64-freebsd14]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
```console
$ grep -rnH HTTPAuthenticationError /usr/local/lib/ruby
/usr/local/lib/ruby/site_ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
$ ruby -r net/http -e 'HTTPAuthenticationError'
-e:1:in `<main>': uninitialized constant HTTPAuthenticationError (NameError)
HTTPAuthenticationError
^^^^^^^^^^^^^^^^^^^^^^^
```
The `raise` statement will just transform a meaningful error into a `NameError`.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:120456] [Ruby master Bug#20985] Undefined constant in net/http
2024-12-26 19:32 [ruby-core:120420] [Ruby master Bug#20985] Undefined constant in net/http BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-29 4:41 ` [ruby-core:120442] " nobu (Nobuyoshi Nakada) via ruby-core
2024-12-31 3:48 ` [ruby-core:120453] " BertramScharpf (Bertram Scharpf) via ruby-core
@ 2024-12-31 10:02 ` hsbt (Hiroshi SHIBATA) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: hsbt (Hiroshi SHIBATA) via ruby-core @ 2024-12-31 10:02 UTC (permalink / raw)
To: ruby-core; +Cc: hsbt (Hiroshi SHIBATA)
Issue #20985 has been updated by hsbt (Hiroshi SHIBATA).
Status changed from Open to Closed
We should handle this on https://github.com/ruby/net-http.
----------------------------------------
Bug #20985: Undefined constant in net/http
https://bugs.ruby-lang.org/issues/20985#change-111237
* Author: BertramScharpf (Bertram Scharpf)
* Status: Closed
* ruby -v: ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [amd64-freebsd14]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN
----------------------------------------
```console
$ grep -rnH HTTPAuthenticationError /usr/local/lib/ruby
/usr/local/lib/ruby/site_ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
/usr/local/lib/ruby/3.3/rubygems/vendor/net-http/lib/net/http.rb:2455: raise HTTPAuthenticationError.new('HTTP authentication failed', err)
$ ruby -r net/http -e 'HTTPAuthenticationError'
-e:1:in `<main>': uninitialized constant HTTPAuthenticationError (NameError)
HTTPAuthenticationError
^^^^^^^^^^^^^^^^^^^^^^^
```
The `raise` statement will just transform a meaningful error into a `NameError`.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-31 10:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-26 19:32 [ruby-core:120420] [Ruby master Bug#20985] Undefined constant in net/http BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-29 4:41 ` [ruby-core:120442] " nobu (Nobuyoshi Nakada) via ruby-core
2024-12-31 3:48 ` [ruby-core:120453] " BertramScharpf (Bertram Scharpf) via ruby-core
2024-12-31 10:02 ` [ruby-core:120456] " hsbt (Hiroshi SHIBATA) via ruby-core
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).