Describe the bug
The EntityTooSmall xml error response is missing the ProposedSize, MinSizeAllowed properties.
Note the currently the error appears in 2 scenarios.
- Browser POST request file size does't match the
content-length-range policy condition
- One of multipart upload parts size is less than 5Mib.
In first case the error is missing only ProposedSize, MinSizeAllowed.
e.g.
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>EntityTooSmall</Code><Message>Your proposed upload is smaller than the minimum allowed size</Message><ProposedSize>20</ProposedSize><MinSizeAllowed>20000</MinSizeAllowed><RequestId>DMZAWQJW825GKGN5</RequestId><HostId>uyoDb9TVmyHk/GMgSD2bMva9ylQ9/LqM2zydjXeVFlE/e/xifXDnxGCuMhgKa19wHSCw0rmeY8h8e4oynVsiSXbROKiIo/JG</HostId></Error>
In the second case, versitygw is missing ProposedSize, MaxSizeAllowed, PartNumber, ETag.
e.g.
<Error><Code>EntityTooSmall</Code><Message>Your proposed upload is smaller than the minimum allowed size</Message><ProposedSize>60166</ProposedSize><MinSizeAllowed>5242880</MinSizeAllowed><PartNumber>1</PartNumber><ETag>98d3f377a91dbe9c82408ee34ee01ced</ETag><RequestId>6PMZGZYM3HVNJX30</RequestId><HostId>xY4MHxD9qyQ8Ptvr95gfBmgL5QNHJy7OtP5yr7eHzEunpH0iStKn+j+qwIgqfiR9bFIfWIGpe79d9VEKPJD03nTThjLd3yRN</HostId></Error>
To Reproduce
aws s3api create-bucket --bucket test
aws s3api create-multipart-upload --bucket test --key mp
aws s3api upload-part --bucket test --key mp --upload-id <uploadId> --part-number 1
aws s3api upload-part --bucket test --key mp --upload-id <uploadId> --part-number 2
aws s3api complete-multipart-upload --bucket test --key mp --uploadId <uploadId> --mulitpart-upload file://mp.json
Where mp.json is:
{
"Parts": [
{
"ETag": "d41d8cd98f00b204e9800998ecf8427e",
"PartNumber": 1
},
{
"ETag": "d41d8cd98f00b204e9800998ecf8427e",
"PartNumber": 2
}
]
}
Expected behavior
The object POST case should include ProposedSize, MinSizeAllowed and the multipart upload case should include ProposedSize, MaxSizeAllowed, PartNumber, ETag in the EntityTooSmall xml error response.
Describe the bug
The
EntityTooSmallxml error response is missing theProposedSize,MinSizeAllowedproperties.Note the currently the error appears in 2 scenarios.
content-length-rangepolicy conditionIn first case the error is missing only
ProposedSize,MinSizeAllowed.e.g.
In the second case, versitygw is missing
ProposedSize,MaxSizeAllowed,PartNumber,ETag.e.g.
To Reproduce
Where
mp.jsonis:{ "Parts": [ { "ETag": "d41d8cd98f00b204e9800998ecf8427e", "PartNumber": 1 }, { "ETag": "d41d8cd98f00b204e9800998ecf8427e", "PartNumber": 2 } ] }Expected behavior
The object POST case should include
ProposedSize,MinSizeAllowedand the multipart upload case should includeProposedSize,MaxSizeAllowed,PartNumber,ETagin theEntityTooSmallxml error response.