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/08/11 08:16:00 UTC

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

     [ https://issues.apache.org/jira/browse/HDDS-15776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Siyao Meng updated HDDS-15776:
------------------------------
    Status: Patch Available  (was: Open)

> 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
>            Assignee: Huang Kuan Hao
>            Priority: Major
>              Labels: pull-request-available
>
> 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