cloudserver icon indicating copy to clipboard operation
cloudserver copied to clipboard

COMPAT: AWS returns additional XML tags for InvalidArgument Error

Open bennettbuchanan opened this issue 9 years ago • 1 comments

If an invalid encoding type is given, AWS returns an error with additional XML tags ArgumentName, ArgumentValue and HostId. For example, if an invalid encoding 'foo' is given, see difference of the two responses below.

AWS response:

<Error>
    <Code>InvalidArgument</Code>
    <Message>Invalid Encoding Method specified in Request</Message>
    <ArgumentName>encoding-type</ArgumentName>
    <ArgumentValue>foo</ArgumentValue>
    <RequestId>[...]</RequestId>
    <HostId>[...]</HostId>
</Error>

S3 response (response with changes made in https://github.com/scality/S3/pull/402):

<Error>
    <Code>InvalidArgument</Code>
    <Message>Invalid Encoding Method specified in Request</Message>
    <Resource></Resource>
    <RequestId>[...]</RequestId>
</Error>

bennettbuchanan avatar Nov 15 '16 22:11 bennettbuchanan

@bennettbuchanan May be you can pick this up yourself 😄

rahulreddy avatar Mar 09 '18 23:03 rahulreddy