Skip to content

IPv6 address support in S3 #1857

@drake127

Description

@drake127

Describe the bug

The commit cb67425 introduced IPv6 address support in AWS core but it's still failing in AWSClient.cpp and function Aws::Utils::IsValidHost()

Expected behavior

Connection to http://[::1]:8000 should work.

Current behavior

Currently, the request fails with Invalid DNS Label found in URI host error

Steps to Reproduce

Create an S3 bucket using bracketed IPv6 address with explicit port, e.g. http://[::1]:8000

Possible Solution

It appears that half-work is already done and Aws::Utils::IsValidHost needs to understand bracketed GetAuthority, or rather IPs.

AWS CPP SDK version used

1.9.185

Compiler and Version used

gcc-9

Operating System and version

Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed-for-stalenessfeature-requestA feature should be added or improved.p2This is a standard priority issueresponse-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 10 days.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions