[ruby-core:113730] [Ruby master Bug#19705] Ruby IPAddr class accepting wrong IPv6 address string
From:
"farhan.memon@... (Md. Farhan Memon) via ruby-core" <ruby-core@...>
Date:
2023-06-01 10:52:16 UTC
List:
ruby-core #113730
Issue #19705 has been reported by [email protected] (Md. Farhan Memon). ---------------------------------------- Bug #19705: Ruby IPAddr class accepting wrong IPv6 address string https://bugs.ruby-lang.org/issues/19705 * Author: [email protected] (Md. Farhan Memon) * Status: Open * 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/ ______________________________________________ ruby-core mailing list -- [email protected] To unsubscribe send an email to [email protected] ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/