versitygw
versitygw copied to clipboard
[Bug] - LlistObjects(V2) truncated response with delimiter
Describe the bug ListObjects(V2) returns truncated response when there are 2 or more objects with the same common prefix, when max-keys is reached.
To Reproduce
aws s3api create-bucket --bucket test
aws s3api put-object --bucket test --key asdf
aws s3api put-object --bucket test --key boo/bar
aws s3api put-object --bucket test --key boo/baz/xyzzy
aws s3api put-object --bucket test --key cquux/thud
aws s3api put-object --bucket test --key cquux/bla
aws s3api list-objects --bucket test --delimiter / --marker boo/ --max-keys 1
Expected behavior The actions should return non-truncated response.