You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2026/07/08 01:34:00 UTC

[jira] [Created] (HDDS-15776) Make S3 Gateway VirtualHostStyleFilter IPv6-safe

Siyao Meng created HDDS-15776:
---------------------------------

             Summary: Make S3 Gateway VirtualHostStyleFilter IPv6-safe
                 Key: HDDS-15776
                 URL: https://issues.apache.org/jira/browse/HDDS-15776
             Project: Apache Ozone
          Issue Type: Task
            Reporter: Siyao Meng


VirtualHostStyleFilter.checkHostWithoutPort() (VirtualHostStyleFilter.java:146-153) uses host.lastIndexOf(":") to strip the port. This works for a bracketed literal [::1]:443 but misbehaves for a bare IPv6 host, where it strips the last address segment instead of a port.

Proposed: bracket-aware host/port separation for the Host header. Add S3 gateway tests covering IPv6 Host headers with and without a port.

Parent epic: HDDS-15763.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org