Huang Kuan Hao created HDDS-15515:
-------------------------------------
Summary: 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
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]