Skip to content

[Bug] - The EntityTooLarge error should include ProposedSize and MaxSizeAllowed #2041

@niksis02

Description

@niksis02

Describe the bug
The EntityTooLarge xml error response is missing the ProposedSize and MaxSizeAllowed properties.

To Reproduce

aws s3api create-bucket --bucket test

// create a 6gb(larger than 5gb file)
// e.g. mkfile 6gb file.bin
aws s3api put-object --bucket test --key obj --body file.bin --debug

Expected behavior
The EntityTooLarge xml error response after the PutObject call should look like:

<?xml version="1.0" encoding="UTF-8"?>\n<Error><Code>EntityTooLarge</Code><Message>Your proposed upload exceeds the maximum allowed size</Message><ProposedSize>6442450944</ProposedSize><MaxSizeAllowed>5368709120</MaxSizeAllowed><RequestId>MMJ77JNG2E67ZJGM</RequestId><HostId>WXqgi9QKn4LxUkphL8GWMBj8LhoIqA0cEon7IL3fIeDVGztJb8dKXK8ZClStSzd3i4dDnq2wucg=</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