Siyao Meng created HDDS-15775:
---------------------------------
Summary: Support IPv6 literal authorities in OzoneFS URI parsing
Key: HDDS-15775
URL: https://issues.apache.org/jira/browse/HDDS-15775
Project: Apache Ozone
Issue Type: Task
Reporter: Siyao Meng
ofs://[::1]:9862/path and o3fs://[::1]:9862/... fail because the authority is
split on every colon.
- BasicRootedOzoneFileSystem.java:164-175: authority.split(":") yields more
than two parts for a bracketed IPv6 literal and throws IllegalArgumentException
(URI_EXCEPTION_TEXT).
- BasicOzoneFileSystem.java:167-176: same pattern.
Proposed: parse the authority with an IPv6-aware helper (Guava HostAndPort /
Hadoop NetUtils) that understands bracketed literals. Add filesystem tests that
construct and resolve IPv6 authorities.
Parent epic: HDDS-15763.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]