[
https://issues.apache.org/jira/browse/HDDS-15831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-15831:
----------------------------------
Labels: pull-request-available (was: )
> CompleteMultipartUpload with no parts returns InvalidRequest instead of
> MalformedXML
> ------------------------------------------------------------------------------------
>
> Key: HDDS-15831
> URL: https://issues.apache.org/jira/browse/HDDS-15831
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Huang Kuan Hao
> Assignee: Huang Kuan Hao
> Priority: Major
> Labels: pull-request-available
>
> The Ceph s3-test test_multipart_upload_empty fails because
> CompleteMultipartUpload with an empty part list returns the wrong S3 error
> code. The HTTP status is already correct (400); only the error code differs.
> Failing Ceph s3-test (1):
> - test_multipart_upload_empty
> The test initiates a multipart upload, uploads no parts, then calls
> CompleteMultipartUpload with an empty \{{<CompleteMultipartUpload/>}} body.
> - Expected (AWS): HTTP 400 with error code \{{MalformedXML}}.
> - Ozone: HTTP 400 with error code \{{InvalidRequest}}.
> initiate MPU, upload 0 parts
> CompleteMultipartUpload (empty part list)
> AWS: 400 MalformedXML
> Ozone: 400 InvalidRequest ("You must specify at least one part")
> 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]