Describe the bug
The PreconditionFailed xml error response is missing the Condition property.
To Reproduce
aws s3api create-bucket --bucket test
aws s3api put-object --bucket test --key obj
aws s3api put-object --bucket test --key obj --if-match dummy --debug
Expected behavior
The last call should return an error like:
<?xml version="1.0" encoding="UTF-8"?><Error><Code>PreconditionFailed</Code><Message>At least one of the pre-conditions you specified did not hold</Message><Condition>If-Match</Condition><RequestId>EDJYEF8WY9Y7JTCZ</RequestId><HostId>lRPUFsH4HVyZBlBmttk3J6rSfmTCapb/jv+9V6nqvineJsJmFTafQucKDz2vosLfE3MP0091SyBELVVik5ILZBPkfHQgv6sA</HostId></Error>
Describe the bug
The
PreconditionFailedxml error response is missing theConditionproperty.To Reproduce
Expected behavior
The last call should return an error like: