[
https://issues.apache.org/jira/browse/HDDS-13429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hsu Han Wen updated HDDS-13429:
-------------------------------
Description:
According to [RFC 7230
§3.2|https://datatracker.ietf.org/doc/html/rfc7230#section-3.2],
HTTP header field names are {*}case-insensitive{*}.
However, the current [code block in
{{EndpointBase.java}}|https://github.com/apache/ozone/blob/master/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java#L298-L308]
does not correctly handle custom metadata headers when their names contain
uppercase characters.
As a result, headers like {{X-AMZ-META-MyKey}} are ignored, while only
lowercase variants such as {{x-amz-meta-mykey}} are processed properly.
was:
According to [RFC 7230
§3.2|https://datatracker.ietf.org/doc/html/rfc7230#section-3.2],
HTTP header field names are {*}case-insensitive{*}.
However, the current [code block in
{{EndpointBase.java}}|https://github.com/apache/ozone/blob/master/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java#L298-L308]
does not correctly handle custom metadata headers when their names contain
uppercase characters.
As a result, headers like {{x-amz-meta-MyKey}} are ignored, while only
lowercase variants such as {{x-amz-meta-mykey}} are processed properly.
> Custom metadata headers with uppercase characters are not supported
> -------------------------------------------------------------------
>
> Key: HDDS-13429
> URL: https://issues.apache.org/jira/browse/HDDS-13429
> Project: Apache Ozone
> Issue Type: Bug
> Components: s3gateway
> Reporter: Hsu Han Wen
> Assignee: Hsu Han Wen
> Priority: Major
>
> According to [RFC 7230
> §3.2|https://datatracker.ietf.org/doc/html/rfc7230#section-3.2],
> HTTP header field names are {*}case-insensitive{*}.
> However, the current [code block in
> {{EndpointBase.java}}|https://github.com/apache/ozone/blob/master/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/EndpointBase.java#L298-L308]
> does not correctly handle custom metadata headers when their names contain
> uppercase characters.
> As a result, headers like {{X-AMZ-META-MyKey}} are ignored, while only
> lowercase variants such as {{x-amz-meta-mykey}} are processed properly.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]