[
https://issues.apache.org/jira/browse/HDDS-13737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Andika resolved HDDS-13737.
--------------------------------
Fix Version/s: 2.2.0
Resolution: Implemented
> S3 Etag JSON should be quoted
> -----------------------------
>
> Key: HDDS-13737
> URL: https://issues.apache.org/jira/browse/HDDS-13737
> Project: Apache Ozone
> Issue Type: Sub-task
> Components: S3
> Reporter: Wei-Chiu Chuang
> Assignee: Chia-Chuan Ho
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.2.0
>
>
> Running MinIO Mint tool, I'm getting this error:
> {noformat}
> (3/15) Running awscli tests ... FAILED in 12 seconds
> {
> "name": "awscli",
> "duration": 2328,
> "function": "aws --endpoint-url http://host.containers.internal:9878 s3api
> complete-multipart-upload --multipart-upload file:///tmp/multipart --bucket
> awscli-mint-test-bucket-16185 --key awscli-mint-test-bucket-16185-object
> --upload-id 0199ab25-c945-71fa-b525-33bbd16a622a-115311444253540395\n",
> "status": "FAIL",
> "error": "complete-multipart-upload failed"
> }
> {noformat}
> and also:
> {noformat}
> jq: error (at <stdin>:3): Cannot iterate over null (null)
> jq: error (at <stdin>:3): Cannot iterate over null (null)
> Error parsing parameter '--multipart-upload': Invalid JSON: Expecting value:
> line 4 column 29 (char 71)
> JSON received: {
> "Parts": [
> {
> "ETag": d41d8cd98f00b204e9800998ecf8427e,
> "PartNumber": 1
> }
> ]
> }
> {noformat}
> The fix is probably adding quotes in the output:
> https://github.com/apache/ozone/blob/d89c6ad82445e64b413aade98f06d9e8e514b100/hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java#L1108
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]