Wei-Chiu Chuang created HDDS-13740:
--------------------------------------

             Summary: AbortMultipartUpload to to ignore non-existent keys
                 Key: HDDS-13740
                 URL: https://issues.apache.org/jira/browse/HDDS-13740
             Project: Apache Ozone
          Issue Type: Sub-task
            Reporter: Wei-Chiu Chuang


Mint failed the following test:

{noformat}
(3/15) Running aws-sdk-php tests ... FAILED in 4 seconds
{
  "name": "aws-sdk-php",
  "function": "abortMultipartupload ( array $params = [] )",
  "args": {
    "Bucket": "aws-sdk-php-68e026c53a822",
    "Object": "obj1"
  },
  "duration": "25",
  "status": "FAIL",
  "error": "Error executing \"AbortMultipartUpload\" on 
\"http://host.containers.internal:9878/aws-sdk-php-68e026c53a822/obj1?uploadId=non-existent\";;
 AWS HTTP error: Client error: `DELETE 
http://host.containers.internal:9878/aws-sdk-php-68e026c53a822/obj1?uploadId=non-existent`
 resulted in a `404 Not Found` response:\n<?xml version=\"1.0\" 
encoding=\"UTF-8\"?>\n<Error>\n  <Code>NoSuchUpload</Code>\n  <Message>The 
specified multipart upload doe (truncated...)\n NoSuchUpload (client): The 
specified multipart upload does not exist. The upload ID might be invalid, or 
the multipart upload might have been aborted or completed. - <?xml 
version=\"1.0\" encoding=\"UTF-8\"?>\n<Error>\n  <Code>NoSuchUpload</Code>\n  
<Message>The specified multipart upload does not exist. The upload ID might be 
invalid, or the multipart upload might have been aborted or 
completed.</Message>\n  <Resource>non-existent</Resource>\n  
<RequestId>353a42ce-01c2-4914-a567-0f12efbd20b4</RequestId>\n</Error>\n"
}
{noformat}

It looks like if AbortMultipartUpload request is given a non-existent key, it 
should respond 204 No Content (no exception) instead of 404.



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