You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Arturo Bernal (Jira)" <ji...@apache.org> on 2023/02/12 17:17:00 UTC
[jira] [Commented] (HTTPCORE-674) InetAddressUtils scoped ID support
[ https://issues.apache.org/jira/browse/HTTPCORE-674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17687599#comment-17687599 ]
Arturo Bernal commented on HTTPCORE-674:
----------------------------------------
[~michael-o] [~ckozak]
Can we close this ticker with this PR
[https://github.com/apache/httpcomponents-core/pull/388]
TH
> InetAddressUtils scoped ID support
> ----------------------------------
>
> Key: HTTPCORE-674
> URL: https://issues.apache.org/jira/browse/HTTPCORE-674
> Project: HttpComponents HttpCore
> Issue Type: Task
> Components: HttpCore
> Affects Versions: 5.1
> Reporter: Carter Kozak
> Priority: Major
> Fix For: 5.3-alpha1
>
>
> This is a remaining piece of https://issues.apache.org/jira/browse/HTTPCORE-616
> org.apache.hc.core5.net.InetAddressUtils: Parsing may fail when an IPv6 scope id might be provided.
> The following should likely succeed, but currently does not:
> {code:java}
> @Test
> public void testScopedIPv6Address() {
> Assert.assertTrue(InetAddressUtils.isIPv6Address("fe80::1ff:fe23:4567:890a"));
> Assert.assertTrue(InetAddressUtils.isIPv6Address("fe80::1ff:fe23:4567:890a%eth2"));
> Assert.assertTrue(InetAddressUtils.isIPv6Address("fe80::1ff:fe23:4567:890a%3"));
> }
> {code}
> This feature will impact parsing as well as detection, because as I understand it {{fe80::1ff:fe23:4567:890a%eth2"}} is URI encoded as {{https://[fe80::1ff:fe23:4567:890a%25eth2]:443/}} (note the {{%}} is percent-encoded to {{%25}}).
> This is based on a quick look at the ipv6 wiki page, I need to read though the current RFC guidance to verify the data I've provided is accurate.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org