Issue #19705 has been updated by jeremyevans0 (Jeremy Evans).
Status changed from Open to Rejected
It's expected that IPv6 with zone identifiers addresses are supported starting in Ruby
3.1 (ipaddr 1.2.3). See #10911 and
https://github.com/ruby/ipaddr/pull/24.
----------------------------------------
Bug #19705: Ruby IPAddr class accepting wrong IPv6 address string
https://bugs.ruby-lang.org/issues/19705#change-103383
* Author: farhan.memon(a)getsimpl.com (Md. Farhan Memon)
* Status: Rejected
* Priority: Normal
* ruby -v: 3.1.3
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
We are middle of upgrading ruby versions v2.7.3 -> v3.1.3
One of our test cases are failing related to valid ipv6 address string, check the
following
````
# ruby 2.7.3
IPAddr.new('fe80::85e:7530:69ec:9074%en0').ipv6?
=> IPAddr::InvalidAddressError (invalid address: fe80::85e:7530:69ec:9074%en0)
# ruby 3.1.3
IPAddr.new('fe80::85e:7530:69ec:9074%en0').ipv6?
=> true
````
Is it really a bug or am I missing something? Please help.
P.S. Stackoverflow link:
https://stackoverflow.com/q/76380777/6548745
--
https://bugs.ruby-lang.org/