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

Shuo Huang updated HDDS-16672:
------------------------------
    Summary: Support RFC 2047 encoding for S3 user metadata  (was: S3 Gateway 
corrupts Unicode user metadata values)

> Support RFC 2047 encoding for S3 user metadata
> ----------------------------------------------
>
>                 Key: HDDS-16672
>                 URL: https://issues.apache.org/jira/browse/HDDS-16672
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Shuo Huang
>            Assignee: Shuo Huang
>            Priority: Major
>              Labels: pull-request-available
>
> Problem
> The ceph/s3-tests test_object_set_get_unicode_metadata test fails against 
> Ozone when an x-amz-meta-* value contains non-ASCII characters.
> For example:
> x-amz-meta-meta1: Hello Worldé
> is not returned correctly by S3 Gateway.
> Investigation showed that Amazon S3 uses RFC 2047 for non-ASCII user 
> metadata. Ozone currently does not decode RFC 2047 request values or encode 
> non-ASCII response values.
> Expected behavior
> - Decode RFC 2047 Q/B values before storing user metadata.
> - Encode non-ASCII metadata in GET and HEAD responses.
> - Return ASCII metadata unchanged.
> References
> ceph/s3-tests:
> https://github.com/ceph/s3-tests/blob/fb8b73092bb1dd8db829f1205a9e52e73bf9a232/s3tests/functional/test_s3.py#L1883-L1899
> Amazon S3 metadata behavior:
> https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingMetadata.html#UserMetadata



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