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

Huang Kuan Hao reassigned HDDS-15776:
-------------------------------------

    Assignee: Huang Kuan Hao

> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to