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

ASF GitHub Bot updated HDDS-15179:
----------------------------------
    Labels: pull-request-available  (was: )

> [S3 Compatibility] Support Chunked Transfer without Content Length Set
> ----------------------------------------------------------------------
>
>                 Key: HDDS-15179
>                 URL: https://issues.apache.org/jira/browse/HDDS-15179
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: s3gateway
>            Reporter: Chu Cheng Li
>            Assignee: Chu Cheng Li
>            Priority: Major
>              Labels: pull-request-available
>
> Currently chunked transfer would fail if we don't specify content length
> {code:python}
> def _ev_add_te_header(request, **kwargs):
>     request.headers.add_header('Transfer-Encoding', 'chunked')
> def test_object_write_with_chunked_transfer_encoding():
>     bucket_name = get_new_bucket()
>     client = get_client()
>     client.meta.events.register_first('before-sign.*.*', _ev_add_te_header)
>     response = client.put_object(Bucket=bucket_name, Key='foo', Body='bar')
>     assert response['ResponseMetadata']['HTTPStatusCode'] == 200
> {code}
> with the following error:
> {code:java}
> botocore.exceptions.ClientError: An error occurred 
> (XAmzContentSHA256Mismatch) when calling the PutObject operation: The 
> provided 'x-amz-content-sha256' header does not match the computed hash.
> {code}
>  
> ----
>  
> https://github.com/ceph/s3-tests/blob/fb8b73092bb1dd8db829f1205a9e52e73bf9a232/s3tests/functional/test_s3.py#L1589-L1599



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