[ 
https://issues.apache.org/jira/browse/HDDS-15515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18087585#comment-18087585
 ] 

Huang Kuan Hao commented on HDDS-15515:
---------------------------------------

cc [~peterxcli] 

> S3 CopyObject does not preserve or replace the object Content-Type
> ------------------------------------------------------------------
>
>                 Key: HDDS-15515
>                 URL: https://issues.apache.org/jira/browse/HDDS-15515
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Huang Kuan Hao
>            Assignee: Huang Kuan Hao
>            Priority: Major
>
> When using {{CopyObject}} or {{{}UploadPartCopy{}}}, the {{Content-Type}} is 
> not being handled correctly. Copied objects consistently default to 
> {{{}application/octet-stream{}}}.
> To align with AWS S3 expected behavior:
>  * If the metadata directive is *{{COPY}}* (default), the source object's 
> {{Content-Type}} must be preserved.
>  * If the metadata directive is {*}{{REPLACE}}{*}, the {{Content-Type}} from 
> the incoming request must be applied.
> *Failing Ceph s3-tests ("copy" group):*
>  * {{test_object_copy_retaining_metadata}} (expects {{{}audio/ogg{}}}, 
> {{{}audio/mpeg{}}})
>  * {{test_object_copy_replacing_metadata}}
>  * {{test_object_copy_verify_contenttype}} (expects {{{}text/bla{}}})
> Ref: https://ozone.s3.peterxcli.dev/



--
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