Based on @yogilad 's comment on #396, all IPv6 addresses must now be enclosed in brackets in URLs. When retrieving the ingestion endpoint (IngestClientBase class), there is a call to InetAddressUtils.isIPv6Address() from Apache Http. This method performs regex matching and expects an IPv6 address without the brackets. That’s why I added the bracket-stripping logic, although it could be avoided by calling InetAddress.getByName(), which returns either an instance of IPv4 or IPv6 Address type.
Notes
The last three remaining occurrences of Apache http client and http core dependencies are:
The method call I mentioned above in the IngestClientBase class.
The stream wrapper in the streamingQuery method. I'm still trying to determine if the present stream wrappers there, are still needed after the move to Azure core http client.
Added
Changed
Removed Apache http URIBuilder.
Based on @yogilad 's comment on #396, all IPv6 addresses must now be enclosed in brackets in URLs. When retrieving the ingestion endpoint (IngestClientBase class), there is a call to InetAddressUtils.isIPv6Address() from Apache Http. This method performs regex matching and expects an IPv6 address without the brackets. That’s why I added the bracket-stripping logic, although it could be avoided by calling InetAddress.getByName(), which returns either an instance of IPv4 or IPv6 Address type.
Notes
The last three remaining occurrences of Apache http client and http core dependencies are: