ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:101992] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id
@ 2021-01-09 10:36 nov
  2021-01-09 20:16 ` [ruby-core:101995] " merch-redmine
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: nov @ 2021-01-09 10:36 UTC (permalink / raw)
  To: ruby-core

Issue #17524 has been reported by no6v (Nobuhiro IMAI).

----------------------------------------
Feature #17524: resolv: add some more characters in IPv6 link local zone id
https://bugs.ruby-lang.org/issues/17524

* Author: no6v (Nobuhiro IMAI)
* Status: Open
* Priority: Normal
----------------------------------------
According to [RFC6874](https://tools.ietf.org/html/rfc6874#section-2), IPv6 link local zone id is:

```
   ZoneID = 1*( unreserved / pct-encoded )
```

where `unreserved` in [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.3) is as follow.

```
   unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
```

Actually, `docker` can create such an interface.

```sh
$ docker network create --ipv6 --subnet fe80::/64 --opt com.docker.network.bridge.name=ruby_3.0.0-1 ruby
$ ruby -rsocket -e 'p Socket.ip_address_list.last'
#<Addrinfo: fe80::1%ruby_3.0.0-1>
```

This makes `TestResolvAddr#test_valid_socket_ip_address_list` failure.
Supporting a `pct-encoded` may be overwork, but adding the all of `unreserved` to

* `Resolv::IPv6::Regex_8HexLinkLocal` and
* `Resolv::IPv6::Regex_CompressedHexLinkLocal`

sounds reasonable for me. What do you think?



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:101995] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id
  2021-01-09 10:36 [ruby-core:101992] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id nov
@ 2021-01-09 20:16 ` merch-redmine
  2021-01-10  9:31 ` [ruby-core:101997] " nov
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: merch-redmine @ 2021-01-09 20:16 UTC (permalink / raw)
  To: ruby-core

Issue #17524 has been updated by jeremyevans0 (Jeremy Evans).

Assignee set to akr (Akira Tanaka)
Status changed from Open to Assigned

This seems reasonable to me.  I chose a more conservative approach in the initial implementation, but we've already had to expand it once for s390, and if adding the rest of the unreserved characters fixes docker, we should do that.

I've submitted a pull request upstream for this: https://github.com/ruby/resolv/pull/2

----------------------------------------
Feature #17524: resolv: add some more characters in IPv6 link local zone id
https://bugs.ruby-lang.org/issues/17524#change-89844

* Author: no6v (Nobuhiro IMAI)
* Status: Assigned
* Priority: Normal
* Assignee: akr (Akira Tanaka)
----------------------------------------
According to [RFC6874](https://tools.ietf.org/html/rfc6874#section-2), IPv6 link local zone id is:

```
   ZoneID = 1*( unreserved / pct-encoded )
```

where `unreserved` in [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.3) is as follow.

```
   unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
```

Actually, `docker` can create such an interface.

```sh
$ docker network create --ipv6 --subnet fe80::/64 --opt com.docker.network.bridge.name=ruby_3.0.0-1 ruby
$ ruby -rsocket -e 'p Socket.ip_address_list.last'
#<Addrinfo: fe80::1%ruby_3.0.0-1>
```

This makes `TestResolvAddr#test_valid_socket_ip_address_list` failure.
Supporting a `pct-encoded` may be overwork, but adding the all of `unreserved` to

* `Resolv::IPv6::Regex_8HexLinkLocal` and
* `Resolv::IPv6::Regex_CompressedHexLinkLocal`

sounds reasonable for me. What do you think?



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:101997] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id
  2021-01-09 10:36 [ruby-core:101992] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id nov
  2021-01-09 20:16 ` [ruby-core:101995] " merch-redmine
@ 2021-01-10  9:31 ` nov
  2021-03-24 17:22 ` [ruby-core:102999] " jaruga
  2021-12-25 14:22 ` [ruby-core:106822] " gotoken (Kentaro Goto)
  3 siblings, 0 replies; 5+ messages in thread
From: nov @ 2021-01-10  9:31 UTC (permalink / raw)
  To: ruby-core

Issue #17524 has been updated by no6v (Nobuhiro IMAI).


Thanks for your comment and pull request. That is what I expected.
I'm looking forward it to be merged.


----------------------------------------
Feature #17524: resolv: add some more characters in IPv6 link local zone id
https://bugs.ruby-lang.org/issues/17524#change-89846

* Author: no6v (Nobuhiro IMAI)
* Status: Assigned
* Priority: Normal
* Assignee: akr (Akira Tanaka)
----------------------------------------
According to [RFC6874](https://tools.ietf.org/html/rfc6874#section-2), IPv6 link local zone id is:

```
   ZoneID = 1*( unreserved / pct-encoded )
```

where `unreserved` in [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.3) is as follow.

```
   unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
```

Actually, `docker` can create such an interface.

```sh
$ docker network create --ipv6 --subnet fe80::/64 --opt com.docker.network.bridge.name=ruby_3.0.0-1 ruby
$ ruby -rsocket -e 'p Socket.ip_address_list.last'
#<Addrinfo: fe80::1%ruby_3.0.0-1>
```

This makes `TestResolvAddr#test_valid_socket_ip_address_list` failure.
Supporting a `pct-encoded` may be overwork, but adding the all of `unreserved` to

* `Resolv::IPv6::Regex_8HexLinkLocal` and
* `Resolv::IPv6::Regex_CompressedHexLinkLocal`

sounds reasonable for me. What do you think?



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:102999] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id
  2021-01-09 10:36 [ruby-core:101992] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id nov
  2021-01-09 20:16 ` [ruby-core:101995] " merch-redmine
  2021-01-10  9:31 ` [ruby-core:101997] " nov
@ 2021-03-24 17:22 ` jaruga
  2021-12-25 14:22 ` [ruby-core:106822] " gotoken (Kentaro Goto)
  3 siblings, 0 replies; 5+ messages in thread
From: jaruga @ 2021-03-24 17:22 UTC (permalink / raw)
  To: ruby-core

Issue #17524 has been updated by jaruga (Jun Aruga).


I just faced this issue where `cni-podman0` including `-` is used as string matching with `Resolv::IPv6::Regex_CompressedHexLinkLocal`.

```
$ ruby -rsocket -e 'p Socket.ip_address_list[8]'
#<Addrinfo: fe80::9856:24ff:fe1b:f759%cni-podman0>
```



----------------------------------------
Feature #17524: resolv: add some more characters in IPv6 link local zone id
https://bugs.ruby-lang.org/issues/17524#change-91063

* Author: no6v (Nobuhiro IMAI)
* Status: Assigned
* Priority: Normal
* Assignee: akr (Akira Tanaka)
----------------------------------------
According to [RFC6874](https://tools.ietf.org/html/rfc6874#section-2), IPv6 link local zone id is:

```
   ZoneID = 1*( unreserved / pct-encoded )
```

where `unreserved` in [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.3) is as follow.

```
   unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
```

Actually, `docker` can create such an interface.

```sh
$ docker network create --ipv6 --subnet fe80::/64 --opt com.docker.network.bridge.name=ruby_3.0.0-1 ruby
$ ruby -rsocket -e 'p Socket.ip_address_list.last'
#<Addrinfo: fe80::1%ruby_3.0.0-1>
```

This makes `TestResolvAddr#test_valid_socket_ip_address_list` failure.
Supporting a `pct-encoded` may be overwork, but adding the all of `unreserved` to

* `Resolv::IPv6::Regex_8HexLinkLocal` and
* `Resolv::IPv6::Regex_CompressedHexLinkLocal`

sounds reasonable for me. What do you think?



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ruby-core:106822] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id
  2021-01-09 10:36 [ruby-core:101992] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id nov
                   ` (2 preceding siblings ...)
  2021-03-24 17:22 ` [ruby-core:102999] " jaruga
@ 2021-12-25 14:22 ` gotoken (Kentaro Goto)
  3 siblings, 0 replies; 5+ messages in thread
From: gotoken (Kentaro Goto) @ 2021-12-25 14:22 UTC (permalink / raw)
  To: ruby-core

Issue #17524 has been updated by gotoken (Kentaro Goto).


With ruby 3.1.0 on my LXC box, this is the only problem reported as a failure with `make test-all`.
It would be helpful if you could merge https://github.com/ruby/resolv/pull/2.

----------------------------------------
Feature #17524: resolv: add some more characters in IPv6 link local zone id
https://bugs.ruby-lang.org/issues/17524#change-95632

* Author: no6v (Nobuhiro IMAI)
* Status: Assigned
* Priority: Normal
* Assignee: akr (Akira Tanaka)
----------------------------------------
According to [RFC6874](https://tools.ietf.org/html/rfc6874#section-2), IPv6 link local zone id is:

```
   ZoneID = 1*( unreserved / pct-encoded )
```

where `unreserved` in [RFC3986](https://tools.ietf.org/html/rfc3986#section-2.3) is as follow.

```
   unreserved  = ALPHA / DIGIT / "-" / "." / "_" / "~"
```

Actually, `docker` can create such an interface.

```sh
$ docker network create --ipv6 --subnet fe80::/64 --opt com.docker.network.bridge.name=ruby_3.0.0-1 ruby
$ ruby -rsocket -e 'p Socket.ip_address_list.last'
#<Addrinfo: fe80::1%ruby_3.0.0-1>
```

This makes `TestResolvAddr#test_valid_socket_ip_address_list` failure.
Supporting a `pct-encoded` may be overwork, but adding the all of `unreserved` to

* `Resolv::IPv6::Regex_8HexLinkLocal` and
* `Resolv::IPv6::Regex_CompressedHexLinkLocal`

sounds reasonable for me. What do you think?



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-12-25 14:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-09 10:36 [ruby-core:101992] [Ruby master Feature#17524] resolv: add some more characters in IPv6 link local zone id nov
2021-01-09 20:16 ` [ruby-core:101995] " merch-redmine
2021-01-10  9:31 ` [ruby-core:101997] " nov
2021-03-24 17:22 ` [ruby-core:102999] " jaruga
2021-12-25 14:22 ` [ruby-core:106822] " gotoken (Kentaro Goto)

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 read-only IMAP folder(s) and NNTP newsgroup(s).