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

Huang Kuan Hao updated HDDS-15515:
----------------------------------
    Summary: Support object Content-Type end-to-end in S3 Gateway (store on 
PutObject, return on GET/HEAD, preserve/replace on CopyObject)  (was: S3 
CopyObject does not preserve or replace the object Content-Type)

> Support object Content-Type end-to-end in S3 Gateway (store on PutObject, 
> return on GET/HEAD, preserve/replace on CopyObject)
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 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