Skip to content

[Bug] - The PreconditionFailed error should include Condition #2044

@niksis02

Description

@niksis02

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>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions