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

Chung-En Lee updated HDDS-17920:
--------------------------------
    Priority: Minor  (was: Major)

> S3G HeadObject ignores the response-content-type query parameter
> ----------------------------------------------------------------
>
>                 Key: HDDS-17920
>                 URL: https://issues.apache.org/jira/browse/HDDS-17920
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: S3
>            Reporter: Chung-En Lee
>            Priority: Minor
>
> HeadObject ignores the {{response-content-type}} query parameter and always 
> returns the stored Content-Type, while the other {{response-*}} overrides, 
> such as {{response-cache-control}}, work on HEAD. AWS applies 
> {{response-content-type}} on HEAD, as on GET.
> Steps to reproduce:
> # {{aws s3api put-object --bucket b --key k --body f --content-type 
> video/mp4}}
> # {{aws s3api head-object --bucket b --key k --response-content-type 
> text/plain --response-cache-control no-store}}
> Actual: ContentType {{video/mp4}}, CacheControl {{no-store}}.
> Expected: ContentType {{text/plain}}, CacheControl {{no-store}}, as on AWS 
> and on get-object.
> HDDS-15515 moved Content-Type out of the {{response-*}} override map and 
> handles it only in GET. HDDS-15606 later made HEAD apply that map, so HEAD 
> gets every override except Content-Type. Both changes are unreleased (2.3.0).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to