Project

General

Profile

Actions

Bug #19705

closed

Ruby IPAddr class accepting wrong IPv6 address string

Added by farhan.memon@getsimpl.com (Md. Farhan Memon) 11 months ago. Updated 11 months ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:113730]

Description

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

Updated by jeremyevans0 (Jeremy Evans) 11 months ago

  • 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.

Actions

Also available in: Atom PDF

Like0
Like0